14,388 Topics

Member Avatar for
Member Avatar for keval007

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

Member Avatar for me655321
0
92
Member Avatar for hajjo

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

Member Avatar for me655321
0
99
Member Avatar for Razorholt

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 …

Member Avatar for Rajivgandhi
0
351
Member Avatar for Alec_S

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

0
51
Member Avatar for rukshilag

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; } …

Member Avatar for Atli
0
83
Member Avatar for feoperro

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

Member Avatar for feoperro
0
131
Member Avatar for ruwanaru

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 …

Member Avatar for ruwanaru
0
119
Member Avatar for ruwanaru

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 …

Member Avatar for ruwanaru
0
166
Member Avatar for grv_

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 …

Member Avatar for grv_
0
99
Member Avatar for JRM

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

Member Avatar for JRM
0
255
Member Avatar for Chad Gary

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 …

Member Avatar for Atli
0
104
Member Avatar for peter_budo

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 …

Member Avatar for peter_budo
0
128
Member Avatar for feoperro

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 …

Member Avatar for feoperro
0
221
Member Avatar for jino

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 …

Member Avatar for jino
0
1K
Member Avatar for EPierre

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

0
61
Member Avatar for daveo1001

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 …

Member Avatar for JRM
0
107
Member Avatar for JRM

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 …

Member Avatar for JRM
0
130
Member Avatar for girl.java

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 …

Member Avatar for girl.java
0
100
Member Avatar for ruwanaru

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 …

Member Avatar for terrial
0
125
Member Avatar for JohnBlanco

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

Member Avatar for JohnBlanco
0
119
Member Avatar for dasatti

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() …

Member Avatar for macneato
0
84
Member Avatar for Kitzhi

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

Member Avatar for me655321
0
71
Member Avatar for newto

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

Member Avatar for newto
0
195
Member Avatar for itisnot_me

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

0
55
Member Avatar for Breckenridge

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 …

Member Avatar for Fungus1487
0
108
Member Avatar for Tekkno

I have a javascript that displays a countdown in the browser. The problem is that if the element does not load immediately the countdown turns to negative. Here is the script: [code=javascript] <script> var time = 10; //How long (in seconds) to countdown var page = '<?php echo $page ?>'; …

Member Avatar for Airshow
0
232
Member Avatar for aish
Member Avatar for dalvir
0
312
Member Avatar for varun pathak

I have a requirement in which I have to prin to directly to printer and show the error if its not printed. Till now I have been able to manage to send directly to printer via vbscript. but If am not able to print script never throws the error . …

0
42
Member Avatar for Philip435

Hey Im going to make an ajaxlogin for my website but ive ran into a problem with the jquery submit() funktion. If i put my login form in the body of the index and use $('form').submit() it works perfect but. when I have the login form in another php page …

0
72
Member Avatar for lbob

Hi I've got a datagrid where I'm calling javscript to calculate selected values, I'm trying to update a textbox in the footer, but can't. I've tried document.getElementById("Textbox1").innerText = newtotal; but it can't find the object. Any help would be greatly appreciated. Lbob

0
46

The End.