20,316 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 = …
hi friends, i have a problem in my code here is paste the code [code=php] foreach ($entries as $entry) { $preview = textPreview($entry['texts'], 15); echo '<div class="leftnavi"> <h2>'.ucwords($entry['title']).'</h2> <p><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.example.com" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;"></iframe></p> <div class="tags"> <p>'.ucwords($entry['tag']).'</p> </div> <div class="quotes"> <p>'.stripslashes($preview).'</p> <p><a href="index.php?p=blog&cat='.$entry['catid'].'&fv='.$entry['id'].'">Read More</a></p> </div> </div>'; } [/code] …
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 needed to make it possible for the user to upload many files from many directories of his pc to server. Here is the html and js code html [CODE] <div id="addPhoto" > Path and Title of the Photo. <br /><br /> <input type="file" name="flImg0" /> <input type="text" name="txtTtl0" …
hi anyone knows how to create chat for logged in users!!
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="200" height="160"> <param name=FlashVars value="&stageWidth=250&stageHeight=160&data=<Chart bgColor='ffffff' upperLimit='3000' lowerLimit='1000' upperLimitDisplay='4000' lowerLimitDisplay='500' showLimits='1' numberPrefix='$' numberSuffix='' baseFont='Verdana' baseFontSize='9' baseFontColor='333333' showTickMarks='1' showTickValues='1' majorTMNumber='3' majorTMColor='333333' majorTMHeight='6' minorTMNumber='2' minorTMColor='333333' minorTMHeight='3' gaugeScaleAngle='240' gaugeStartAngle='' gaugeOriginX='105' gaugeOriginY='90' gaugeInnerRadius='35' gaugeOuterRadius='65' pivotBgColor='0372AB' pivotRadius='5' showHoverCap='1' hoverCapBorderColor='333333' hoverCapBgColor='FFFFDD' clickURL='' majorTMThickness='3'> <colorRange> <color minValue='10' maxValue='60' name='Below Midpoint' code='eeefff' /> <color minValue='20' …
Hi, I was making a search box and was trying to highlight the words that the users will enter in the search box,for example if the user enter "kids" in the searchbox it should highlight the "kids" word in the result............. is anyone have an idea how to do that
hi all, im fairly new to python and am struggling to find out how to read javascript values from a site. Help is much appreciated. thanks, Python01
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 …
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 …
Here is a snippet of my codes[CODE]<?php $animesql = "Select titles.name FROM titles WHERE titles.cat_id = 1 ORDER by name ASC"; $animeres = mysql_query($animesql); echo "<table id='MISC' style='display:none;' width='200' border='0' cellspacing='0' cellpadding='0'>"; echo "<tr><td><p class='al_toggle_txt'>"; while ($anime_list = mysql_fetch_assoc($animeres)) { //$str = str_replace(" ","",$anime_list['name']); $str = preg_replace('/[^a-zA-Z0-9]/','',$anime_list['name']); echo "<span style='cursor:pointer;' …
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 …
Hello all anyone knows a software which can enable me to quickly create an image gallery composed of thumbnails for example, and which autoplays line by line, with a zoom effect on every image encountered? I saw an example on this link (demo) [url]http://addyosmani.com/blog/zoomer-gallery-a-jquery-plugin-for-displaying-images-with-flash-like-zooming-effects/[/url] but it applies the zooming only …
Ok guys, I will like to know what programming language, javascript or flash to do these; Play a video and when a user clicks a part of the video they get marked. My guess here is flash but not sure how to go about it. Please any web links that …
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
hi am a new joinee, how to get values of selected checkboxes in a table? please help me, selected Lc code from UI, that LC code value should get into the table plz help me out this is my action class, [code]package webapp.control.nri; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.logging.Log; import …
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. …
Friends, I have some menus. I click on a menu to perform a function. It "closes" the dropdown but the screen behind the dropdown does NOT refresh until after the code for the menu item code finishes executing (several seconds). How do I get the screen to refresh right away? …
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.
OK, im trying to develope an event calendar. So, far i have used only php. I am new to programming and thats the only language i have learned atm. anyway, when i click the next or prev month buttons it sets cookies for new months etc.. to a cookie.php from …
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 …
hello every boduy i need a help an i think it's the better place in the world when i can found this so my problem ; know i have a messagebox with retry and cancel but now i need a new messagebox with accept retry and cancel when i can …
Hello Members, I have a JFrame, which creates a JDialog upon clicking. In the JDialog, I have a JCombobox. When I choose one of the options in the JCombobox, I should be able to change the background color of the JFrame randomly in an open ended loop. When I then …
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 …
The End.