I have not found a bad O'reilly book and their JavaScript book in particular is pretty comprehensive. Even better, after you start to know what you're doing (or, as in my case, just think you do), it makes a great reference.
This may not be the right forum for this question and for that I apologize.
Is there a way, using a desktop shortcut, to specify how IE (and only IE) will open? Such as no toolbar, no status bar, etc.
I'm familiar with the window.open() command but even using it in a URL won't work in this...
Try:
var string = array.join(separator);
or
var string = array.join();
separator is a variable containing whatever delimiter you want to use, or an empty string is used if it is left out.
If I create my own *.properties file, where would I have to place it to be accessible from the individual servlets? I'm running on Websphere 4.0.
Would putting it in the root with the various html files work? What would I need to put for the path? I want to do something like this:
InputStream...
You have a space in your variable theURL
var theURL='quality message.htm';
try taking it out:
var theURL='qualitymessage.htm';
also, why are you calling 'window.open()' twice?
<script language="Javascript">
*****newWindow=window.open();*****
var theURL='quality message.htm';
var...
This isn't earth-shattering by any means. More of a curiosity. I have to pages with the following code:
<DIV STYLE="font: italic bold 16pt Lucida Bright">
<IMG SRC="/icons/Wheel.gif" STYLE="width: 51px; height: 45px;">
Additional Interests - Mortgagee
</DIV>
<TABLE...
Another option:
function validate()
{
if (frm.ShipState.selectedIndex < 1)
{
alert("Error: Please select your state");
return false;
}
else
{
document.frm.submit(form);
return true;
}
}
and change the button to:
<INPUT...
To the best of my knowledge, IE supports both readonly and disabled. Netscape, however, only supports disabled. If I'm wrong, Please let me know.
Also, disabled fields are not passed back to the server while readonly fields are.
I came up with that function when I first started working with Javascript and didn't know anything (as if I know anything now). It's worked for me so I never bothered to look for anything else.
The one you found looks like it would work fine.
Try this:
function checkNumber(NumberField){
var pattern =/\D/;
var text = NumberField.value;
var result = text.match(pattern);
if(NumberField.value==""){
NumberField.value = 0;
return true;
}
else{
if((result != null)){
alert("You must enter a number in this...
Thanks to both of you, you've given me alot to play with.
Now, on to another question that I discovered while trying this stuff:
Can you no longer escape double-quotes (i.e. var name = 'NAME=\"test\"';) in Javascript?
I tried to do that with this code and kept getting unterminated...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.