15,119 Topics

Member Avatar for
Member Avatar for amitverma

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 …

Member Avatar for furutani
0
204
Member Avatar for veledrom

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

Member Avatar for veledrom
0
74
Member Avatar for Arianna

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 …

0
70
Member Avatar for GReddy4u

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

0
77
Member Avatar for sanm

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 …

0
98
Member Avatar for lydia21

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 …

Member Avatar for mehrab
0
274
Member Avatar for hajjo

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?

0
52
Member Avatar for avirag

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 …

Member Avatar for avirag
0
157
Member Avatar for boot-baby-boot

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.

Member Avatar for JRM
0
68
Member Avatar for thebluestar

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

Member Avatar for thebluestar
0
116
Member Avatar for chaines51

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?

0
56
Member Avatar for apollokid

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 …

Member Avatar for almostbob
0
63
Member Avatar for fuchsia555
Member Avatar for oneat

Does ajax support pages on pulpit for example ?? I mean without server. Read from HDD ?

0
67
Member Avatar for shahid007041

Hello, I want something which should not execute block of code of javascript. when any control fires postback. Please reply. Thanks.

Member Avatar for shahid007041
0
67
Member Avatar for solway

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 …

Member Avatar for Gianni^^
0
280
Member Avatar for johny321

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 …

0
66
Member Avatar for Peran

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 …

Member Avatar for Peran
0
140
Member Avatar for lifeworks

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 …

Member Avatar for lifeworks
0
78
Member Avatar for inquisitivemind

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 …

0
115
Member Avatar for mehrab

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.

Member Avatar for FlashCreations
0
82
Member Avatar for jonow

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 …

Member Avatar for jonow
0
280
Member Avatar for jonow

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 …

Member Avatar for jonow
0
287
Member Avatar for qnstner

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 …

Member Avatar for qnstner
0
98
Member Avatar for jino

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">&lt;--select one--&gt;</option> <option value="57">OBC</option> <option value="16">OEC</option> </select> I had tried For example something like …

Member Avatar for furutani
0
81
Member Avatar for prakash.pipil

<!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"; …

0
53
Member Avatar for Philip435

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 …

Member Avatar for shanyuva
0
83
Member Avatar for sweisern

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 …

Member Avatar for sweisern
0
98
Member Avatar for statutoryape

Hi all, Here's the code I've come up with. I deliberately left off an expiration date since I want the cookie to expire when the browser is closed. [CODE]<html> <head> <script type="text/javascript"> function setCookie(name,value) { document.cookie=name+"="+value; } </script> </head> <body> <a href="#" onClick="createCookie('Role',Parent)";>Parent</a> <a href="#" onClick="createCookie('Role',Student)";>Student</a> </body> </html> [/CODE] I've …

Member Avatar for statutoryape
0
2K
Member Avatar for bazaboo

I need to be able to modify the Yahoo maps Ajax API to fill the javascript cities array from my Access database. var cities = [ {name: "3909 N. Ocean Blvd Fort Lauderdale", pop: "7.554.236"}, {name: "Bimini Bahamas", pop: "115.918"}, {name: "Scottsdale Arizona", pop: "587.891"}, {name: "Stamford", pop: "A-1 ALUMINUM …

0
50

The End.