15,694 Topics
![]() | |
I have come up with a form validation javascript function.But it always return true although there are empty text fields.Why is that?Following is my code. HTML Form <form method="post" action="operation.php" name="form1"> <label>Location Name:</label><input type="text" name="name"/> </br> </br> <label>Latitude:</label><input type="text" name="age"/> </br> </br> <label>Lontitude:</label><input type="text" name="addr"/> </br> </br> <input type="submit" value="Add" … | |
Hi, How to enable proxy through javascript. when you apply a proxy in IE or any other web-browser it doesn't apply the proxy to javascript. I need to know if there is any method to force javascript run through the applied proxy in web-browser. Thanks | |
Hey everyone, I have a couple of questions and I'm not sure the best way to ask them..I have a "slideshow" feature on a site I'm working on and when I place the jquery external links for the "tabbed" section, the slideshow doesn't work. It just places the images on … | |
Alright, so I found a tutorial on how to use lists to make a "TreeList" type thing, basically a list, ordered or unordered, that has a nested list that is collapsible. However, it doesn't seem to be working for me. Here's some code that I'm sure you will figure out. … | |
Alright so I want to Display a Browser Not Supported Message if the user is using IE 9 or less. Yes, I am limiting the users, I know. I want this done in JavaScript ONLY. Anyway, I have found a way that checks for IE. If 'ie' = null the … | |
Hello every one i have an issue that I have a single page website which includes an iframe in it, when iframe load it contains a table which i want to hide and this table also repeats on multiple pages so I want to add a code in my main … | |
Following code of animated menu is working well,little bit, but when mouse pointer is over one list element, items inside all other list elements are animated. I want to animate, items inside hovered list element only. if mouse pointer is over **about us**, animate => div items inside **about us** … | |
Hi everyone, I have one-field form on my website, which is supposed to be filled with barcode number. It was functional until few days age when the need emerged for the auto-submit. As you can see, I have to make script which will automatically submit form when data is filled … | |
function addRow(id) { var row = $("#rows").val(); var rows=parseInt(row)+1; var sendString = "rows="+rows; $("#rows").val(rows); $.ajax({ type: "POST", url: "addrow.htm", data: sendString, success: function(msg){ $("#tr_"+row).after(msg); loadDatePicker(); } }); } function deleteRow(id) { /* var space_number_arr = id.split("_"); */ var number = id; var deletedRows=$("#deletedRows").val(); deletedRows=deletedRows+number+","; document.getElementById("tr_"+number).style.display='none'; $("#deletedRows").val(deletedRows); | |
Hello, I'm having some trouble with a £ sign, it's being displayed to the user as the <?> question-mark-in-a-black-diamond icon. I have an SQL Server database with a £ in a table. (Collation Latin_General_C1_AS which is analoguous to 8859-1) I have a PHP script which retreives this record without issue … | |
Hi guys so i have 2 tables in my page. One table would be populated by names from database and another remains empty for the moment. so what i want to be able to do in this page is that names can be dragged and dropped from the first table … | |
I'm hoping someone can help me. I'm looking for a image / video gallery that behaves in this mannor. When a link is clicked, the area of the page that is suppose to show the image / video gallery splats out, whereas, each title grows from invisible to visible just … | |
I have in the same folder my app.js file and index.html the index file doesn't recognize all of the other files in my project. photos and 'jquery' folder. | |
I have a client who wants me to come up with js code to attach an image from a visitor's computer to a form to email to the client. | |
I have two tables, one being populated by data and another empty. I am using draggable and droppable jquery ui so I can move data from the first table to the other. and its working perfectly. Now, I am trying to clone the "tr" element of the second table where … | |
I hope someone can [help](http://www.thecreativesheep.ca/webdesignprojects/largeprojects/CreativeSheep/cs_site.html). The id=reachme is suppose to be hidden at all times except when the event which is triggered by clicking the word "reachme" is clicked then it is suppose to bounce into view. I've set display to hidden in the css for the id=reachme, hoping the … | |
I'm in the process of creating the following; when a class anchor is clicked, it triggers an ID that is scaled which was hidden before the anchor was clicked with a little bounce before it rests into place, I hope that made sense ? Here is what I have so … | |
I problem AJAX jquery. How block run AJAX from console.log EX test on localhost: **file index.html:** <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script> $(document).ready(function(){ var btn = $('button'); btn.on('click', function(){ $.ajax({ url : 'process.php', type : 'post', data : {id : 1}, success: function(data){ console.log(data); } }); }); }); </script> </head> <body> <button>CLick</button> </body> … | |
I have arrays and variables in JQuery and I want to know that Can I POST both arrays and variables from single $ajax jquery request to my php page. If yes then How will I post data from Jquery and how will i handle in PHP page. var get_id = … | |
<form> Select Project:* <select name="project_id" id="project_id" > <option value="0">Select Project</option> <option value="1">a</option> <option value="2">b</option> <option value="3">c</option> </select> Select Week*: <select name="week" id="week_id"> <option value="0">Select Week</option> <option value="1">This Week</option> <option value="2">Last Week</option> <option value="3">2 Weeks back</option> </select> </form> <script type="text/javascript" src="js/jquery-latest.js"></script> <script> function showValues() { var str = $( "form" ).serialize(); … | |
I am running this on my local: <script> $(document).ready(function() { $("#validateButton").click(function() { var forename = $("#Name").val(); var surname = $("#Surname").val(); var dob = $("#DOB").val(); var flatNumber = $("#FlatNumber").val(); var houseName = $("#HouseName").val(); var houseNumber = $("#HouseNumber").val(); var street = $("#Street").val(); var townCity = $("#TownCity").val(); var county = $("#County").val(); var postcode … | |
Let's say my website heavily depends on JavaScript. I found this: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_noscript What I understand is. If JavaScript is enabled, it displays "Hello World". If JavaScript is disabled it displays everything within `<noscript>` as normal div. The clue is. I have "NoScript" Firefox addon. That blocks JavaScripts, disables flashes and … | |
![]() | Rather learning C++ and Java. |
Hi there, I am taking a html/java script class and I am completely lost. Can anyone help? Here is what my assignment is: Create an HTML file with Javascript to do the following Have text boxes for the user to enter 2 numbers Have a button so that when clicked … | |
Hello i am creating a small project. is there any tutorial that could help me . i have image gallery. it has main categories and then sub categories , i want to upload the images to respective sub category under main category after choosing categ and sub categ from list … | |
Hello everyone, I'm not sure whether this post belongs here. The thing is that I want to do a Page reload from my java code running on the server. After pressing a button, I wish for the page to do an automatic reload. So, inside the class file, I have … | |
Feedly app left attack window open for malicious JavaScript hackers according to one security researcher. Security consultant and blogger Jeremy S [revealed](http://breaktoprotect.blogspot.in/2014/04/feedly-android-application-zero-day.html) that the Feedly Android app, or at least the version prior to the update on March 17th 2014, had been subject to a zero-day JavaScript code injection vulnerability. … | |
hey guys, so im creating a page using php html js etc and what i wanna do is have two tables on that page. the first table is populated by data from database(easy) the second table is tricky for me. in the second table i want to be able to … | |
function makeSelection(icon, id) { if(!icon || !id) return; var elem = icon.elements[id]; if(!elem) return; var val = elem.options[elem.selectedIndex].id; opener.targetElement.value = val; this.close(); } this form used to select from a dropdown but i want to make it select from a click button <td>Icon1 Here<br /><input type="button" value="Select" id="1000" onclick="makeSelection(this.form, 'icon');"></td> … | |
var one = getElementsByClassName("orange")[0]; one.style.color = "orange"; The code above gives me the following error, why ? Error: 'getElementsByClassName' was used before it was defined. |
The End.