OT: js help

2006-03-03 Thread Tim Do
Hi, I'm trying to passing values from a popup back to the parent window.
In the popup window, I have a select box (multiple).  I want to pass the
selected items back to the parent window but it is only passing back the
first value select not all the values selected in the drop down.  Here
is what I have:
 

function popit()
 
{
 
 var selObj = document.getElementById('select1');
 var selObj2 = document.getElementById('select2');
 var selIndex = selObj.selectedIndex;
 var selIndex2 = selObj2.selectedIndex;
 
opener.document.getElementById("texta").innerHTML=selObj.options[selInde
x].value;
 
opener.document.getElementById("textb").innerHTML=selObj2.options[selInd
ex2].value; 
 //alert(selObj.options[selIndex].value);
}

 

 

 1
 2
 3
 


 a
 b
 c

 

 

 
 
Thanks!
 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234118
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OT: JS help

2003-12-09 Thread Schuster, Steven
Bingo, exactly what I said.

-Original Message-
From: Cutter (CF-Talk) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:25 PM
To: CF-Talk
Subject: Re: OT: JS help

 
JS Popup browsers are called like this:

window.open('http://www.mydomain.com/pagename.html','windowname','[attribute
s]');

This code is in the code of your custom tag. You must adjust this code 
to say "https:" instead of "http:". If the tag calls the popup page as a 
relative link rather than an absolute path then you will probably have 
to change it to an absolute path. Hope this helps.

Cutter

Tim Do wrote:
> Hello all,
> 
> 
> I'm trying to use a calendar custom tag (cf_formFieldCalendar) inside a
> secure directory.   Inside the tag it has a window.open command that
spawns
> a window.  When it does, the browser prompts that you're leaving a secure
> area.  The tag is inside the secure directory.  Can anybody tell me how to
> get it so the browser doesn't prompt the user that they're leaving a
secure
> area?
> 
> 
> Thanks in advance,
> Tim
> 
> 
> Here is a piece of the js:
> 
> 
> function openCalWin_#attributes.target#() {
> stats='toolbar=no,location=no,directories=no,status=no,menubar=no,'
> stats += 'scrollbars=no,resizable=no,width=300,height=250'
> CalWin = window.open ("","Calendar",stats)
>
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: OT: JS help

2003-12-09 Thread Ben Doom
The browser will *always* prompt the user that they are leaving a secure 
area (this is a feature not a bug) unless you open a secure URL in the 
flyout window.

--Ben

Tim Do wrote:

> Hello all,
> 
> 
> I'm trying to use a calendar custom tag (cf_formFieldCalendar) inside a
> secure directory.   Inside the tag it has a window.open command that spawns
> a window.  When it does, the browser prompts that you're leaving a secure
> area.  The tag is inside the secure directory.  Can anybody tell me how to
> get it so the browser doesn't prompt the user that they're leaving a secure
> area?
> 
> 
> Thanks in advance,
> Tim
> 
> 
> Here is a piece of the js:
> 
> 
> function openCalWin_#attributes.target#() {
> stats='toolbar=no,location=no,directories=no,status=no,menubar=no,'
> stats += 'scrollbars=no,resizable=no,width=300,height=250'
> CalWin = window.open ("","Calendar",stats)
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: OT: JS help

2003-12-09 Thread Cutter (CF-Talk)
JS Popup browsers are called like this:

window.open('http://www.mydomain.com/pagename.html','windowname','[attributes]');

This code is in the code of your custom tag. You must adjust this code 
to say "https:" instead of "http:". If the tag calls the popup page as a 
relative link rather than an absolute path then you will probably have 
to change it to an absolute path. Hope this helps.

Cutter

Tim Do wrote:
> Hello all,
> 
> 
> I'm trying to use a calendar custom tag (cf_formFieldCalendar) inside a
> secure directory.   Inside the tag it has a window.open command that spawns
> a window.  When it does, the browser prompts that you're leaving a secure
> area.  The tag is inside the secure directory.  Can anybody tell me how to
> get it so the browser doesn't prompt the user that they're leaving a secure
> area?
> 
> 
> Thanks in advance,
> Tim
> 
> 
> Here is a piece of the js:
> 
> 
> function openCalWin_#attributes.target#() {
> stats='toolbar=no,location=no,directories=no,status=no,menubar=no,'
> stats += 'scrollbars=no,resizable=no,width=300,height=250'
> CalWin = window.open ("","Calendar",stats)
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




OT: JS help

2003-12-09 Thread Tim Do
Hello all,

 
I'm trying to use a calendar custom tag (cf_formFieldCalendar) inside a
secure directory.   Inside the tag it has a window.open command that spawns
a window.  When it does, the browser prompts that you're leaving a secure
area.  The tag is inside the secure directory.  Can anybody tell me how to
get it so the browser doesn't prompt the user that they're leaving a secure
area?

 
Thanks in advance,
Tim

 
Here is a piece of the js:

 
function openCalWin_#attributes.target#() { 
 stats='toolbar=no,location=no,directories=no,status=no,menubar=no,'
 stats += 'scrollbars=no,resizable=no,width=300,height=250'
 CalWin = window.open ("","Calendar",stats)
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




OT: JS help

2003-06-04 Thread Kris Pilles
Ok, this is an odd request but:

I was curiosu if it is possible with javascript to reference the value
of the text contained inbetween the Thevalue

Any help would be awesome.

I need to do this with JS only

Thanks



Kris Pilles
Website Manager
Western Suffolk BOCES
507 Deer Park Rd., Building C
Phone: 631-549-4900 x 267
E-mail: [EMAIL PROTECTED]


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: OT JS Help

2002-11-22 Thread Lofback, Chris
You need to be able to parse the date out of the form field.  I wrote a JS
library that handles this (and several other types of validation).  Take a
look at http://66.0.48.14/js/

Chris Lofback
Sr. Web Developer

TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL  33761
www.trxi.com


> -Original Message-
> From: Tipton Josh (orl1jdt) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 22, 2002 1:32 PM
> To: CF-Talk
> Subject: OT JS Help
> 
> 
> I have a set date already and I want to make sure that the 
> date entered is
> not higher than the current set date and if so then a warning 
> would show.
> In my reasearch js kind of bites when it comes to dates so I 
> need some help.
>  
> In short I want to make sure that date1 !> an entered form value.
>  
> Thanks,
>  
> Joshua Tipton
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: OT JS Help

2002-11-22 Thread Rob Rohan
I am not sure if you are trying to do a whole date or just a the month part
or what.

This is one of my favorite JS sites. Look at the Date object - perhaps that
might help.
http://developer.netscape.com/docs/manuals/communicator/jsref/contents.htm

Cheers,
Rob

Certified Organic
"When you put things in quotes, people think someone actually said it."
http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 10:51 AM
To: CF-Talk
Subject: RE: OT JS Help


if (parseInt(document.form.Date1.value) >
parseInt(document.form.Date2.value))
{
alert("Date1 must be before the Date2!")
document.form.Date1.focus()
return false;
}

-Original Message-
From: Tipton Josh (orl1jdt) [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 10:32 AM
To: CF-Talk
Subject: OT JS Help


I have a set date already and I want to make sure that the date entered is
not higher than the current set date and if so then a warning would show.
In my reasearch js kind of bites when it comes to dates so I need some help.

In short I want to make sure that date1 !> an entered form value.

Thanks,

Joshua Tipton


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: OT JS Help

2002-11-22 Thread Tim Do
if (parseInt(document.form.Date1.value) >
parseInt(document.form.Date2.value)) 
{
alert("Date1 must be before the Date2!")
document.form.Date1.focus()
return false;
}   

-Original Message-
From: Tipton Josh (orl1jdt) [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 10:32 AM
To: CF-Talk
Subject: OT JS Help


I have a set date already and I want to make sure that the date entered is
not higher than the current set date and if so then a warning would show.
In my reasearch js kind of bites when it comes to dates so I need some help.
 
In short I want to make sure that date1 !> an entered form value.
 
Thanks,
 
Joshua Tipton

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



OT JS Help

2002-11-22 Thread Tipton Josh (orl1jdt)
I have a set date already and I want to make sure that the date entered is
not higher than the current set date and if so then a warning would show.
In my reasearch js kind of bites when it comes to dates so I need some help.
 
In short I want to make sure that date1 !> an entered form value.
 
Thanks,
 
Joshua Tipton
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm