15,121 Topics
| |
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 … | |
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 … | |
I have in javascript a text say I am an idiot I want to do it. "I am...." and on mouseover it shows up I am an idiot. How can I do it? | |
please help write a javascript function to do a client side validation of the html form i have displayed below. the validation should check if input box Student No cannot be empty; if the txtStdNo box is empty there should be a message "Cannot be empty" and move the cursor … | |
function checkalpha(e) { var a=e.keyCode; if(!((a>=65 && a<=90) || (a>=97 && a<=122))) { e.keyCode=0; } } The above function work well in internet explorer for checking characters only in name but same code not working in Mozila Firefox please give me solution | |
[url]http://www.mattkruse.com/javascript/mktree/[/url] I have tree like that style. I want on node click, to show word loading below the node clicked until new nodes are opened..anyone know how to do this? | |
Hello everyone, I'm trying to customize the popup menu based on which table I right-click on. I have disabled the right-click function on the page except for the tables. I did this on purpose. This web page will be called from a python software, using the IE activeX, so no … | |
Hi I'm struggling with JavaScript. I've found this bit of code: [CODE] //Get which URL was clicked on function getEvent (e) { var event = e || window.event; if( ! event.target ) { event.target = event.srcElement; } return event; } Run the function with code like this: <a href="#fred" id="fred" … | |
Hi I want pass multiple values javascript to asp.net(C#) server side... how i do it using array ?? don't using hidden fields... thanks | |
Please help me with my follwing code. this can only check if username textbox is empty. how do i also make it so that it checks if password textbox is empty and thereby give an error??? please help. [CODE] <html> <script type="text/javascript"> function validateFormOnSubmit(strng){ if(strng.value=="") { alert("Empty"); return false; } … | |
| Hi, I have an ajax script that sends a request to a servlet for information to be inserted into a table cell. The servlet then handles the request and replies with something like this: (I took the liberty of removing all the out.println tags) [CODE] <script language='javascript' src='whiteWine.js'></script> <table align='center' … |
In this the JS Codes (in the code tag)are not working only in this page can any one help me on this <!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"><!-- InstanceBegin template="/Templates/main.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Luxmi Lanka</title> <!-- InstanceEndEditable … | |
This is my codes [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" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script language="javascript" type="text/javascript" src="js/mootools.js"></script> <script language="javascript" type="text/javascript" src="js/getchqno.js"></script> </head> <body> <script type="text/javascript"> function buildSelect(select, options) { var select = $(select); select.empty(); options.each(function(item) { if($type(item) != "array") { item … | |
Hi, I am making a small image annotation tool for research purpose. I have many images shown to a <user> and the person has to click on the image to enter further information about the image. I would like to POST information about the <user> which is same for all … | |
I have found Javascript to be the most difficult language to find useful and CORRECT info on. Afterr working for several hours looking at various sites, I'm still somewhat stumped. All I know at this point is that these is a difference in the array formatting between PHP and JS. … | |
I have the following html form where the user enters username and password. I'm using ajax to send the values to a php page and in return depending on what the username and password is the php page sends a request back. It send a T if the username/password combination … | |
I will keep it simple. I need to list id of every element in given section. Example [code=html] <div id="leftSide"> <ul id="leftList"> <li id="item1"item 1</li> <li id="item2"item 2</li> <li id="item3"item 3</li> <li id="item4"item 4</li> <li id="item5"item 5</li> <li id="item6"item 6</li> </ul> </div> <div id="rightSide"> <ul id="rightList"> <li id="item2"item 2</li> <li … | |
| Hi, I've been searching around for quite some time now but haven't found what I've been looking for... I'm trying to stretch a flash object inside my browser but for some reason the more I stretch it, the bigger the boarders get while the actual movie on the inside stays … |
Hi all, I am not getting the tinymce edit textarea in an html page that is generated by ajax. I am calling the ajax using jquery. I have kept the tiny_mce.js file on the page that is generated via ajax. The path is correct but am not getting the page … | |
I'm working on this since 3 days, grabbing the web looking after ideas. Hope someone faced this problem and solved it. All is about a picture site Here how it's doing: There are about 15 items with different options offered to the customers. A combination of size, number of figures, … | |
I work for masterclock. we sell network synced clocks and timing systems. One of our products is a "bell ringer." We currently control this ringer through a C++ program another one of our employees made. However, it only works on Windows systems, looks like crap, and is as confusing beyond … | |
Hello, I'm a neophyte to Javascript, but I need it to dynamically add lines to a form. I was able to cobble together this inelegant looking code below. It adds the row when called, but there are more attributes needed for this to be correct for the application. 1) need … | |
hello everyone could u please solve this for me Write embedded JavaScript code in the required HTML tags that accepts three numbers from the user and pring out the maximum as the following result : First Number is : 3 Second Number is : 4 Third Number is : 5 … | |
What i need is Toggle the each div with the relevant check box ex:- when i checked "[B]div1chk[/B]" i want to toggle "[B]div1[/B]" [CODE] <input type="checkbox" id="div1chk" /> <input type="checkbox" id="div2chk" /> <input type="checkbox" id="div3chk" /> <div id="div1"> div1 showed </div> <div id="div2"> div2 showed </div> <div id="div3"> div3 showed … | |
Hi, I am having troubles finding something about dropdowns with javascript. I have two dropdowns, and I wanted to choose an option from the first and change the values that appear in the second. Can anyone help me? Thanks in advance | |
Hi, The following JQuery works fine in all browsers excluding ie-8. It works fine even in ie-7. Not tested in ie version gater than 8. It works fine in Firefox, Chrome and ie-7. Can any body figure out what is the problem and how to solve. [CODE] <script type="text/javascript"> $(document).ready(function() … | |
I have this piece of code executed with greasemonkey. I don't know how to introduce a timeout for butt.click();. To be executed for exemple very 3 seconds. I've tried setTimeout(function(){butt.click();}, 3000); but doesn't work correctly [CODE]javascript:var lis = document.getElementsByTagName('li'); for(var n in lis) { var li = lis[n]; try { … | |
hello, can anyone help med check what I am missing in this code: [CODE]//here I want to make the lists unvisible when you enter the page. function borja(){ var vanster=document.getElementsByTagName("h2"); for (i=0; i<vanster.length; i++) { vanster[i].nextSibling.nextSibling.className="osynlig"; } } function visa(){ var sibling=this.nextSibling.nextSibling; sibling.className="synlig"; } function dolj(){ var sibling=this.nextSibling.nextSibling; sibling.className="osynlig"; } … | |
ok so i have been searching on the web for a really simple and clean coded way to have a ajax multi dropdown boxes. so what i am trying to do it is have one dropdown that has lets say countries, then the second dropdown will populate to have states, … | |
I just watched the "Taming the Web" video from 01/12/09 on Adobe TV which discusses how to use jQuery as a framework for AJAX development using Dreamweaver CS4. I am just beginning to learn about this stuff but it seemed to me that everything that the instructor did with jQuery … |
The End.