Visit Experts Exchange from your mobile device to search, ask, and monitor your questions. Never lose touch again.

Preview From Your Desktop
 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested JavaScript Solutions: 1 - 25 of 9956
 
<a href="javascript:expand()">  and <a href="#" onclick="javascript:expand()"> what's the difference? i know the href="#" is the more standard way nowdays to do it. my problem is i have a s...
I'm trying to use OnFocus and Onblur to focus on a textbox when I click in the field.  When I click in the textbox the value for the textbox disappears so I can type what I want to enter. The ...
string = "{6} 123 Main St {7} Vancouver CA {3}" I have to find the {6}  {7}  {3} in the string and replace it with ' # '   ' , '   and  ' '  (Hash,Comma,Space)  {6}  =  #  {7}  = ,  {3} ...
I saw a few questions that didn't really make any sense to me so I'm hoping that there's a really simple solution to my problem here. I have this code. onKeyPress="if (event.keyCode==45)...
AFAIK, to retrieve the selected value for <SELECT> in a single line javascript, I have the following code: this.form.areaID.options[this.form.areaID.selectedIndex].value If I were wanted t...
I'm trying to compare 2 dates on a form. What is the simplest way to do this?  Here's what I have so far: <html> <script> function Compare() { if (document.frmTest.startDate.va...
Currently I am taking a value from a text box, validating that it is a known value(only certain values can be entered), then if it is not within the select box I add the value to the select bo...
Hi, I would like to know if it is possible to use JavaScript to write to a text file. I tried using FileSystemObject in JavaScript. However, it gives the following error : "Automation serve...
Does any body know of a way using JavaScript to remove or hide a browser's address bar or toolbar on the fly? You can obviously use a script to pop open a new window and set the properties of ...
how can I disable the browser's "Back" button in a HTML page? I do not want to create JavaScript window to avoid showing any toolbar,etc. In regular HTML page, is there any way to disable t...
I'm trying to get the SelectedValue from a DropDownList (WebControl) so I can enable / disable other controls based on the values the user has selected.  My form is called Form1 and my dropdow...
As you might guess from the question title, I would appreciate someone showing me how to get a browser window to - load to a specified size - at a specified position - have no toolbars ...
Hi All, I have different input forms wrapped in divs, i.e. <div >        <div>                <input ..... The outer div may be either hidden or visible. The question: how to find i...
hello all!  I think this should be a pretty easy one. I have the following code.  When the user clicks on the div containing the word "Menu", the lower div (id = dropper) displays as a bloc...
Hey guys, There are different varience of this question posted previously but none of the solutions have helped me(most of them were to get a radio button or check box to work) I'm havin...
I'd like the cursor style to switch to 'hand' onmouseover of particular images on a page, i.e., wherever the images minus.gif or plus.gif appear on the page, I'd like onMouseOver="style.cu...
Hi, I want to wait few seconds between 2 operations in javascript. Is there a way to do it (something like sleep in Java or wait in c)? I'm using the setTimeout(), but the problem is t...
Hi I have to open a save as file dialog box using javascript on a click of button. I am able to do that with the below code. <a href="#" onclick="javascript: document.execCommand('SaveA...
Hello, I'm using a template in Joomla which has allot of JS through it, I am receiving the below error and not sure where to begin looking for the problem, any thoughts? Webpage Script E...
I have a hidden field which contains a value.  I have a SELECT/OPTION list that has no selected options.  After the select is written to the browser, I want to make to option, corresponding to...
Hello, I have a small problem with the way document.innerHTML.replace is interpreted.. Put this in the browser window and press enter.. javascript:document.body.innerHTML=document.body.i...
Hello Experts, I am trying to implement list manager using jquery, so far i have managed to create a short list by allowing users to add or remove items with the animation. I am attaching bot...
Is it possible to use an anchor to open a new window using target="_blank" and at the same time to use inline javascript to redirect the page in the first window to the previous page? Somethin...
Hi Experts. Can any of you tell me how do I manage the window.onClose event in Internet Explorer, What I really need is to control when the user closes the window, but without using events ...
I have a form with 200 plus checkboxes.  When the checkbox is checked onClick passes (this) to a Javascript function.  I need to get the element array ID of the just checked checkbox into a nu...