15,127 Topics
| |
Hi all i am creating an application in which i m using jsp,servlet and javascript. on jsp page there are text boxes named ID and Passwprd and a submit button. When we submit jsp page first javascript will be executed if we left any of the text boxes blank, that … | |
Hi. I'm setting up an alcohol website which requires age verifying. My knowledge in javascript is very limited. I already have this age verify javascript which i've downloaded off net. The problem is, i want a different image to show up at the bottom, when visitor selects their year. Eg. … | |
Does AJAX(javascript) have user session functionality? I want to use AJAX PHP and MYSQL to dynamically update my static HTML page. I have got an example to work where I push and pull data out of an HTML page using AJAX, but now I want to break it up and … | |
Please sombody tell me .. i hv an input box like this [CODE]<td > <input type="text" name="emailid" id="emailid" onBlur="checkMail(this)" value="emailId" onFocus="this.value=''"> @domain.com</td>[/CODE] And the checkmail function is like this [CODE]//function to check email address format function checkMail(emailid) { var mail = emailid.value; var reg = new RegExp('^[a-z0-9]+([_|\.|-]{1}[a-z0-9]+)*@[a-z0-9]+([_|\.|-] {1}[a-z0-9]+)*[\.]{1}(com|ca|net|org|fr|in|us|gov|qc.ca|gouv.qc.ca)$', 'i'); if(!reg.test(mail) … | |
Hello, I am trying to get a value of a div. I have an html page with a div's class called "findme". I have tried innerHTML but it keeps saying undefined. function innertest() { var a = document.getElementsByClassName("findme").innerHTML; alert(a); } <div class="findme"><b>This is a test</b></div> Is there a way that … | |
Hello, I have the following code, which shows a number of form text input fields, depending on a number entered into another field: [CODE]<script type="text/javascript"> $(function() { var input = $('<input type="text" name="delegate" id="delegate" />'); var newFields = $(''); var input2 = $('<input type="text" name="non_delegate" id="non_delegate" />'); var newFields2 = … | |
I'm trying to use HTML spellcheck on a textarea in Chrome. This works on the text I type but, I need to use it with existing text. This doesn't work, only when I select the text then the spellcheck activates. I simply use this: [CODE]<TEXTAREA spellcheck="true" class="operatorchat" name="inputtext" id="inputtext">This text … | |
Hi, I am trying to learn about JQUERY. So , I found some examples and I am trying to apply to my pages. But something goes wrong. Could you help me please ? For example 1.html [CODE] <!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" … | |
I have an application in which I'm using a table. Every time I add / remove row to the table it takes more time than the previous action. When I run the IE profiler, I can see the exclusive time is increasing in the createDelegate function (Appears as "JScript - … | |
Hi, I have a page using Moo Tools with 4 images. What I would like to do is to pass a boolean value to an array that exists outside of the image, but then I need to test to see if all elements outside the array are true. If so … | |
Hi all.. i want to create a banner in my website using asp.net and ajax.. banner will consist of many banners and have the paging under the banner that moving y itself.. what we call it? i cannot find any other example yet because i dont know the name of … | |
Hello All, I am very new to YUI, as in tonight I used it for the first time. I have been reading some great tutorials and I was able to write my first small app with it. In my test app, there is one thing I dont understand but it … | |
Problem was solved, was using the wrong id stupidly... | |
Hi! Sory for my bad english! How to make (simply, font color,size,bold,italic,underline,url,and image,undo,redo) tiny editor? Is there any website with tutorial? Thanks! | |
first of all happy 10/10/10 :twisted: btw i post my problem on my wordpress site here in javascript thread because i'm having a problem a problem on javascript script.. i am hoping you can help me with my problem the images can't read or open from the image folder. here … | |
First off i'm not quite sure where this post belongs on the forum so I apologize in advance if it's in the wrong place. I have a form in one file that I would like to be processed by another file. The form has a single drop down menu which … | |
Hi, I'm very new to Javascript and AJAX so I'm using a script that I found, and I need it to send a PHP variable from the global variable (in the address bar where it says &post=94 for example) along with the other data that the script sends to a … | |
Hi there i have one question about selecting chekboxes. i have script form that adds dynamic rows and cheks/uncheks checkboxes. by default this form has one chekboxe. this function checks/uncehks only when i entered one row at least. when i dont enter any row it doesnt checks any checkboxes. who … | |
hello frnds, I have a code snippet where auto suggest dropdown will come in basis of text box value entered by the user. [CODE] <?php $response=""; $i=0; $con=mysql_connect("localhost","root","root"); mysql_select_db("autosuggest",$con)or die(mysql_error()); print "<script>var [COLOR="Red"]jarray[/COLOR] = Array();</script>"; $q=mysql_query("select * from suggestion"); $n=mysql_num_rows($q); while($r=mysql_fetch_array($q)) { $response=$r['suggest']; print "<script> j[COLOR="Red"]array[/COLOR][".$i."]='".$response."'</script>"; $i++; } ?>[/CODE] this … | |
I am working on sprucing up a site i've been working on with some ajax menus. I decided to use a tabbed menu for this site. I found a script that seems to fit what I want and am trying to integrate it into my php site. The script is … | |
I want to Create a row as the same as above [CODE]<HTML> <HEAD> <TITLE> TESTING</TITLE> </HEAD> <BODY> <INPUT type="button" value="Add Row"/> <TABLE id="dataTable" width="350px" border="1"> <tr bgcolor="#0099FF"> <th width="88" bgcolor="#66CCFF" scope="col">Code</th> <th width="289" bgcolor="#66CCFF" scope="col">Product</th> <th width="35" bgcolor="#66CCFF" scope="col">Qty</th> <th width="144" bgcolor="#66CCFF" scope="col">Rate</th> <th width="146" bgcolor="#66CCFF" scope="col">Value</th> </tr> <!----- Same … | |
Hi I am an ASP.NET developer. I dont know how to use the jquery in ASP.NET. I am using JavaScript and Ajax. But i any one please tell me, what is difference between JavaScript and Jqurey and how i can use it in .NET environment. Thanks James | |
I need to be able to dynamically assign a variable to the height attribute of a div(flashOverlay) based on the height and t position of another div(pageContent). I am using the following script to capture the variable data. How do I apply this var to the div? <script type="text/javascript"> <!-- … | |
Dear all, I m using a div to show menus on master page . Div contains the html table whcih has 2 rows showing the main(Parent) menus(Master,Reports). Each row contains html table with 4 or more rows(tr) which shows their respective sub-menu. Onmousehover of image I m showing the div. … | |
Hi All, I have a nested dropdown, using optgroup tag in html. but the problem here is we cannot select optiongroup label. my requirement is when i select the label in the dropdown box i have to display dynamic database values same as other option values. so is there any … | |
How can i write JS function to catch up Reload Button (on browser) then i pressed on. etc. -> and back button too. Thank you. | |
please help.. how can i restart my game , whenever my timer ends . it'll prompt "time expired!".. and then after , when the user clicks OK.. the game will stop .. and the user can no longer continue the game .. PLEASE HELP US : heres my code : … | |
[B]This is the code that not getting the result[/B] [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head> <title>Nice select</title> <script Language="JavaScript"> function checkData() { var myTest = me.D1.value; //alert(myTest); var req = new Request.JSON({ url: 'dbselect.php', method: 'post', data: 'brand=' + encodeURIComponent(myTest) }); req.addEvent('success', function(response) { var … | |
Hi Everyone, Could someone please help? I'm rewriting our website at present, and am quite ok with HTML and CSS, but am not particularly au fait with Javascript. Here's the page I'm having a bit of trouble with: [URL="http://www.ambersupplies.co.uk/thomas/miscellaneous.htm"]http://www.ambersupplies.co.uk/thomas/miscellaneous.htm[/URL] If you look at the long button marked 'Diagnostics', you'll see … | |
How can I call a PHP Function inside a Javascript Function? This is what I have so far, but I don't think I'm doing it the right way. Any suggestions? [code=php]<?php function phpQuery(){ $query = mysql_query("INSERT INTO mytable VALUES('','name','email')"); } ?> <script type="text/javascript"> function delayQueries() { timeoutID = window.setTimeout(doQueries, 2000); … |
The End.