javascript "in" operator syntax question
Wed, 10 Mar 2010 14:04:01 -0800
It was really annoying me to write lots of "or" conditionals for the same
variable such as:
if( x=="a" || x=="b" || x=="c" || x=="d" || x=="e")
I figured there must be a version of the in() that I find in SQL. I found
this:
http://snippets.dzone.com/posts/show/6557
It works like a charm, but I don't under ...
|
Controlling iFrame Height
Sun, 21 Feb 2010 11:13:04 -0700
I'm trying to create a web page that shows a header bar across the top of an
external page.
The approach I settled on was to create an HTML page with the header bar and
then use an iFrame for the external page. This works fine except for trying
to maintain the correct height of the iFrame.
My code so far ...
|
postMessage
Fri, 19 Feb 2010 12:50:19 -0500
I am trying to implement using IE8
http://hublog.hubmed.org/archives/001623.html
On the frame content page I have this code
window.onload = function()
{
if ( document.addEventListener )
{
document.addEventListener("click", sendSize, false);
} else if (document.attachEvent )
{
...
|
Cannot copy encrypted folder
Fri, 12 Feb 2010 13:51:57 -0800
The following script copies folders from an XP Pro system to a netbook
running Win7 Starter Edition. As soon as it encounters and encrypted
folder it fails with an error message about being unable to create and
encrypted file (sorry I do not have the exact text at the moment. What
must I do to allow CopyFolder t ...
|
Don?t you think that it is about time you quit smoking?
Tue, 9 Feb 2010 03:58:22 -0800 (PST)
The purpose is to assist you in quitting forever, without the urge to
start up again. In just one week after starting to quit smoking, you
can be free from tobacco forever. ...
|
Step by step debugging of jscript
Fri, 5 Feb 2010 13:54:01 -0800
Hi.
I am using Microsoft ScriptControl class to execute a javascript. I
don't want to run the entire script in a single shot. I would like to execute
it in debug mode i.e step over/into each line. How can I do that ?
Thanks and Regards,
Rajesh ...
|
trying to validate a phone number
Fri, 5 Feb 2010 13:51:51 -0800 (PST)
Hi all,
I am new to jScript, and I am having trouble with this one. I am
trying to validate a phone number of the form:
+123 (1234)-123-1234-123
I want to verify the following:
The first character must be a +
the next 1 to n (n is any number) consecutive characters must be
digits
There must be a spac ...
|
|
|
Can I extract HREF form History object
Tue, 12 Jan 2010 10:43:49 +1100
I call one page in my site from another and when I use
window.history..go(-1) or window.history.back(), I can return to the calling
page
However, I would like to have the actual HREF of the calling page available
to the called page. I have tried searching the history object
e.g
for (var i=1; i< window.his ...
|
External function file linked to HTA and frames.
Fri, 8 Jan 2010 17:04:50 -0800 (PST)
Hi All
I have an HTA containing framesets and frames consisting of 1 top, 1
left and 1 right frame. I have a <link> statement to load an external
js file in the HTA and each frame web page. In this external file I
have defined some variables that I want to be global to all frames/web
pages.
After the HTA ...
|
Good Editors
Wed, 6 Jan 2010 08:20:14 -0800 (PST)
Hi there
can u suggest some good jscript editors please?
I'm a newbie to programming
regards ...
|