15,127 Topics
| |
How can I transfer the values inserted in <input type="text" name="num1"> to radio button <input type="radio" name="rep_num1" value="">On submit of form. Actuall when user insert the value or text in the textbox the value of the text box should replace or transfer to the value in radio button when user … | |
I've decided to try to create a small (very) game in Javascript + HTML, using the Canvas element. So far, its gone pretty well, but recently I started on bullets. This also has gone well. I've decided to try to implement a bullet-goto-mouse type thing. I know this uses trigonometry, … | |
**Bold Text Here** The included file is a code to make a quiz using javascript and radio buttons . When you finally submit , it shoudl print the question numbers for the correct answer in green and the wrong answers in red . But the code is not working properly. … | |
my code -moz-transform:rotate(20deg); -webkit-transform:rotate(20deg); -o-transform:rotate(20deg); http://www.the-art-of-web.com/css/css-animation/ Is there any jquery code available? | |
Hi all, I have a problem with manipulating gridview with a textbox outside gridview but in the same form. My requirement is I have a gridview where cell[1] is quantity, cell[2] is a boundfield which shows the rate and cell[3] is discount and i have a textbox control outside gridview … | |
Code blocks are created by indenting at least 4 spaces ... and can span multiple lines <script> function del(delUrl) { var r=confirm("Are you sure you want to delete?"); if (r==true) { alert("Deleted record!"); document.location = delUrl; } else { alert("Delete cancel!"); } } </script> <a href='delete.php?id=$sysid' class='view' onClick='del()'> <img src='image/vie.png' … | |
Hi.. Anyone please help me to find the duration between two date-times in following format? format is Date1="23-03-2012 04:25PM" Date2="26-09-2013 08:26AM" I want to find out the diffence between Date1 and Date2 in following format. The Result ="no of Years:no of Days:no of Hours:no of Mintues:no of Seconds" | |
I am using jQuery and Ajax for some areas of a site and I cannot for the life of me work out how to only submit the Ajax if the form is valid. For normal jQuery validation I am using jquery.validate.min.js like this: $("#po-login-form").validate(); This works fine. I then have … | |
i dont know why my onreadystatechange function is not working var xmlhttp; var time; function init() { time=0; t=setInterval("timer()",1000); } function timer() { time++; } function sendrequest(v,qno) { if(window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if(xmlhttp.readyState==4 && xmlhttp.status==200) { alert("Came Inside"); postdata(v,qno); } } } … | |
i want to learn ajax from plese tell me how can i learn ajax from begening to advanced level plz tell me | |
hello. I have this javascript <script type="text/javascript"> function buildMonthlyEntries() { var startDate = new Date(document.getElementById('datastart').value); var endDate = new Date(document.getElementById('dataend').value); if(startDate == "Invalid Date" || endDate == "Invalid Date") { return null; } var entryCount = (endDate.getMonth() - startDate.getMonth())+(endDate.getFullYear() - startDate.getFullYear())*12; var monthlyEntries = document.getElementById('monthlyEntries'); monthlyEntries.innerHTML = ""; for(var i … | |
I want to make two dropdown list A and B dropdownlist A include a , b , c , d When dropdown list A selected A There will be show 1,2,3 in dropdown list B When dropdown list A selected B There will be show 4,5,6 in dropdown list B … | |
Hello, I'm having a problem using the jTable plugin. I'm fairly new to using jquery. Here is my problem: I have an database name reg and has fields (fname, lname.....avatar). What i want is to show the contents of the database using jTable. Now, I don't know how to display … | |
The following code succesfully refreshes the #content div, but in doing so it clear the $name variable which is passed from a previous page. How can I reload the div without losing my variable? The following is the code in "thispage.php". Any help would be appreciated! <html> <head> <script> setInterval(function() … | |
var RE_SSN = /^[0-9]{3}[\- ]?[0-9]{2}[\- ]?[0-9]{4}$/; hello , i would like to know what is the meaning behind in these ^ ,[\- ],$ symbols??? and i would able to follow that the script logically verifying the format of text being entered!! i.e NNN-NN-NNNN... Thanks in Advance .. Srini. | |
I've got a project I'm working on where people can search using checkboxes, sliders, and an input box. The search works, but I've got issues here, especially when using IE as the browser. Haven't even tried Safari and Opera. Even in Firefox, there are minor issues. First, the lagging of … | |
When user clicks on the calendar image, date can be chosen. If the text field changes, the date will be compared with $today with Javascript. If the date is earlier than today, a mesage will be shown. I did these codes and the message could not be shown when I … | |
Code blocks are created by indenting at least 4 spaces ... and can span multiple lines <script> function del(delUrl) { var r=confirm("Are you sure you want to delete?"); if (r==true) { alert("Deleted record!"); document.location = delUrl; } else { alert("Delete cancel!"); } } </script> <a href='delete.php?id=$sysid' class='view' onClick='del()'> <img src='image/vie.png' … | |
I'm working on highlighting repeater row. And then when i click on another row, the previous row becomes unhighlighted. So it's working, but only for a split second. Once the modalpopup appears, the highlight is gone. By the way, i have a linkbutton in every row that makes the modalpopup … | |
[CODE]<html> <head> <script> "use strict"; function hexidecimal() { var num = document.getElementsByName('number')[0].value; var hex = num.toString(16); alert(hex); alert(num.toString(2)); } </script> </head> <body> <form id="form"> <input type="text" name="number" /> <input type="button" value="Hex" onClick="hexidecimal();" /> </form> </body> </html>[/CODE] Above is the current code I have, I expect it to output the contents … | |
hi all i have 2 textboxes in my code both of them have their individual textchanged event but the problem is that textchanged event of only first textbox is implementing | |
hi all im trying to make a quiz on this..here is my code but cant seem to get it to work Grrrrrrrrr ---------------------------------------------------------- it gives the user a mark on how he/she performed. This should be time limited and when finished should also display whether the given answers were wrong … | |
I want a Jquery Popup Form which will appear on Page Load but only one time (for newsletter purpose). After filling form.. I want to store values into a table. | |
I am trying to run an asp page with an external JavaScript file but it is showing error like this.... Error Type: Active Server Pages, ASP 0124 (0x80004005) The required Language attribute of the Script tag is missing. /ew-ii-as-8/testserverwithEJSF.asp, line 3 My both files are... TestServerWithEJSF.asp [CODE] <html> <head> <script … | |
I want to ask you If i want to check length from input, but when the user is add new line i want the length to decrease 2 chars for example this string : Hello World I want this string to be 12 chars, because Hello 5 chars + 2 … | |
Hello All, I'm trying to GET values from a DB table in JSON format through AJAX and then parse them into a JQuery List. test.php (partial) [CODE]while($row=mysql_fetch_assoc($sql)) $output[]=$row; print(json_encode($output)); mysql_close();[/CODE] JSON Format it Returns: [CODE][{"name":"1423 Peacock Haven"},{"name":"9835 Fredericksburg Rd"},{"name":"Test Project"}][/CODE] Following along with [URL="http://www.roccles.com/?p=151"]this tutorial[/URL], I'm trying to parse my … | |
Hi all, Looking for some help with a piece of code in a jQuery slider. The problem is that it is refusing to do anything in IE, whether by clicks or automatically slide - as it does in Chrome/Firefox. The slider is on the home page; [url]http://www.darenthmjs.com/[/url] The code is … | |
I am doing a cross-site ajax to java data transaction(Not sure if I named that correctly, so please forgive me about that). Part of code in Java file: [CODE]BufferedReader input = new BufferedReader(new InputStreamReader(connectionsocket. getInputStream())); DataOutputStream output = new DataOutputStream(connectionsocket.getOutputStream()); ... output.writeChars("some random text"); output.close();[/CODE] Also I have index.php file … | |
Good Early Morning (just barely) I have an issue with a javascript function in <head> portion of a script apparently sending something to the browser that is preventing a redirect from working the way it was before I added this JS... Here is the JS that I added [CODE] <link … | |
Hi guys, I wonder if anybody can give me an advice. I am working at a photography site (as many of you might know by now :)) and I realized I made a pretty bad mistake, for the second time in a row unfortunately, which is to rely on javascript … |
The End.