17,114 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 … | |
there is a link [URL="http://www.junnark.com/Articles/Build-a-Web-Chat-Application-Using-ASP-Net-LINQ-and-AJAX-VB.aspx"]http://www.junnark.com/Articles/Build-a-Web-Chat-Application-Using-ASP-Net-LINQ-and-AJAX-VB.aspx[/URL] where i downloaded application , but its throwing more than 40 error messages can nay one favour me to downlaod and run on its own behlaf .i m uisng vb.net to run this application | |
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 | |
Please bear with me, I'm quite new at this Java stuff. I'm quite confused as to what Java technology does what and which is a better choice. I've done quite a lot of research and found Wicket, Seam, Spring, JSF, Struts and Hibernate to be especially popular. But I'm very … | |
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); … | |
please help me with this program...badly needed.... | |
Hi All, For perhaps perverse and masochistic reasons, I have been trying the embed the Javascript V3 maps API call within a joomla article. Please see the unsuccessful attempt by viewing source at [url]http://www.hellokitties.org/index.php?option=com_content&view=category&layout=blog&id=2&Itemid=3[/url] There must be some javascript timing/interaction that I do not under stand?? Any help would be … | |
Hello, i have eleven drop down lists, one of them is main, and from the ten other lists only one should be visible. What i am doing is when i choose one option from the main select box, one of the ten other boxes becomes visible depending on which i … | |
hi there i have a problem with scrolling swf banner. for ex: i have 3 banners (banner1.swf, banner2.swf, banner3.swf) and i would like after one finishes let it swicthes to another one sourse. Thanks in advance for attention | |
hi all, i am having problem with javascript validation..My problem is i am having two radio buttons 1.Single 2.Married By default single is checked.Now when we select married i will get displayed spouse name below.Now if the person check married and didnt enter spouse name then i should get an … | |
I'm alowing a user to save their "configuration" from a form to the database> I also want the user to be able to load that configuration back onto the form from the database. Now tbh I've got no idea how to do it. I'd like this to be done without … | |
Hi to all, I get the following problem Opera Browser doesn't fired the Unload Event. I try to found a solution on the Web, but seems that I'm not the only one with this problem, Opera Developers claims that the unload event is not fired when refreshing the page, click … | |
Hi all, While trying to close parent window after loading the child is not working in Firefox but in IE. i am using the following code.. theChild=window.open('two.php','Page2','toolbar=no,status=no,menubar=no,width=400,height=200'); if(navigator.appName=='Microsoft Internet Explorer') { this.focus(); self.opener = this; self.close(); } else window.open('','_parent',''); theChild.close(); } thanks in advance... rejisha | |
Hi, I am trying to get some xml data using a jquery .post request, but it's not outputting anything. The client-side code looks like this [CODE] <html> <head> <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text/javascript"> function cstarter() { window.einterval = setInterval("cst()", 5000); window.big = "hi"; } </script> <script type="text/javascript"> function cst() { … | |
![]() | Hi all. I am trying to workout how to show the default value of a text box when you click off it. I have already got the code for the onclick but I would appreciate some help with the offclick. Thanks in advance. Cameron |
We would like to serve javascript from our database. We assumed it would be like serving html but its not working. What we have is a small news ticker and we would like to use a call to our database via php to serve this ticker, so we put the … ![]() | |
Hi All, Really appreciate your help!!! am using jquery and ajax to load the content from server. but my issue is when i get the response back to the parent jsp, the whole child jsp is loading in parentJsp div element. Instead i want to load only desired childJsp div … | |
Hey i am a newbie to web development and i want to learn JS so i can contribute to Firefox and many other Open Source projects. Can any one point me the right direction to start learning JS ? Perhaps a book or an online tutorial ? Thanks | |
Any idea how this is done? [url]http://www.lensway.fi/products?productType=FRAME&glasses=Miehille[/url] I mean by clicking on the right hand side flash box (with 'zoom in' cursor) it gets bigger, moves in the center of the screen and dims the background. Just like any typical image gallery done with jQuery. I've tried jQuery like prettyPhoto … | |
i am new one javascript and html developer i want to play video in html page and also creating its playist using java script and player.swf please can any one help me | |
hello members, i have wriiten a form in my php page and i did call an ajax function on onsubmit, based on my ajax response my form have to be submit...but i am not getting ajax response text some times. But some times i got it correctly..i have used post … | |
this code makes a slideshow(a very long fast slide show, video), it plays audio and can adjust its frame size. i have 4 streams(4 diferent groups of jpegs from 4-50kB @720x480), and can switch between them. audio is nearly automatically in sync and both it and the "video loops". using … | |
I wrote some jquery code for my websites navigation bar that displays a drop down menu by fading it in. It works in chrome, and firefox, but, like usual, not in Internet Explorer. I am using the fadeIn and fadeOut effects and everything seems in order. I even added the … |
The End.