17,115 Topics
![]() | |
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 … | |
Most of us have seen FaceBook and Twitter have a login form on their homepage; facebook also have the registration form. As far as I know the way to secure any kind of sensitive data is through the use of a SSL. Apparently FB and TW dont have any on … | |
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 | |
Good day, I'm using jquery to give me three tabs of information. For one of the tabs, the block of text is still very long. To make it more manageable, I've coded: [CODE="css"] .job { height: 250px; overflow:auto; } [/CODE] Displayed in Chrome, Firefox and Opera, everything works as it … | |
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 … | |
This is a continuation of the [url="http://www.daniweb.com/tutorials/tutorial19303.html"]Updated: ASP.NET Login Page Tutorial[/url]. This tutorial will demonstrate how to create a registration page for new users to your site. This registration page will utilize the same principles used in the Login Page Tutorial, so this should be no more difficult to do … | |
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 … | |
Dear All, I am trying to resize a page using jQuery but its not working for whole page it just resizes itself rather then whole content of website, anyone can please help me. Here is the code that I am using [CODE] <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!DOCTYPE … | |
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] | |
Hi, I need to change the image to another image using mouse click... this is the code i'm getting forest.jpg image when i clicked over the image in status bar it says "error on page"..what i want is i need to display "dock.jpg,creek.jpg". pls anyone help me to correct this … | |
i'm trying to simplify the url, how do i do this within the code below.. if width & height = 1024 & 768 and declare that as variable "1". if width & height = 1360 & 768 and declare that as variable "2". then the url would be test.php?s=1 for … | |
I have two dropdown lists in my HTML form. In first dropdown list, I have some countries name already added in HTML form. In second drop down list there is no item yet except "Select choice". Now my problem is that I want that when i click on any country … | |
Hi everyone. Is there a guru who can tell me how to do this; What I need, When on page x, one can click a link where page z opens as a popup. Page z has to collect data, and when finished, page z has to send the daa back … | |
hi frnds, i m new to ajax...i m using the below javascript code. here the functionality is working good. but the page(specific div) takes some time for loading. so, i need to put some loading bar(just 4 indication)... plz check the below code and add the onload funtion.. [CODE] jQuery(document).ready(function() … | |
hi frnds, iam a java developer, i need to add elements in list box dinamically, for example in my listbox data retrieve from database at runtime i.e., girls when user enter details he need option boys in the list...then he can able to enter boys in list box just like … | |
Hi, Pardon me for the title, I din kno any other way to generalise my problem. Anyway, am making a fantasy football site and require that the users can select their teams. Thing is I have no clue on how to do it. I would like to have a div … | |
Hi, i need a code to change the image(for example i need to display 5 images) when the user click over the image. thanks | |
Hello all, I'm attempting to convert my current HTML table layout to a div layout. However, I'm running into snags here and there and I'm stuck on one that I need assistance with. [CODE]<div style="width:100%; display:none;" id="block_1_1"> <div style="width:50%; float:left; margin:0px; padding:25px; text-align:center;"> <div style="text-align:center; float:left; margin:0px;"> <img style="margin:4px;" src="picture.jpg" … | |
Hi, I have got a long list of items that are generated by PHP. There are 2000 more results and are constantly changing. What i am trying to do is all domains starting with A, B, C etc so it would hiden until you select A for example(sorta like a … | |
Hi, I am working on the jquery slideshow script, which i had borrowed from some famous jquery plugin and customized so nicely so as to look just as par my requirement .Its working perfectly fine in the Internet Explorer but failing to even call the event on click in firefox … | |
How to pass variables from JavaScript to Flash, and opposite (AS2)? Please Answer, thank you! :) ![]() | |
Hi, I have query in Javascript and Ajax. Is it possible to write AJAX code inside Java Script. When i click the " confirm("test"); " Yes button. i have to insert the data through ajax. I have written the code for sample, i am attaching. Please can anybody give the … | |
Hello! I made a little app/page to help me count the money when Im done my shift at work. It runs fine in IExplorer, but it wont run in Firefox..can someone help? [CODE="html"] <html> <head> <title>Money Calculator 1.0</title> </head> <body> <script type="text/javascript"> function clr() { document.getElementById("hundred").value=0; document.getElementById("fifty").value=0; document.getElementById("twenty").value=0; document.getElementById("ten").value=0; document.getElementById("five").value=0; … | |
Hi I have a web page where i need to use some javascript. If i write all the javascripts and jQuery javascripts in the aspx page it works perfect. But when i write all the javascripts in separate file called scripts.js and include scripts.js in the aspx page it doesn't … | |
Hello all! I am making a site for a club on campus and we need to show the presidents quotes on the site. He has some lengthy ones so I want to save space (can't tell him to KISS) so I'm using a little code I learned to do so. … | |
please, check and give new source code[code]function getsubmit() { var lastname; var Firstn=t1.value; var cn=new ActiveXobject("ADODB.Connection"); var StrConn="provider Microsoft.Jet.OLEDB.4.0"; Data Source=d;//student_base.mdb; var SQL="select t1 from manisha where FirstName="'"Firstn+"'"); On.open(SQL,cn); surname.value=rs(0); DOB.value=rs(1); alter(rs(0)); rs.close(); cn.close(); } </script> </head>[/code] |
The End.