15,121 Topics
| |
I have been aroundsites a while and I have learnt that ajax isn't that dynamic. I tried to use iframes but got caught with cross frame AJAX and PHP with parent page. [URL="http://www.daniweb.com/forums/thread262323.html"]http://www.daniweb.com/forums/thread262323.html[/URL] Which no one answered on, so I went to AJAX. I call a php form for users … | |
Does anyone know why these event codes run twice? E.g. I am using a cookie to keep track of [Ctrl] + [Shift] + [F] by incrementing a variable once everytime it is used. However the code for it runs twice and thus the variable is never odd as it always … | |
As many before me, I suppose, I have trouble with setTimeout() in FireFox. Oddly, I have no problems with IE. If I use [CODE]setTimeout(loadnav1(),2000)[/CODE], FF fires loadnav1() immediately and try-catch complains about loadnav1() not being in quotations. If I use [CODE]setTimeout('loadnav1()',2000)[/CODE], IE works fine, but FF does nothing. Can anyone … | |
Hello All, currently i have google ecommerce tracking code enabled in my website. i want to track the productNo and ProductNames along with their prices. this where i am stuck. my shopping cart where i put the tracking code can have more then one itemNo. i used a loop to … | |
this is just part of the code. when i added the variable hide it stopped working. basically i want the php variable hide to add on to the variable newtext2. if i've implemented it wrong, need help correcting it. [CODE] var newtext2 = obj( "reply" ).value; var hide = <?php … | |
Hello everyone, Confused with the title of the thread? Well, I guess that`s because my brain is completly fried from trying to find the correct way to do something that seems impossible without your help. Here is the story, I have 8 questions, each containing 5 answers. I have a … | |
I have a text area that is part of a form for a manageable picture gallery. When the user clicks the text area, the "Description" is supposed to disappear, and then when they click away, if they didn't type something, "Description" is supposed to reappear. The problem is is that … | |
Ok guys l generated some dhtml drop down menu using Sotthink DHTML menu 8. Now l am editing it in my Netbeans but cant change the height of the seperator . There is a lot of code cant put it here | |
how to make var newtext2 a hyperlink? the hyperlink is a php variable. I've only included this line of code. [code]var newtext2 = obj( "reply" ).value;[/code]h | |
Hi Could any body help us to sort it out. i am using two textareas for editing by tinymce, its working fine in ie and ff but in [COLOR="Red"]safari it is opening the first textarea editor only[/COLOR]. This was my code. [CODE]tinyMCE.init({ // General options mode : "textareas", //mode : … | |
Hello I need to pass an array of client side events to the next page. Here my user would perform a few events which would be stored in a javascript array, upon completion a submit button would be used to post all that data to the next page. An example … | |
background: I have a computer with 2 monitors. One monitor opens a web page to an inventory manager(M1). The other monitor has a web page with a display of available inventory(M2). When I update something on M1 and the page reloads I want it to automatically refresh M2. Currently I … | |
Hi, Currently I optimize my website. I would like to use php, javascript or ajax to implement the asynchronous action: I have an array of checkboxes: <input type="checkbox" name="checkboxArray[]" value="checkboxValue" />I would like to add functions that when the user check a checkbox, diplay the checkbox value below the web … | |
Hi, i've been searching google for a while, and haven't found anything in regards to my specific inquiry. I'm looking to manipulate what .JS files load per browser. For example, a different set of .JS files would load for chrome/firefox, and another set of .JS files would load for IE8. … | |
hi... i want to do simple addition and subtraction with ajax.. i want to do like when user click on any MRP it will show subtotal of all items but with moving numbers.. for eg. if subtotal is 100 thn user click on mrp rs. 100 thn disply of subtotal … | |
Ok I have the following XML file: [CODE]<?xml version='1.0'?> <root> <GAME_INFO> <TIME>xcxvxc</TIME> <CLOCKON>False</CLOCKON> <PHASE>1</PHASE> <GAMEID>43534534534535</GAMEID> <COMP>SUPER</COMP> </GAME_INFO> <TEAM type="H" name="Bulls"> <SCORE>34</SCORE> <ABBR>BUL</ABBR> <BGCOLOUR>#003366</BGCOLOUR> <TXCOLOUR>#CCCCCC</TXCOLOUR> </TEAM> <TEAM type="A" name="Chiefs"> <SCORE>10</SCORE> <ABBR>CHF</ABBR> <BGCOLOUR>#CCCCCC</BGCOLOUR> <TXCOLOUR>#CC9933</TXCOLOUR> </TEAM> <KICKERS team="H"> <KICKER_NAME>10. STEYN</KICKER_NAME> <KICKER_STAT>PEN-1/1 CON-3/3 DG-1/1</KICKER_STAT> </KICKERS> <SCORERS team="H"> <NAME0>9. du PREEZ</NAME0> <SCORE0>2</SCORE0> <NAME1>11. HABANA</NAME1> <SCORE1>1</SCORE1> … | |
Hi, I am trying to hide tables when a page initially loads and only display them when a button is pressed. When the page loads the tables show and I need then to be hidden. What am I doing wrong? I am new to this. Here is the code that … | |
How can I add loading image into this script? [CODE] var xmlhttp; function showUser(str) { xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Browser does not support HTTP Request"); return; } var url="cars.php"; url=url+"?q="+str; url=url+"&sid="+Math.random(); xmlhttp.onreadystatechange=stateChanged; xmlhttp.open("GET",url,true); xmlhttp.send(null); } function stateChanged() { if (xmlhttp.readyState==4) { xmlDoc=xmlhttp.responseXML; document.getElementById("name").innerHTML= xmlDoc.getElementsByTagName("name")[0].childNodes[0].nodeValue; document.getElementById("description").innerHTML= xmlDoc.getElementsByTagName("description")[0].childNodes[0].nodeValue; } } function … | |
When I view my webpage In Firefox if looks great but in Internet Explorer some images look a little blurry. If I zoom out to 90% it looks ok. My question is: Is there some JavaScript code that sets the user's browser to zoom at 90% if using internet explorer? … | |
When content is loaded into a div on my web site, the div, while waiting for the new content to load, resizes to 0px in height, which causes the scrollbar on the browser to shift upward, and then when the new content loads, the scrollbar is too far up for … | |
Hi! I am trying to make an element shake, and I have [I]tried[/I] to make a function in JavaScript, but it won't work. Here is the test page, used only for testing. It is the [I]Genious test[/I] div that I want to shake. Here is the code: [CODE] function Shake(Pow){ … | |
Ok, This is just annoying me now, i need to [QUOTE]Create a webpage with embedded JavaScript code that loads one of two files depending on whether the user presses the A key or the B key on the keyboard without refreshing the page. Is it necessary to use the XMLHttpRequest … | |
Next Problem, i need to make my page hide the background image in the banner <div> when somebody click anywhere in the footer <div>. Again, it needs to use javascript. i was doing some fiddling and took out the background image and replaced it with a colour instead and got … | |
It worked fine in FF, but keep getting an error in IE Object required, in JS file, Line 21, Char 8; . function ShowBox(id, num) { var i; var bigIMG = new Array(num); for(i=0; i<=bigIMG.length; i++){ bigIMG[i] = "c" + i; var thisBig = bigIMG[i]; if(bigIMG[i] == id){ obj = … | |
Hello I need to pass an array of client side events to the next page. Here my user would perform a few events which would be stored in a javascript array, upon completion a submit button would be used to post all that data to the next page. An example … | |
Hi all, I am having a problem with this js function. If I make it redirect then the rest of the script does nothing. However if I remove the line: [B]window.location.href = "index.php?page=news&cmd=comments&newsid=" + pageid + "&del=1"[/B] then all is fine except then there is no redirecting... so what do … | |
i need to make a paragraph of text identified by a <div> grow in size when the user moves their mouse if that portion of text. I Guess it needs to use onMouseOver and getElementById but i not sure what else is needed, i have trawled the internet for the … | |
i want to say this rule by javascript in asp.net page: for any controls in page if control[i].text=" " then set control[i].text="" (for page textbox controls only) how can i implement this in javascript language in asp.net form? | |
hi every one i made a menu using javascript and css.....using mozila firefox browser. menu working properly . but the way of opening submenu is not professional...... plz help me out i used this function into my javascript file code ... var transition=102; but not working. is it right function … | |
Can someone explain how the following js syntax works? Is this a function? Why is the syntax like this? How does it work (accessed)? [CODE] SomeName(function() { otherFunction(); var form = document.forms.passengerInformation; toggleCreateProfileFields(); SomeName("#createUserProfileCheckbox").click(function() { toggleCreateProfileFields(); }); }); [/CODE] |
The End.