This code works for me in IE6/Moz/Opera. The addition of the forms
array call made it work for me. I couldn't get just
document.rentalForm.Holidays.value to work either.
function init() {
packageAtribs = new Object();
packageAtribs.holidaySelection = document.forms['re
>>Don't ask me what the difference is...i don't know :)
I won't ask, because it makes NO difference ;-) Both are equivalent.
The problem might be with the place the _javascript_ is defined.
Try to put it inside the BODY tag.
If the line of code packageAtribs.holidaySelection = document.rentalFor
try
packageAtribs.holidaySelection = document.forms['rentalForm'].Holidays.value;
Don't ask me what the difference is...i don't know :)
--
mailto:[EMAIL PROTECTED]
Sunday, October 5, 2003, 6:21:44 PM, you wrote:
HO> I'm having a little trouble with this script ... here's the bit of code in quest
I'm having a little trouble with this script ... here's the bit of code in question ...
packageAtribs = new Object();
packageAtribs.holidaySelection = document.rentalForm.Holidays.value;
if I do --
alert(document.rentalForm.Holidays.value);
I get the expected value.
But
alert(packageAtribs.
Works for me...
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
Works perfectly in Moz 1.5 and Opera 7.2 too.
--
mailto:[EMAIL PROTECTED]
Friday, October 3, 2003, 2:40:17 PM, you wrote:
IS> Anybody have any idea why this piece of _javascript_ would cause IE to crash,
IS> s
Anybody have any idea why this piece of _javascript_ would cause IE to crash,
shut down, and want to send a report to the Mother Ship?
function closeMore()
{
div = document.getElementById("MoreDiv");
div.innerHTML = base;
div.style.display = 'none';
}
...
= '#6A5ACD';"
= '#87CEEB';"
You should be able to just change screenX and screenY to place the upper
left hand corner of the popup anywhere you want.
--Ben Doom
Eric Creese wrote:
> Here is the code I use to call a popupwindow. I want to beable to place the smaller
> popup window where I want, pereferabley in the lower
Here is the code I use to call a popupwindow. I want to beable to place the smaller
popup window where I want, pereferabley in the lower right corner. How do I do this?
myWin= open(url, "displayWindow",
"width=415,height=400,status=no,scrollbars=yes,toolbar=no,menubar=no,location=yes,scr
At 11:01 AM 09/15/03 -0400, Ben Doom wrote:
>Also, remember that nothing with JS is guaranteed, since people can (and do)
>turn it off.
True. But I figure if someone actively tries to circumvent my precautions,
it's their problem to make sure they enter data correctly.
T
Tired of your bookmark
At 03:54 PM 09/15/03 +0100, Craig Dudley wrote:
>If your'e disabling a button from itself then, 'this.disabled=1' works
>in just about everything.
Excellent. I was hoping for something simple like this. I put it in the
onclick event, and it seems to work perfectly.
T
Tired of your bookmarks/f
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: Thane Sherrington [mailto:[EMAIL PROTECTED]
: Sent: Monday, September 15, 2003 10:28 AM
: To: CF-Talk
: Subject: -OT- Javascript - cross browser button disable
:
:
: I'm looking for a cross browser
e modern
browsers.
You should maybe use true instead of 1, but both should be fine.
-Original Message-
From: Thane Sherrington [mailto:[EMAIL PROTECTED]
Sent: 15 September 2003 15:28
To: CF-Talk
Subject: -OT- Javascript - cross browser button disable
I'm looking for a cross browser
I'm looking for a cross browser button disable code. Everything I find
seems to be limited to IE and NN, and since I just added some Mac users to
my application, I need something for everyone. Any help would be appreciated.
T
Tired of your bookmarks/favourites being limited to one computer?
Okay, I know I know, this is off topic, but I've been banging my head about
this one, and I'm SURE it's probably stupid simple, but I'm just not good
with dates (insert nerd joke here).
Here's a simple form. Three select dropdowns. There's other validation going
on, and other stuff happening, but
EMAIL PROTECTED]>
Sent: Tuesday, August 26, 2003 9:35 AM
Subject: Re: OT: JavaScript question??
> Mario,
>
> try doing this.
> document.selectedIndex == null
>
> I believe that will tell check if the user has selected anything in the
> drop-down box.
>
> Hope th
Mario,
try doing this.
document.selectedIndex == null
I believe that will tell check if the user has selected anything in the
drop-down box.
Hope this helps.
>From: "Ciliotta, Mario" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EM
Mario,
try doing this.
document.selectedIndex == null
I believe that will tell check if the user has selected anything in the
drop-down box.
Hope this helps.
>From: "Ciliotta, Mario" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EM
Mario,
try doing this.
document.selectedIndex == null
I believe that will tell check if the user has selected anything in the
drop-down box.
Hope this helps.
>From: "Ciliotta, Mario" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EM
Hi all,
Sorry for the OT on JavaScript but I cannot figure out how to tell if someone has
selected in option in the box. I know how to do it if the I add another option at the
beginning: Please select one... and then use :
documentoptions[0].selected to see if the first one is sele
--
Ian Skinner
Web Programmer
BloodSource
Sacramento, CA
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 11:21 AM
To: CF-Talk
Subject: RE: OT JavaScript Object Copy
> Apparently this is much more difficult then it probably
>
ailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:04 PM
To: CF-Talk
Subject: OT JavaScript Object Copy
Apparently this is much more difficult then it probably should be. But
I can figure out how to make a true copy of DOM object with JavaScript,
instead of just a copy of the pointer to the o
> Apparently this is much more difficult then it probably
> should be. But I can figure out how to make a true copy
> of DOM object with JavaScript, instead of just a copy
> of the pointer to the object.
>
> For Example:
>
> protoRow = (document.getElementById("One"));
>
> I would like protoR
Apparently this is much more difficult then it probably should be. But I
can figure out how to make a true copy of DOM object with JavaScript,
instead of just a copy of the pointer to the object.
For Example:
protoRow = (document.getElementById("One"));
I would like protoRow to be a true deep c
Yeah, it's the only one I could think of without opening Topstyle. I guess
I'm colonised by Microsoft.
- Original Message -
From: "Craig Dudley" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 1:04 AM
Subject:
Hand is not valid css2, use pointer, ie
IMG {
cursor : pointer;
}
I'm pretty sure 'hand' only works on ie. It deffinatley doesn't work on
Mozilla/NS6+
-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]
Sent: 22 July 2003 22:20
To: CF-Talk
Subjec
o!
Get your free, safe spam protection at http://www.cloudmark.com/spamnetsig/}
-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 2:20 PM
To: CF-Talk
Subject: Re: OT JavaScript question
Well, the default behaviour is that you define a
://www.electricsheep.co.nz/
- Original Message -
From: "Ian Skinner" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, July 23, 2003 3:17 AM
Subject: OT JavaScript question
> Is there a way in JavaScript to change the state of the mous
410.860.2337
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 11:17 AM
To: CF-Talk
Subject: OT JavaScript question
Is there a way in JavaScript to change the state of the mouse pointer
onMouseOver for example?
--
Ian Skinner
Web Programmer
Is there a way in JavaScript to change the state of the mouse pointer
onMouseOver for example?
--
Ian Skinner
Web Programmer
BloodSource
Sacramento, CA
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?foru
The problem lies in this section:
if (document.layers) {
document.layers["myDiv"].document.open();
document.layers["myDiv"].document.write(rs);
document.layers["myDiv"].document.close();
} else {
On Thursday 10 Jul 2003 16:50 pm, Jillian Carroll wrote:
> workin Mozilla / NS 7... nothing appears on the screen. How can I modify
> this script/div so that it will display in all browsers?
Use the JavaScript debugger / console to asertain the problem. The fix should
be obvious then.
--
Thoma
I've got an unusual problem.
I have a Javascript that rotates through a series of books (images/text
w/links). It's very simple. It works in IE and NS 4.x... But it doesn't
workin Mozilla / NS 7... nothing appears on the screen. How can I modify
this script/div so that it will display in all
-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, June 28, 2003 8:50 PM
Subject: [OT] JavaScript Function?
> Is there some kind of function that enables me to load an include or
> other file that contains specific JavaScript?
> Not wanting to replace the current page, I just want to d
Is there some kind of function that enables me to load an include or
other file that contains specific JavaScript?
Not wanting to replace the current page, I just want to do the
following;
Page loads, script checks to see if any forms are present in the page
(not a problem) then I want to get the
rtwin.document.write('</html>\n');
alertwin.document.close();
}
open
Mix and match to taste.
Gl,
Alexander Sicular
Chief Technology Architect
Neurological Institute of New York
Columbia University
as867 {at} columbia [dot] edu
-Original Message-
From: Michael Dinowitz [mail
e near your line
> length limit to insert the newline.
>
> -Original Message-
> From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 13, 2003 7:12 PM
> To: CF-Talk
> Subject: OT Javascript popups and CF
>
>
> OK, the spam-watch is going great and
Michael:
I've not tried to implement this...but it looks pretty nice in the demo:
http://www.getelementbyid.com/scripts/index.aspx?CodeID=26
- Original Message -
From: "Michael Dinowitz" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Frid
PM
To: CF-Talk
Subject: OT Javascript popups and CF
OK, the spam-watch is going great and the UI is coming together
(http://www.houseoffusion.com/spam/pop.cfm). The only problem is with a
JS popup. I'm using this code:
[Show
Headers]
to cause the message header (coming from CFPOP) to be load
OK, the spam-watch is going great and the UI is coming together
(http://www.houseoffusion.com/spam/pop.cfm). The only problem is with a JS
popup. I'm using this code:
[Show
Headers]
to cause the message header (coming from CFPOP) to be loaded into an alert box.
The HTMLEditFormat() and JSString
After all the extremely helpful advice from people on this list, I came up
with the following function:
function resetSelected(startPosition)
{
var currentSelection = 'SurveyID' + startPosition;
var ne
At 12:27 PM 4/1/03 -0700, Bruce, Rodney S HQISEC/Veridian IT Services wrote:
>oops, maybe I read your post wrong.
>
>If you are looking at setting all the selects to the same option try
>something like this:
I appreciate it. Thanks.
T
~~
written on the cuff so , will ;o) have errors
but should get you pointed in a direction, hopefully.
-Original Message-
From: charlie griefer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:53 AM
To: CF-Talk
Subject: Re: -OT- Javascript and combo
Thank you!
-Original Message-
From: Bruce, Rodney S HQISEC/Veridian IT Services
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 12:07 PM
To: CF-Talk
Subject: RE: -OT- Javascript and combo boxes
Thane
You might want to look into Fusionscript at www.fusionscript.com
With this
At 12:06 PM 4/1/03 -0700, Bruce, Rodney S HQISEC/Veridian IT Services wrote:
>Thane
>
>You might want to look into Fusionscript at www.fusionscript.com
>
>With this you can do calls back to the database without refreshing your
>page.
Hmmm...this might be a bit of overkill for what I'm doing but i
At 11:53 AM 4/1/03 -0700, charlie griefer wrote:
>the general rule for selecting an option in a combo box is:
>
>document.formName.selectBoxName.selectedIndex = n
>
>where n is your number (remember, the first option is 0)
Excellent. I think I can muddle through from here. :)
T
~~~
At 02:12 PM 4/1/03 -0500, Jerry Johnson wrote:
>I think what he really wants is a script that will receive a select object
>and value (probably an onChange event)
>
>And then find all the select boxes with the same naming convention but
>larger sequence numbers, and set them all to the new value.
ulate any
number of select boxes.
you can run any CF code on the server page.
-Original Message-
From: Thane Sherrington [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:32 AM
To: CF-Talk
Subject: Re: -OT- Javascript and combo boxes
At 10:39 AM 4/1/03 -0600, Chris Mont
code on the server page.
-Original Message-
From: Thane Sherrington [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:32 AM
To: CF-Talk
Subject: Re: -OT- Javascript and combo boxes
At 10:39 AM 4/1/03 -0600, Chris Montgomery wrote:
>Howdy Thane,
>
>Tuesday, April 1,
the general rule for selecting an option in a combo box is:
document.formName.selectBoxName.selectedIndex = n
where n is your number (remember, the first option is 0)
In your case, i'd guess you want to store the names of your 30 combo boxes
in an array, and add a function for onchange into
At 10:39 AM 4/1/03 -0600, Chris Montgomery wrote:
>Howdy Thane,
>
>Tuesday, April 1, 2003, 10:03:33 AM, Thane Sherrington wrote:
>
> > Is it possible to use Javascript to select a choice in a combo box?
>
> > For instance, if I have a form with people listed, and beside each, a
> combo
> > box wit
Howdy Thane,
Tuesday, April 1, 2003, 10:03:33 AM, Thane Sherrington wrote:
> Is it possible to use Javascript to select a choice in a combo box?
> For instance, if I have a form with people listed, and beside each, a combo
> box with all the departments in the company, can I select a department
Is it possible to use Javascript to select a choice in a combo box?
For instance, if I have a form with people listed, and beside each, a combo
box with all the departments in the company, can I select a department in
the first combobox, and have the other combo boxes automatically switch to
th
.
- Original Message -
From: Ray Bujarski <[EMAIL PROTECTED]>
Date: Monday, March 17, 2003 3:31 pm
Subject: OT: Javascript
> I need to test howmany items are selected in a select box, is there
> anyway in javascript to do this.
> I have tried
> fromElem.options[from
I need to test howmany items are selected in a select box, is there
anyway in javascript to do this.
I have tried
fromElem.options[fromElem.selectedIndex].length
Where fromElem is the select box, but that obviously didn't work.
Thanks
Ray
~~~
I found this pretty nice cc validation script out on the net ... but I had
to make some modifications to it.
I'm having a weird problem with it, however.
Here is the relevant function:
function validCCForm(ccTypeField,ccNumField)
{
var result =
isValidCreditCardNumber(ccNumFie
OK, I've done this before ... copied previous used script ... but it's not
work ... maybe somebody will see something I'm not seeing.
Here's the function:
function updateSubmit(itemID) {
document.cartform.action = "index.cfm";
document.cartform.saction.value = "up
Need some help with this one - it appears our objects are loosing their
memory references when we pass them between windows.
Here's the scenario:
1) On the main page, we declare an instance of a javascript class (which we
created).
2) The main page opens a pop-up window which takes in some inform
On 2/19/03 9:21 PM, "Kwang Suh" <[EMAIL PROTECTED]> wrote:
>> Onclick expects javascript already.
>
> Actually, this isn't always the case. In IE, if your page has a VBScript as
> the last script in the head, then IE will interpret everything after that as
> VBScript. Since I use both VBScript
Could someone please recommend a Javascript List that is
at least as good as CF-Talk?
Greg M.
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?me
> Onclick expects javascript already.
Actually, this isn't always the case. In IE, if your page has a VBScript as
the last script in the head, then IE will interpret everything after that as
VBScript. Since I use both VBScript and JavaScript at work, I now always
make sure to specify the script
I'm trying to do something like this:
But that's not working.
Basically, I have this check box in the middle of a form that sort of needs
to behave like a form within a form. If the checkbox is clicked, I want
that form to get submitted as that checkbox serving as a single form
element.
H.
Howard:
opener.form1.ITEM_ID.value;
parent is when referencing a frame within a frameset.
hth,
Charlie
Owens>,Howard [EMAIL PROTECTED] writes:
> I have a form, and with the form, I have a link that when clicked, spawns a
> pop-up window.
>
> From within that popper, I want to read a fo
I have a form, and with the form, I have a link that when clicked, spawns a
pop-up window.
>From within that popper, I want to read a form value ...
Shouldn't this:
alert(parent.form1.ITEM_ID.value);
Give me that value?
Obviously, the answer is no, because it's not working for me.
So
I'm trying to figure out how to grab the text string of an option selection
...
Grab Text
I've been trying stuff like this:
(document.form1.ITEM_ID.selectedIndex.text);
or .value or .selected ...
And I keep getting "undefined"
How do I, is there a way to read the text selected, because it i
ubject: Re: OT - JavaScript Slideshow - UPDATE
:
:
: I mean a slideshow.
: - Original Message -
: From: "Paul Ihrig" <[EMAIL PROTECTED]>
: To: "CF-Talk" <[EMAIL PROTECTED]>
: Sent: Sunday, February 09, 2003 7:38 PM
: Subject: RE: OT - JavaScript Slide
seems fine to me.
- Original Message -
From: "Paul Ihrig" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 7:38 PM
Subject: RE: OT - JavaScript Slideshow - UPDATE
> does this work?
> http://www.columbus
Clicking on portfolio doesn't do anything in Mozilla 1.2.1 (win 2k).
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: Paul Ihrig [mailto:[EMAIL PROTECTED]]
: Sent: Sunday, February 09, 2003 8:39 PM
: To: CF-Talk
: Subjec
I mean a slideshow.
- Original Message -
From: "Paul Ihrig" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 7:38 PM
Subject: RE: OT - JavaScript Slideshow - UPDATE
> does this work?
> http://www.columbus
Works for me if what I am supposed to see is revolving images.
- Original Message -
From: "Paul Ihrig" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 7:38 PM
Subject: RE: OT - JavaScript Slideshow - U
does this work?
http://www.columbus.nbbj.com/dalian/
click on portfolio
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=
Sorry for the second OT message, but I'm not having any luck.
Does anybody have a truly cross-browser compatible script that will
create an automatic slideshow w/text descriptions?
Any help would be greatly appreciated... I've been working on them all
day and it seems no matter what I do it doesn
Does it give an error in NS7 or just doesn't do anything?
-seth
-Original Message-
From: Jillian Carroll [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 1:13 AM
To: CF-Talk
Subject: OT - JavaScript Slideshow
Can anybody tell me why the following script will work i
Can anybody tell me why the following script will work in all versions
of IE, Netscape 4 and 6... but won't work in Netscape 7? I'm hoping
somebody can see something that I won't.
*** *** ***