15,121 Topics
| |
I need to validate two forms containing multiple input fields but want just one error message if any of the fields are left blank, the page is required to submit the users details (registration form). Also if any of these fields are left blank i don't want to be able … | |
Hi I am new to javascript and I am trying to get rid of an object expected error. Here is the line I'm getting an error at [code] <td></td><td></td><td align="center">To print this quote click <a href="/broker/OfferSummary.asp?QuoteKey=<%=vQuoteKey%>" target="blank" onChange="enablePRINT()" checked = "checked"> HERE.</a></td> [/code] here is the function enablePRINT() [code] function … | |
i am using the following JQuery function to successfully POST data to the user_submit.php file, its just that the php file is unable to receive the data. [CODE] $(function() { $("#submit_js").click(function() { $.post("user_submit.php", { comment: $("#comment").val() }); }); });[/CODE] upon finishing the Firebug consoloe shows this: [CODE]<html> <body> Your vote … | |
Hi, Why this code doesn't work? All I want to do is removing all the white spaces. JavaScript [code] function validateForm(){ var postcode1 = (document.form1.textPostcode1.value).replace(/^\s*|\s*$/g, ""); if (postcode1 == "") { alert ("ERROR"); } else { alert ("CORRECT"); } } [/code] HTML [code] <form name="form1" action="save.php" method="POST" onSubmit="return validateForm()"> POSTCODE: … | |
Hey. :D I've written a page which uses Ajax to let a user type in HTML on one side, and have the html be shown completely on the other side. It works well - that is, until the user wants to use CSS styles in the head. As it is … | |
If a mod comes across this thread feel free to delete it, I've re-posted it in the html forum since it has more to do with html, although it does deal with js as well. joshsonunionsquare dot com/index1.php I just added a 3rd button on the main section titled 'Photos' … | |
Hi I am trying multiple related selects using coldfusion and javascript. I have four dropdown list first one is related to the second one and thrid one is related to the first one. It is working as per expected if i have two drop down lists which are related to … | |
hi i want to pass variable from php to javascript.i want to pass my group[name please tell me.the current code is not working [CODE]<? session_start(); require_once('common/dblayer.php'); $db=new dblayer(); $id=$employer_id; $empid=$db->getgroupname($id); $groupname=$empid[0]["group1"]; echo $groupname; ?>[/CODE] javascript code [CODE] //Contents for menu 1 var menu1=new Array() menu1[0]='<a href="employercp.php">Job Portal</a>' menu1[1]='<a href="cggroup.php?id=<? echo … | |
Hello, when the page is being opened I want loading.gif image to appear. Then when loading is over and page is opened I want that image removed from the page ( loading image) anyone got sample code? | |
I have an application in which reads the system date and if I increase the system date by 1year ,then the application expires and stops working....... I have a javascript file in which functions for this expiration period..... Kindly tell me how can I modify this code so that no … | |
Hello,i have a question.I am designing a web application and here is a screenshot in png.[url]http://twitpic.com/uc9ha[/url] My question is,i want the email and password form fields to bie as big as i have indicated.What css do i need to have to make them to be of that size?. Thank you. | |
[CODE] <html> <head> </head> <body> <script type="text/javascript"> var arr = new Array(); var sortedARR = new Array(); // FORM to input the number of names document.write("<form name=\"TEN\" method=\"\" action=\"\">"); document.write(" Please enter the numbers of names u want to input:<input type=\"text\" name=\"NoName\"> "); var No = document.TEN.NoName.value; var N; N … | |
Ok, so I have a very basic (low footprint) logging system. However, one thing I cannot figure out is, if I write a log to [icode]fatal()[/icode], then I want the script to quit executing, period. Is there anyway to do this? | |
Hi All, I have a question about generating results in fields automatically without submitting or onclick onblur etc.. Just the result would generate and show as soon as I start filling in fields. example I would like to fill out my size qty and have the result show in field … | |
hi is there a code to auto refresh the page if 503 apache error message appear ? | |
Does ajax support pages on pulpit for example ?? I mean without server. Read from HDD ? | |
Hello, I want something which should not execute block of code of javascript. when any control fires postback. Please reply. Thanks. | |
Hi guys First time posting here. Have been enjoying all the resources available to us, very helpful. My problem: Recently started learning css / java - i have a web page with an iframe on the index pages within a div tag, which then loads all other pages into this … | |
I want to work in jSP & have no idea. can any one guide me or suggest me how to start or share with with me its free tutorial & online video lectures as well. Second thing what i need to install on my Pc to run a java Script … | |
Anyone here using Visual Studio 2008 to edit Javascript files? Wheneven I try to edit a .JS file (regardless of whether I've created it inside VS2008 or imported it), I get the tab with the file name, but the content doesn't update. I just see the contents of the previous … | |
Hi Ive been using some httpRequests but have gotten tired of writing the 'preparation code' for every request... so I thought I'd make a function that accepted a URL, and a list of parameters and would return the responseText variable... But what seems to happen is that my other code … | |
I am not sure if this is the right forum (if it is not please suggest the right one.) I am trying to design an application that will run in a location with intermittent connectivity. I want data from this intermittently connected location to a master location which has a … | |
I want to make a comment box in a web page which will take a comment from the user and save it to the database and show all comments including new comment without reloading by ajax or jscript. Please help me someone with coding. Please. | |
I am trying to enable Gzip for CSS and JavaScript but whenever I do it the CSS fails to load (thats what firebug says) and same with some of the JavaScript (like some of it loads and other doesn't. The CSS and JavaScript are external files. I am using the … | |
I am using [URL="http://musicplayer.sourceforge.net/"]XSPF Web Music Player[/URL] slim, and whenever I put it into a web page and play it using Google Chrome or Safari the song starts playing twice. When i press the pause button one instance of the song keeps playing while the other keep going without any … | |
Hi! I have a bunch of variables that collects data from an external source. Each variable retrieve data from different locations. I want to pass all this data to either a table or to options in a select box. Can only the data who has been changed be updated? If … | |
Hi all, How can i get the value of a specific text in a select box. example 16 of text OEC using jquery, I am not getting the value correctly <select name="categories" id="categories" class="validate"> <option value="0" selected="selected"><--select one--></option> <option value="57">OBC</option> <option value="16">OEC</option> </select> I had tried For example something like … | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <?php $_REQUEST["chkhob"]; if(isset($_REQUEST["btnsubmit"])) { $choise = array("cricket","football","polo","tennies"); foreach($choise as $key => $val) { //var_dump($_REQUEST["chkhob"]); if(in_array($val, $_REQUEST["chkhob"])) { $chkbox[$key] = "CHECKED"; } } $result = implode(" , ", $_REQUEST["chkhob"]); echo "Your Hobies: $result"; … | |
Hey i need some help, ive done a javascript that will create a small popup when the user a link, just like the one on this forum when u touch a thread and you can read a small part of it. this is the code and my problem is that … | |
Hey all you AJAX masters, Here comes a long post but I know someone out there knows what's wrong here.... I have no idea why the following script doesn't work but I think I have isolated the problem. I have an 'order form' page (that calls this script) that generates … |
The End.