15,700 Topics
![]() | |
Hi Ive been using some httpRequests but have gotten tired of writing the 'preparation code' for every request... so I thought I'd make a function that accepted a URL, and a list of parameters and would return the responseText variable... But what seems to happen is that my other code … | |
I am not sure if this is the right forum (if it is not please suggest the right one.) I am trying to design an application that will run in a location with intermittent connectivity. I want data from this intermittently connected location to a master location which has a … | |
I want to make a comment box in a web page which will take a comment from the user and save it to the database and show all comments including new comment without reloading by ajax or jscript. Please help me someone with coding. Please. | |
I am trying to enable Gzip for CSS and JavaScript but whenever I do it the CSS fails to load (thats what firebug says) and same with some of the JavaScript (like some of it loads and other doesn't. The CSS and JavaScript are external files. I am using the … | |
I am using [URL="http://musicplayer.sourceforge.net/"]XSPF Web Music Player[/URL] slim, and whenever I put it into a web page and play it using Google Chrome or Safari the song starts playing twice. When i press the pause button one instance of the song keeps playing while the other keep going without any … | |
Hi! I have a bunch of variables that collects data from an external source. Each variable retrieve data from different locations. I want to pass all this data to either a table or to options in a select box. Can only the data who has been changed be updated? If … | |
Hi all, How can i get the value of a specific text in a select box. example 16 of text OEC using jquery, I am not getting the value correctly <select name="categories" id="categories" class="validate"> <option value="0" selected="selected"><--select one--></option> <option value="57">OBC</option> <option value="16">OEC</option> </select> I had tried For example something like … | |
<!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> <?php $_REQUEST["chkhob"]; if(isset($_REQUEST["btnsubmit"])) { $choise = array("cricket","football","polo","tennies"); foreach($choise as $key => $val) { //var_dump($_REQUEST["chkhob"]); if(in_array($val, $_REQUEST["chkhob"])) { $chkbox[$key] = "CHECKED"; } } $result = implode(" , ", $_REQUEST["chkhob"]); echo "Your Hobies: $result"; … | |
Hey i need some help, ive done a javascript that will create a small popup when the user a link, just like the one on this forum when u touch a thread and you can read a small part of it. this is the code and my problem is that … | |
Hey all you AJAX masters, Here comes a long post but I know someone out there knows what's wrong here.... I have no idea why the following script doesn't work but I think I have isolated the problem. I have an 'order form' page (that calls this script) that generates … | |
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 … | |
I know you would say ask to JS/AJAX forum! Don't worry, it isn't about codes, it is curiosity. I wan't to know if I can do Ajaxing using JQuery and PHP without writting all Ajax functions myself :) Just that :-/ ![]() | |
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 … | |
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 ?>'; … | |
using the javascript how can I get web server time and date? :eek: | |
Hi, In an Javascript code, I am taking a value from User and this value I want in my server side code , vb.net, What is the code for this.??? Thanx & Regards Anup | |
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 . … | |
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 … | |
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 | |
You can place the game "Blackjack" by adding the following script to your website. All the information is included within the script, please do not remove the warranty or information. If you don't want such a big lap of code on your website, you can also place the following, as … | |
I'm a PHP guy so I still struggle with Javascript. The answer to this is probably easy. I need to add some animation effects and I'm experimenting with JQuery [B]animate[/B]. The sample routine is set up to run when you click on the Run link. I want to change the … | |
i have been asked to fix a problem on a content management system website. when the user edits the text and then clicks on the save button it is not updating the text on the pages selected. the code that is being used is [ICODE]oEdit1.btnSave= true; // Enable save button … |
The End.