15,120 Topics

Member Avatar for
Member Avatar for simplypixie

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 …

Member Avatar for simplypixie
0
207
Member Avatar for dineshswamy

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); } } } …

Member Avatar for rotten69
0
73
Member Avatar for ak47carbon
Member Avatar for rotten69
0
132
Member Avatar for florin1

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 …

0
52
Member Avatar for erik216

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 …

0
62
Member Avatar for silvertooth07

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 …

0
86
Member Avatar for pasterstroodle

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() …

Member Avatar for pritaeas
0
111
Member Avatar for srinidelite

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.

Member Avatar for srinidelite
0
105
Member Avatar for jdgieschen

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 …

Member Avatar for jdgieschen
0
612
Member Avatar for 21122012

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 …

Member Avatar for jkon
0
190
Member Avatar for momonq1990

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' …

Member Avatar for veedeoo
0
329
Member Avatar for artemisxx

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 …

0
145
Member Avatar for New-Reign

[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 …

Member Avatar for New-Reign
0
86
Member Avatar for arbazpathan

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

Member Avatar for Ancient Dragon
0
57
Member Avatar for thepanther

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 …

Member Avatar for thepanther
0
91
Member Avatar for jacob21

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.

0
51
Member Avatar for P.manidas

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 …

Member Avatar for P.manidas
0
575
Member Avatar for titosd

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 …

Member Avatar for Airshow
0
60
Member Avatar for RachelR

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 …

Member Avatar for RachelR
0
1K
Member Avatar for Coyx

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 …

0
92
Member Avatar for kolibrizas

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 …

Member Avatar for kolibrizas
0
224
Member Avatar for showman13

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 …

Member Avatar for showman13
0
188
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
191
Member Avatar for vizz

[CODE]<!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ var ele = $('#scroll'); var speed = 25, scroll = 5, scrolling; $('#scroll-up').mouseenter(function() { // Scroll the element up scrolling = window.setInterval(function() { ele.scrollTop( ele.scrollTop() - scroll ); }, speed); }); $('#scroll-down').mouseenter(function() { // Scroll the element down scrolling = …

0
103
Member Avatar for sashaiel

Hi guys, I'm totally new to here and Ajax and coding. so Apologize If my question is funny. ok. so I have a website here :[URL="http://www.spacescientific.com"]http://www.spacescientific.com[/URL] when your mouse go on links in website an yellow ajax page opening and show intro of article. now I want to limit number …

0
69
Member Avatar for xuexue

[U]this is my code in php:[/U] [CODE]<?php echo "Hi!"; ?>[/CODE] [U]this is my code in javascript:[/U] [CODE]alert(xmlhttp.responseText);[/CODE] now, my problem is that the output displays: "1Hi!"; even though i will not display an output in php, still a "1" appends in the beginning of the alert box. What could be …

0
114
Member Avatar for ebolt007

I'm making a comment area where I have multiple posts, the posts are wrapped in a loop where the ID pulls in the correct post, and then below each post is an input area that I am trying to use ajax to post the response. I can get this to …

Member Avatar for Airshow
0
215
Member Avatar for silverwatersask

new to ajax. not that good at javascript. I have the following code which uses ajax to get data from a mysql database with php once I call the ajax function to get the data....I want to use the data in the main script but I have not been able …

Member Avatar for silverwatersask
0
1K
Member Avatar for etonyali

Hey guys, I was wondering how would I save an image to my local host on page onload. For example, Whenever I will go on my x.html or x.php page I want my IMAGE.jpg to be saved on my localhost server location and if there a file that is same …

0
42
Member Avatar for feblioz

anyone know whats the code to make the header to stay in place like facebook does? the home, profile and setting navigation stays on top

Member Avatar for feblioz
0
90

The End.