15,127 Topics
| |
Hello, I would like to ask you that which is good library(angularjs jquery react blabla or simple js)/method/technique to get safe input value from users(to prevent csrf and xss or any other malicious) ? which is more safe `document.getElementById();`or` $('#id/.class');` and what is bind data? explain me this in poor … | |
I attempted to access the code below using safari browser but the input mask accepts any value which is wrong. <html> <head></head> <script src="C:/Users/marieeugene/Desktop/inputmask/jquery-1.11.1.min.js" type="text/javascript"></script> <script src="C:/Users/marieeugene/Desktop/inputmask/jquery.inputmask.bundle.js" type="text/javascript"></script> <script> $(document).ready(function(){ $(":input").inputmask(); }); </script> <body> <input data-inputmask="'alias': 'numeric', 'groupSeparator': ',', 'autoGroup': true, 'digits': 4, 'digitsOptional': false, 'prefix': '$ ', 'placeholder': '0'" … | |
I have started learning javascript and am currently at an entry level. I have tried other languages like C++, C#, maybe python a little. all at a beginners level. point is - I guess I get the basic handle of things. question is - where can I write code that … | |
Hi friends i am trying to display dynamic dropdown using php. but it is not fetching the second dropdown value. I collected the below code from internet. please help me to fix it. <?php $dbc = mysqli_connect("localhost","root","escape123","tsheet"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " … | |
Hello, Please cek this website: http://www.innovation.web.id/One/portfolio-filter.php This is the code: portfolio-filter.php <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Portfolio</title> <link rel="stylesheet" type="text/css" href="css/style.css"> <link rel="stylesheet" type="text/css" href="css/carouselstyles.css"> <link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="bootstrap-3.3.5/css/bootstrap.min.css"> <link rel="stylesheet" href="bootstrap-3.3.5/css/custom.css"> <script src="bootstrap-3.3.5/js/jquery.min.js"></script> <script src="bootstrap-3.3.5/js/bootstrap.min.js"></script> </head> <body> <?php include('nav.php'); ?> <br><br><br> <div style="text-align:center;"><h2><b>Our Portfolio</b></h2></div> <p> … | |
Hi, does anyone know how I could search for the protocol used in CSS? I did try use "document.querySelectorAll" but failed to get it working. So basically I am trying to find out via Javascript if CSS is calling the http protocol for example: <style> body { background-image: url("http://mysite.com/images/logo.jpg"); } … | |
I have two date fields. One field is from date and second one is to date. While the cursor moving from second date field to submit button, I have to compare the two dates. if from date greater than to date it has to display error and has to empty … | |
Hey, I'm trying to (using bootstrap btw), have a page with a header and an iframe. I want the iframe to take up the remainder of the page's height and 100% width. This is my code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> … | |
To begin with, I'm a noob to JavaScript. How do I add functionality to the main loop, or something similar? | |
What are the differences between **htmlspecialchars()**and **htmlentities()**. When should I use one or the other?Explain me in poor words | |
How to flip multiple div when clicked on menus? Current code is working for only last two div's. [code in work on jsfiddle](http://jsfiddle.net/Lucdd/) **HTML** <ul class="nav"> <li><a href="#home">home</a></li> <li><a href="#about">about</a></li> <li><a href="#work">work</a></li> <li><a href="#contact">contact</a></li> </ul> <section class="container"> <div id="card"> <div class="front flipper" id="home">home</div> <div class="back flipper" id="about">about</div> <div class="front flipper" … | |
I am using jQuery and prototype libarary fro this project. I have this code so far: HTML: <div id="cnt"></div> <input type ="text" id="bla" name="tct"/> Javascript: if(e.keycode == 13){ var text = document.getElementById('#bla'); text= $('#bla').val(); //text.evaljson(); //I put a comment because it gives me error "badly formed json string" $('#cnt').append(text); } … | |
I am using eclipse, Java, and seting up Ajax-DWR. When I run my program nothing happens. I belive This is cause by warning in my xml file. I tried looking on google but didn't found any thing. ## files Path, jar files, etc...: ## Take a look at the attached … | |
i have a restaurant dropdown menulist, when sb clicks the one of the various meals i want a picture of it to <img id="menupic"src="picFold/actualPic.jpg" alt="Foto der Menüliste">. I only had partial success , who can help me finalize this task ? thx sofar : menu.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML … | |
Urgently need a menu dropdown WITH IMAGES for a restaurant website for its food menu. Looked for jquery on the internet,couldnt find one, only complete wordpress themes or some without images , but i'm looking for javascript or jquery or anything else to implement since the website is not on … | |
I got a requirement. i have a tabular form with some records, for example i have a department table in a tabular form, if i check first record that means department 10 and then if i click any button we need to show the list of employees whose department is … | |
Hi I am trying to clone a row with dependent dropdown. first row is working fine. Once i click add row button, if i select the project option its not working on client select option. can anyone please help me to fix. Note: I used trying using id="client[]" and id="project[]" … | |
Hello, Besides testimonial I also would like to create a slider for my clients: http://www.innovation.web.id/One/portfolio-filter.php I do not know if it is the same concept or I must use different slider? See that greybar on the buttom with a list of my clients? I would like to create a horizontal … | |
Hello, I would like to create a slider for testimonial. See that there is that white arrow on the left and right side of testimonial (< >). I would like to make it work but how? http://www.innovation.web.id/One/about.php Thanks in advance. | |
newTextBoxDiv.after().html('<div id="hoteldiv' + counter + '">'+'<input type="text" name="tripdetails[0][hoteldetails][' + counter + '][name]" id="textbox' + counter + '" value="" >'+ '<input type="text" name="tripdetails[0][hoteldetails][' + counter + '][number]" id="textbox' + counter + '" value="" >'+ '<input type="text" name="tripdetails[0][hoteldetails][' + counter + '][address]" id="textbox' + counter + '" value="" >'+'<br><br>'+ '<input type="text" name="tripdetails[0][hoteldetails][0][contact][' … | |
Hi all, does anybody know of any good guide for beginners to write twitter bots? I had a look around but I couldn't find anything terribly good. Does anybody have any suggestion, something that starts building very simple bots thanks | |
Hi guys, I've run into something interesting and I'm a bit stumped with this. Basically I have a form: <form> <div class="formWrapper"> <span>Refine your search</span> <input type="text"> <select> <option>English</option> <option>French</option> <option>Dutch</option> </select> <button class="submitButton" type="submit" data-ajaxurl="http://localhost/_myFile.html" data-ajaxtarget="#myFile_search" >Search</button> </div> </form> and some bootstrap pagination links: <div class="bootstrap_pagination"> <ul> <li class="active"> … | |
I am attempting to organize my code in the following manner: if (is_ajax()) { if (isset($_POST["action"]) && !empty($_POST["action"])) { //Checks if action value exists $action = $_POST["action"]; switch($action) { //Switch case for value of action case "initMsg": initMsg_function(); break; case "initCombo": initCombo_function(); break; } } } function is_ajax() { return … | |
I made an API request using AJAX request, I received JSON, I tried my best to use JavaScript to parse it, but to no avail. Instead I used jQuery which made it as painless as 2 lines of code. Now I have JSON array translated into array-ish object in JavaScript. … | |
Hello, I am trying to create a picture gallery that can be sorted based on certain category. These are some examples or references on how to do it : http://isotope.metafizzy.co/sorting.html The only difference is that mine is using real picture instead of text which makes the sorting function does not … | |
I tried the following ways of calculation and passing back to the form I made. The commented out function is the same, but handled differently and was my first attempt. function oneRepCal(wt,rp) { this.wt = parseFloat(document.ormCalc.wLift.value); this.rp = parseFloat(document.ormCalc.rComp.value); lifted = this.wt * this.rp; oneRepC = (lifted * .03333) + … | |
Hello, i had some problem with the below code. How to change the 'Click to Read More' and 'Click to Hide' function by just click 'Step' to show and hide? page.php <blockquote class="bigtext"> <p class="title"><b>Step 1</b><hr class="style1"></p> <p></p> <p></p> </blockquote> javascript <script> $(function(){ var animspeed = 950; // animation speed … | |
Help please? ineed to make a program. A program that calculates the average grade of the 3 quizzes taken by the student. Ask the user to enter his/her grades. The program should display the average grade | |
As it stands, the data elements are submitted to the database. But I need help figuring out two things: one, is how to show the new deptCode in the dropdown list of deptCodes and two, how can I clear the form after a successful submit? Below is the code that … | |
This is my code to upload files with a progress bar. Problem is all three progress bars are listening for one file and not three different files. Please help me. $('.btnUpload').click(function(){ //submit all form $('form').submit(); }); $(document).on('submit','form',function(e){ e.preventDefault(); $form = $(this); uploadImage($form); }); function uploadImage($form) { alert("in"); $('.progress-bar') var formdata … |
The End.