474,003 Members | 1,887 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Forum

JavaScript web scripting language - Ask questions about JavaScript development, jQuery, Vue, React, the DOM, cross-browser scripting, event handling, OOP, cookies, client-side form validation, built-in objects like Date, String, Array and Object, performance and more.
1
1,871
thread by: daniel | last post Aug 24 '07 by: Randy Webb
Hello, I have limited understanding of js (css/html is more me) and when I run into complicated problems I am left undone. The person I normally call upon is on holiday so I was wondering if I could present it here for an answer. The page in question is http://www.sunraycomfort.com.au/p-inslab.html (and will be applied to all other product...
8
2,330
thread by: metaphysics | last post Aug 23 '07 by: metaphysics
I'm not sure if this is possible, but I thought I saw it somewhere and I'd like to know how to do it. This is rather difficult to explain, so bare with me. Lets say you have 3 background colors, going from lightest to darkest (so color 1 would be the lightest and color 3 would be the darkest). I'll try to illustrate what I mean. Let's...
1
1,051
thread by: timw07 | last post Aug 23 '07 by: Dr J R Stockton
Not sure why I am not getting the approriate number here. I'm looking to use square foot + 10% if number of stories = 1? Any and all help for a newb is appreciated! <script type="text/javascript"> function Calculate() { var realSquareFoot = SqFt.value; var realStories = numStories.value; var realPitch = pitch.value;
1
1,152
thread by: laptopia | last post Aug 23 '07 by: Thomas 'PointedEars' Lahn
Here is the scenario: The data that needs to parsed is on an asp page secured by a login form. I have access to the site, but I was wondering how one would go about writing a script that would automatically access the page and grab the HTML. Garbing the HTML then parsing the information I understand. I just don't know if its possible to...
2
1,053
thread by: sitara | last post Aug 23 '07 by: pbmods
hi can any one help me i need a javascript for random image backgrounds in run time using js in flash i`ve already tried but failed to load the path. right now i dint get my code thanks in advance if anyone helps me
8
2,973
thread by: nagylzs | last post Aug 23 '07 by: nagylzs
Hi All, Can you show me an example of a working dictionary object that is portable? I would like to have something like: d = new PortableDict() d.setValue('a',12) d.setValue('b',-3)
3
1,405
thread by: sanojcp | last post Aug 23 '07 by: pbmods
Helloo all, i had a problem with internet explorer, i want to store some user entered values to xml document. my problem is that when the user left one field empty first time, and tried to change the value next time i am using the following code to chenge it nameElement.firstChild.nodeValue=nameObj.value; it work well when the...
1
989
danp129
thread by: danp129 | last post Aug 23 '07 by: danp129
For some reason on line 5 newtext is getting changed to "newt ext" when I preview this post, it is not that way in actual code! I can't figure out why it's not replacing carraige returns with "<BR>". alert(newtext) doesn't show any replacement taking place. <script> function preview(newtext) { newtext.replace(/\r|\n|\r\n/g,"<br>");...
4
1,490
thread by: tusharkanta | last post Aug 23 '07 by: epots9
I need a dynamic login/signup form that will appear on click of login or signup. The background page should be faded while the login form appears on foreground. Please refer the example site as: http://tupalo.com Please click on right hand side login/signup option to understand what i meant. Please guide me how to do this at the earliest. ...
2
1,213
thread by: tequilamala | last post Aug 23 '07 by: tequilamala
I was having problems with google, when someone would search for one of my pages the iframe pages would pop up. So I attempted to fix this problem by adding the javascript below to all of my iframes. I had to do a bunch of stuff like putting my default page in the Pages folder because i couldn't get to the root directory with the script below. ...
4
4,707
thread by: 1ontherun | last post Aug 23 '07 by: 1ontherun
Hey all, I am having problems creating/using a .js file. At first, I wanted to overwrite a previous javascript used in the page that's running, but it kept creating the .js on my desktop or getting lost completely... if not erroring. So I decided to put the .js on the root directory itself, without any luck at all. When I run the .htm, it...
10
16,523
thread by: mike4722 | last post Aug 23 '07 by: mike4722
I wish to have the form to be able to automatically select the radio button based on the logic of HTML/php variable. example show below: javascript: function autoForm(value) { var myForm = document.forms; if (value == '1') myForm.elements.checked = true;
3
1,772
thread by: makthar | last post Aug 23 '07 by: makthar
Hi My second question is the eval function of javascript works fine in IE7 but not in Mozilla. The function in my code is as follows: var str = "alert('how r u')"; eval(str); How do i make it work in Mozilla. Thanks Mansoor
1
1,230
thread by: Dukster131 | last post Aug 23 '07 by: pbmods
I am writing a javascript function that will go to a different page when a specific menu item is chosen. the function now works with the following: window.open("IDI.asp?rec_id=<%=request("rec_id")%>&cat_num="+strCatNum+"&catid=<%=request("catid")%>", "MyWindow"); However, I do not want to open a new window, I just want to go to that window....
3
3,974
thread by: broli85 | last post Aug 23 '07 by: mltsy
HI ALL I would like to know if anyone knows how to traverse the document.body (or any other method) to get the contents of the current page. It must be general enough so that I can traverse any html page using the same algorithm, because this will be included in a Firefox extension. THANKS A LOT!
4
2,060
thread by: rebeccatre | last post Aug 23 '07 by: Randy Webb
please help me with this, <style> #a, option.message {background-color: green; color: white;} #b, option.message {background-color: yellow; color: black;} </style> <select id="thisselect"> <option id="thisone" class="message">THANK YOU</option> </select>
2
1,712
thread by: elephant | last post Aug 23 '07 by: elephant
I'm not sure if I'm getting a bug, or if this is the intended way for getComputedStyles to work, but if anyone can spot something I'm doing wrong, or a work around, I'd appreciate it. As an example, say I have this -> <span style='text-decoration: underline'> <span style='text-decoration: bold' id='thisId'> <span style='text-decoration:...
4
3,973
thread by: Mateo | last post Aug 23 '07 by: Mateo
Hi! Let's say that I have generated var SomeVariable = true; from server. On client side I have: if (SomeVariable == true) { do something } How could I first check if my variable is undefined? Or how can I say if some exception occures please don't report error, just continiue?
4
2,142
thread by: plumba | last post Aug 23 '07 by: plumba
Let me explain.... I have a form (most of which you guys have helped me with!!). The initial problem I was having is that it was holding the data in the fields after submit, I resolved this by putting the whole form in a set of <div> tags and the form now collapses after they click submit. Perfect!! But, have set some mandatory fields...
22
2,945
thread by: divina11 | last post Aug 23 '07 by: pbmods
I'm building a program where you have an input box and an button, when user presses the button, the button value is displayed on the input box. I've tried the following: function calculation() { value1=parseInt(document.getElementById("x").value); //input box nine=parseInt(document.getElementById("nine").value); // button ...
4
2,720
thread by: beatTheDevil | last post Aug 23 '07 by: hirakchatterjee
I searched, I swear. All my keywords were ignored by the search engine. Or I may just suck at searching with the right keywords, but I've been unable to find information about this. Perhaps somebody can elaborate. I would to like to create a function, included in the header of an HTML page, which calls functions which are defined later, in...
18
5,085
thread by: Tea Maker | last post Aug 23 '07 by: collie
Hi, how can I create a javascript popup that prompts users to press yes or no. I want something similar to Confirm(), but I want the message to say "yes/no" instead of "ok/cancel". Also I know this is possible through vbscript, but I don't want to use vbscript since it is IE only. Does anyone know a solution to this problem (I don't want to...
2
2,495
thread by: ASAP | last post Aug 23 '07 by: dmjpro
there is a checkbox in every row of a table. i need to check the checkbox on click of the corresponding row and vice -versa. means on again clicking of the same row it should get delected.
1
1,188
thread by: Diogenes | last post Aug 23 '07 by: Diogenes
Hi all, I had a look at sIFR.js code after parsing it and I have a question about function syntax. For example var f=function(){ // statements here }();
1
1,822
thread by: liesther2003 | last post Aug 23 '07 by: acoder
Hi i want to show mutli layer by each click, and when i click next layer the first layer should be still display, until maybe 3rd or 4th or 5th layer all are displayed, and at the end when i click somewhere (maybe image) then close all layer. my code are here <script type="text/javascript"> var currlayerId = null; function toglayer(id) ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.