Home > JavaScript Development
JavaScript Development
JavaScript Development forum discussing JavaScript and DHTML, AJAX, and issues such as coding cross-browser JavaScript.
Denied universalxpconnect privilege
Hello,
os:Windows XP
browser:firefox 2.0.0.6
I have this line in a javascript file
Quote:
netscape.security.PrivilegeManager.enablePrivilege("universalXPConnect");
which is throwing up the exception
Quote: ...
answer(7) view(1,200) status(

)
can we reset a textbox using javascript
hi
can we able to reset a particular form element using javascript
and not with a reset button
Code:
document.getElementById("descr_id").reset;
or
document.getElementById("descr_id").reset();
...
answer(3) view(1,030) status(

)
Cool Javascript Code
Does anyone know where I can find resources with cool Javascript code that manipulates text, like on blogger.com? If you goto blogger.com, and next to Recently Updated Profiles, I want something a little like that for my webpage. If there a...
answer(4) view(77) status(

)
answer(0) view(17) status(

)
answer(0) view(29) status(

)
how to set window.open() resizable parameter for firefox
setting resiable parameter for window.open() not working in firefox until you have change about:config setting "dom.disable_window_open_feature.resizable = false".
but its not an optimum solution. kindly suggest the optimum one.
answer(0) view(21) status(

)
Javascript file extension problem in IIS 6???
Hi all, I am moving my application and database from IIS5 to IIS6.
After that moving, my js file not called by html page,
<script language="JavaScript" src='includes/abc.inc'></script>
Then i noticed if i chan...
answer(4) view(508) status(

)
Complex Form Validation with JavaScript
I have a complex validation. I have part of it working with the help of this great site, but I added some more items to the page which I need some help. Here are the options a user can choose.
Case 1: Home Team vs. Away Team (Radio Butto...
answer(3) view(701) status(

)
Clip image instead of stretching it (<IMG> tag).
When i set WIDTH and/or HEIGHT attributes of <IMG> tag, the image is stretched to fit into the specified WIDTH and/or HEIGHT.
What i' d need is that the image was clipped, not stretched. Possibly clipped at the borders sides, to ke...
answer(1) view(941) status(

)
How to get rid of the exponential sign in javascript code?
Hi all,
I have a couple of javascript functions for doing minor calculations in the code. one of the calculations are resulting in an exponential number. These number are being misread by further code and thus I am facing issues in calculation. ...
answer(0) view(62) status(

)
How do I search a drop-down list?
First of all, I do not speak computer language, so your answer will have to be in plain English, please (e.g. click on 'this' and type x,y,z and hit 'enter', etc., etc.). So here's my question:
Imagine a drop-down list with several hundred item...
answer(1) view(35) status(

)
answer(1) view(37) status(

)
disabled field not turning gray
I am using Javascript to disable a text box when I click on a different one. I would like for the disabled text box to turn gray so that the user knows they can't type in that field. I had assumed that when you disabled a field, it automa...
answer(2) view(530) status(

)
Stopping An Ajax Periodical Updater In Prototype?
Hi all,
I have an Ajax Periodical Updater that makes calls to my server, but I want it to stop calling after 3 Ajax Requests.
Here is my code:
Code:
function SendResultsRequest(item1, item2) {
var Update = Ajax...
answer(1) view(323) status(

)
hide print button window.print
I've researched this forum (as well as others) and found a few examples of hiding the print button during window.print. I'd really appreciate if you could point out the error(s) in my code or make a better suggestion. Thanks in advance.
...
answer(4) view(587) status(

)
answer(7) view(581) status(

)
Multi-Select Transfer Box + Javascript + PHP + MySQL
Hello! I'm having a bit of trouble with an application I'm trying to write and could use some assistance. I have two major questions but I will provide some background that may help.
I have a database containing a table called Courses. W...
answer(1) view(369) status(

)
answer(0) view(35) status(

)
Extend forms
I have made up a form in HTML. This form has to be submitted by CGI to some application by POST method.
Now I want to create 'n' number of similar fields ( Extend form ) by javascript.
How can I do it??
I'm not good in javascript at all. I...
answer(0) view(32) status(

)
PrintStackTrace in JavaScript?
hi. is there a way to printstacktrace in javascript?
i have tried:
catch(e) {
alert(e.printstacktrace())
--and--
alert(e.javaException.printstacktrace())
}
but nothing happens when i run the code.
i can't seem to find wha...
answer(3) view(466) status(

)
answer(0) view(36) status(

)
Stupid confirm() problem...
Hi,
I don't know why this is happening, I just can't understand why it's not working.
Here's two examples:
Working Example
Not Working Example
Go to the working example and click any of the delete buttons. You'll get a javascr...
answer(4) view(279) status(

)
Need help - cfselect for javascript
Hi,
I have a select list (drop-down box). when I select one from the list, corresponding values should display in the grid. I don't have problem when I select and click GO button, values display in the grid.
My question is, How shoul...
answer(3) view(346) status(

)
JavaScript problem. Trying to determine a variables range
This is driving me nuts. I think it's probably a logic problem and I've burned myself out looking at it.
I'm trying to determine a users screen resolution so I can adjust the size of the popup window to fit.
The problem lies in the if...
answer(2) view(253) status(

)
answer(0) view(32) status(

)
answer(0) view(31) status(

)
URL parameters in Javascript
I am passing two parameters( sort and filter variables) in html document.
I need to use the values of these variables in my javascript function which will eventually sort and filter a data table based on these values.
How do I access the v...
answer(1) view(378) status(

)
FRAMES/FORMS/JavaScript
I know how to create a banner/contents/main frame. The screen reflects three frames. This is my scenario. I want to create a form within the contents frame. The form has a list box. Once the individual clicks on an item in the list box...
answer(2) view(508) status(

)
Javascript probs in IE4, but not Nav4
Bear in mind i am new at javascript, but...i generated a mouseover script from http://builder.cnet.com/Programming/Kahn/092398/?st.bl.pr.ss1.sscol.1355...and it works fine in Navigator, but when i try it (offline) with IE4.01, the mouseover...
answer(3) view(641) status(

)
JavaScript Vs. CGI Script
I am new to the whole Internet development field (have been a programmer for 12 years now though) and I was wondering if someone can tell me the differences (if any) and recommend what to use.
Can JavaScripts be executed on my pc or do I h...
answer(2) view(950) status(

)