Re: JS Help

2007-03-10 Thread Dinner
if you didn't fix it, it may be because you don't have a name for the
window?

window.open(url,name,etc..)?  just a guess...

On 3/8/07, Steve LaBadie wrote:

 I hope it's ok to post this here.



 I have created an onmouseover pop-up window, which closes with
 onmouseout.  Works fine in IE6, but creates multiple windows in Firefox.
 Any ideas?



 script language=JavaScript type=text/javascript

 !--

 function openWindow(url, name) {

 myWin = window.open(,, width=300,height=250);

 myWin.document.write (bodytexttexttext);

 myWin.document.write (/body/html);

 myWin.document.close();

 }

 function closeIt() {

 if (!myWin.closed)

 myWin.self.close()

 }

 //--

 /script



 a href=javascript:void() onMouseOver=openWindow()
 onMouseOut=closeIt() onClick=return falseRonald Louis/a



~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272281
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: js help

2006-03-03 Thread Josh Nathanson
If you do selObj.value instead of selObj.options[selIndex].value, it 
might send back a comma-delimited list of all the values.  Give it a try, 
not absolutely sure if that will work though.

-- Josh




- Original Message - 
From: Tim Do [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Friday, March 03, 2006 12:40 PM
Subject: OT: js help


 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:

 script language=JavaScript type=text/javascript
 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);
 }
 /script

 form action=pop2.cfm method=post

 select name=select1 multiple size=3
 option value=11
 option value=22
 option value=33
 /select
 br
 select name=select2
 option value=aa
 option value=bb
 option value=cc
 /select

 input type=button value=submit name=submit onclick=popit();

 /form


 Thanks!



 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234129
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: js help

2006-03-03 Thread Nick Han
Yo tim, loop through the options array and find out which one is
selected.  Append selected ones to a variable and pass it back to opener
window. 

script language=JavaScript type=text/javascript function popit()
 
{
 
 var selObj = document.getElementById('select1');
 var selObj2 = document.getElementById('select2');
 var selIndex = selObj.selectedIndex;
 var selIndex2 = selObj2.selectedIndex;
 var temp=;

 for(i=0; i  selObj.options.length; i++){
if(selObj.options[i].selected)
temp+=innerHTML=selObj.options[i].value +',';
 
 }
opener.document.getElementById(texta).innerHTML=temp;
 
opener.document.getElementById(textb).innerHTML=selObj2.options[selInd
ex2].value;
 //alert(selObj.options[selIndex].value);
}
/script

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 03, 2006 12:40 PM
To: CF-Talk
Subject: OT: js help

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:
 
script language=JavaScript type=text/javascript
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);
}
/script
 
form action=pop2.cfm method=post
 
select name=select1 multiple size=3
 option value=11
 option value=22
 option value=33
/select 
br
select name=select2
 option value=aa
 option value=bb
 option value=cc
/select
 
input type=button value=submit name=submit onclick=popit();
 
/form
 
 
Thanks!
 




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234147
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: js help -drop down menus

2005-06-09 Thread Tim Laureska
OK... maybe I'll try to break it down then ...

Not familiar with CFMODULE -  could someone explain what this is
doing...

cfmodule template=qry_GetSubCategories.cfm
FK_tblCategories = #GetCategories.Name#

 I understand its calling qry_GetSubCategories.cfm, but don't get the
2nd half (FK_tblCategories = #GetCategories.Name#):  







-Original Message-
From: Tim Laureska [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 09, 2005 12:46 PM
To: CF-Talk
Subject: js help -drop down menus

Does anyone have a few minutes to help with understanding the javascript
at 
http://www.cfug-sfl.org/readArticle.cfm?id=24

for implementation of a similar scenario on a site

Tim 





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209130
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: js help -drop down menus

2005-06-09 Thread Dave Watts
 Not familiar with CFMODULE -  could someone explain what this is
 doing...
 
 cfmodule template=qry_GetSubCategories.cfm
 FK_tblCategories = #GetCategories.Name#
 
  I understand its calling qry_GetSubCategories.cfm, but don't get the
 2nd half (FK_tblCategories = #GetCategories.Name#): 

The CFMODULE tag lets you call custom tags, so for your purposes the above
is identical to this:

cf_qry_getSubCategories FK_tblCategories=#GetCategories.Name#

The second half is simply an attribute which will then be available within
the custom tag. You would have to open qry_getSubCategories.cfm to see what
it's doing with Attributes.FK_tblCategories to know exactly what the
attribute is for. Presumably, the custom tag uses this attribute to figure
out for which category or categories it should get subcategories.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209136
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: js help -drop down menus

2005-06-09 Thread Deanna Schneider
cfmodule.. is just another way to call a custom tag.  Think of it
the same way you would any of the normal cf tags. Any name/value pair
passed in is an attribute for the custom tag.
Looks to me like this one is saying - get all the subcategories where
the main category is getcategories.name. But, that's just a guess.


On 6/9/05, Tim Laureska [EMAIL PROTECTED] wrote:
 OK... maybe I'll try to break it down then ...
 
 Not familiar with CFMODULE -  could someone explain what this is
 doing...
 
 cfmodule template=qry_GetSubCategories.cfm
 FK_tblCategories = #GetCategories.Name#
 
  I understand its calling qry_GetSubCategories.cfm, but don't get the
 2nd half (FK_tblCategories = #GetCategories.Name#):
 
 
 
 
 
 
 
 -Original Message-
 From: Tim Laureska [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 09, 2005 12:46 PM
 To: CF-Talk
 Subject: js help -drop down menus
 
 Does anyone have a few minutes to help with understanding the javascript
 at
 http://www.cfug-sfl.org/readArticle.cfm?id=24
 
 for implementation of a similar scenario on a site
 
 Tim
 
 
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209137
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: JS help - checkboxes

2004-04-09 Thread Adkins, Randy
If your calling that script from the OnSubmit function of your form tag,
simply return FALSE to the call:

 
FORM ACTION="" ACTION PAGE NAME=myFORM >
anyCheck('myForm')

Then in the script:
if (eval(document.registration.type_no[ + idx + ].checked) == true)
{
 total += 1;
if (total 1) alert(You cannot select more than 1 registration type);
return false
}
}
return true

This is of course you need no other validation

-Original Message-
From: Tim Laureska [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 09, 2004 8:52 AM
To: CF-Talk
Subject: JS help - checkboxes

I have a little script that throws up an alert when more than 1 checkbox
is selected.However, is there some code I can put in this script that
will also prevent anything else in the cold fusion page from processing
until the more than one checkbox problem is corrected?Here's the
script:

SCRIPT LANGUAGE=_javascript_
!-- Begin
function anyCheck(form) {
var total = 0;
var max = form.type_no.length;
for (var idx = 0; idx  max; idx++) {
if (eval(document.registration.type_no[ + idx + ].checked) == true)
{
 total += 1;
if (total 1) alert(You cannot select more than 1 registration type);
}
}

}
//End --
/script

TIA
Tim 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: JS help - checkboxes

2004-04-09 Thread Lofback, Chris
Would it make more sense to use radio buttons, which only allow one selection?

 
Chris 

-Original Message-
From: Tim Laureska [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 8:52 AM
To: CF-Talk
Subject: JS help - checkboxes

I have a little script that throws up an alert when more than 1 checkbox
is selected.However, is there some code I can put in this script that
will also prevent anything else in the cold fusion page from processing
until the more than one checkbox problem is corrected?Here's the
script:

SCRIPT LANGUAGE=_javascript_
!-- Begin
function anyCheck(form) {
var total = 0;
var max = form.type_no.length;
for (var idx = 0; idx  max; idx++) {
if (eval(document.registration.type_no[ + idx + ].checked) == true)
{
 total += 1;
if (total 1) alert(You cannot select more than 1 registration type);
}
}

}
//End --
/script

TIA
Tim 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: JS help - checkboxes

2004-04-09 Thread Tim Laureska
Ahh... I didn't know that... never used radio buttons before ... I'll
check out that possibility

-Original Message-
From: Lofback, Chris [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 09, 2004 9:10 AM
To: CF-Talk
Subject: RE: JS help - checkboxes

Would it make more sense to use radio buttons, which only allow one
selection?

 
Chris 

-Original Message-
From: Tim Laureska [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 8:52 AM
To: CF-Talk
Subject: JS help - checkboxes

I have a little script that throws up an alert when more than 1 checkbox
is selected.However, is there some code I can put in this script that
will also prevent anything else in the cold fusion page from processing
until the more than one checkbox problem is corrected?Here's the
script:

SCRIPT LANGUAGE=_javascript_
!-- Begin
function anyCheck(form) {
var total = 0;
var max = form.type_no.length;
for (var idx = 0; idx  max; idx++) {
if (eval(document.registration.type_no[ + idx + ].checked) == true)
{
 total += 1;
if (total 1) alert(You cannot select more than 1 registration type);
}
}

}
//End --
/script

TIA
Tim 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: JS help - checkboxes

2004-04-09 Thread Tim Laureska
Thanks Chris... was easy and works great

Randy... thanks also for your suggestion on the checkbox approach

-Original Message-
From: Lofback, Chris [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 09, 2004 9:10 AM
To: CF-Talk
Subject: RE: JS help - checkboxes

Would it make more sense to use radio buttons, which only allow one
selection?

 
Chris 

-Original Message-
From: Tim Laureska [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 8:52 AM
To: CF-Talk
Subject: JS help - checkboxes

I have a little script that throws up an alert when more than 1 checkbox
is selected.However, is there some code I can put in this script that
will also prevent anything else in the cold fusion page from processing
until the more than one checkbox problem is corrected?Here's the
script:

SCRIPT LANGUAGE=_javascript_
!-- Begin
function anyCheck(form) {
var total = 0;
var max = form.type_no.length;
for (var idx = 0; idx  max; idx++) {
if (eval(document.registration.type_no[ + idx + ].checked) == true)
{
 total += 1;
if (total 1) alert(You cannot select more than 1 registration type);
}
}

}
//End --
/script

TIA
Tim 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: JS help - checkboxes

2004-04-09 Thread Lofback, Chris
Glad to help.Here's one more tip.If you want HTML checkboxes and radio buttons to activate by clicking on the label (like other form-based apps), try this snippet of code:

 
LABEL FOR="" TYPE=radio ID=RB1 NAME=Foo VALUE=1Option 1/LABEL

 
I don't think it works on every browser, but it works on most modern ones and the others just ignore the LABEL tags.Note that the FOR parameter of the LABEL tag must match the ID parameter of the radio button or checkbox.

 
Chris

-Original Message-
From: Tim Laureska [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 9:46 AM
To: CF-Talk
Subject: RE: JS help - checkboxes

Thanks Chris... was easy and works great

Randy... thanks also for your suggestion on the checkbox approach

-Original Message-
From: Lofback, Chris [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 09, 2004 9:10 AM
To: CF-Talk
Subject: RE: JS help - checkboxes

Would it make more sense to use radio buttons, which only allow one
selection?

Chris 

-Original Message-
From: Tim Laureska [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 8:52 AM
To: CF-Talk
Subject: JS help - checkboxes

I have a little script that throws up an alert when more than 1 checkbox
is selected.However, is there some code I can put in this script that
will also prevent anything else in the cold fusion page from processing
until the more than one checkbox problem is corrected?Here's the
script:

SCRIPT LANGUAGE=_javascript_
!-- Begin
function anyCheck(form) {
var total = 0;
var max = form.type_no.length;
for (var idx = 0; idx  max; idx++) {
if (eval(document.registration.type_no[ + idx + ].checked) == true)
{
 total += 1;
if (total 1) alert(You cannot select more than 1 registration type);
}
}

}
//End --
/script

TIA
Tim 
_ 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: JS help

2003-12-09 Thread Schuster, Steven
Make sure the tag code does not use http:// anywhere is one way. 

 
Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:10 PM
To: CF-Talk
Subject: OT: JS help

 
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: JS help

2003-12-09 Thread Tim Do
There is no http anywhere... the calendar is all rendered inside the custom
tag.

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:20 AM
To: CF-Talk
Subject: RE: JS help

Make sure the tag code does not use http:// anywhere is one way. 

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:10 PM
To: CF-Talk
Subject: OT: JS help

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: JS help

2003-12-09 Thread Schuster, Steven
So there are no internal links using http:// within the custom tag itself
and when you call it externally you are using https:// correct?

 
Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:16 PM
To: CF-Talk
Subject: RE: JS help

 
There is no http anywhere... the calendar is all rendered inside the custom
tag.

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:20 AM
To: CF-Talk
Subject: RE: JS help

Make sure the tag code does not use http:// anywhere is one way. 

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:10 PM
To: CF-Talk
Subject: OT: JS help

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: JS help

2003-12-09 Thread Douglas.Knudsen
ugh, take a look at the HTML source after your page is drwan.I bet there is an HTTP in the window.open call.

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 2:16 PM
To: CF-Talk
Subject: RE: JS help

There is no http anywhere... the calendar is all rendered inside the custom
tag.

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:20 AM
To: CF-Talk
Subject: RE: JS help

Make sure the tag code does not use http:// anywhere is one way. 

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:10 PM
To: CF-Talk
Subject: OT: JS help

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: JS help

2003-12-09 Thread Tim Do
that is correct.

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:34 AM
To: CF-Talk
Subject: RE: JS help

So there are no internal links using http:// within the custom tag itself
and when you call it externally you are using https:// correct?

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:16 PM
To: CF-Talk
Subject: RE: JS help

There is no http anywhere... the calendar is all rendered inside the custom
tag.

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:20 AM
To: CF-Talk
Subject: RE: JS help

Make sure the tag code does not use http:// anywhere is one way. 

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:10 PM
To: CF-Talk
Subject: OT: JS help

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: JS help

2003-12-09 Thread Schuster, Steven
Can you send the code from the calling page and custom tag?

 
Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:33 PM
To: CF-Talk
Subject: RE: JS help

 
that is correct.

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:34 AM
To: CF-Talk
Subject: RE: JS help

So there are no internal links using http:// within the custom tag itself
and when you call it externally you are using https:// correct?

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:16 PM
To: CF-Talk
Subject: RE: JS help

There is no http anywhere... the calendar is all rendered inside the custom
tag.

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:20 AM
To: CF-Talk
Subject: RE: JS help

Make sure the tag code does not use http:// anywhere is one way. 

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:10 PM
To: CF-Talk
Subject: OT: JS help

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: JS help

2003-12-09 Thread Tim Do
No http://
this is what the source looks like:

 
htmlheadTitleSelect a Date/titleSTYLE TYPE=text/cssA { color:
#00; font-family:Verdana;font-size:12px; font-weight: normal;
text-decoration: none; padding:0em .5em;}A:hover { color: #cc6600;
background-color: #ecf4f7; padding:0em .5em; }body { background: #ff;
}/STYLE/headbodya name=this/atable align=center height=100%
width=100% border=0 bordercolor=#ff cellpadding=0 cellspacing=0trth
bgcolor=#b2d9ec colspan=7font face=Verdana color=#006699 size=2December
2003/font/th/trtr bgcolor=#ecf4f7thfont face=Verdana
color=#006699 size=1Su/font/ththfont face=Verdana color=#006699
size=1Mo/font/ththfont face=Verdana color=#006699
size=1Tu/font/ththfont face=Verdana color=#006699
size=1We/font/ththfont face=Verdana color=#006699
size=1Th/font/ththfont face=Verdana color=#006699
size=1Fr/font/ththfont face=Verdana color=#006699
size=1Sa/font/th/trtrtd align=center width=14.28%nbsp;/tdtd
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
td align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
td align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
td align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%nbsp;/tdtd align=center
width=14.28%nbsp;/tdtd align=center
width=14.28%nbsp;/td/trformtr bgcolor=#ecf4f7td colspan=7
align=centerinput type=image src="" align=middle
alt= border=0 name=Backward value=
 face=Verdana color=#006699
size=1 Arrows browse through the months./font input type=image
src="" align=middle alt= border=0 name=Forward
value=
>


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:38 AM
To: CF-Talk
Subject: RE: JS help

ugh, take a look at the HTML source after your page is drwan.I bet there
is an HTTP in the window.open call.

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 2:16 PM
To: CF-Talk
Subject: RE: JS help

There is no http anywhere... the calendar is all rendered inside the custom
tag.

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:20 AM
To: CF-Talk
Subject: RE: JS help

Make sure the tag code does not use http:// anywhere is one way. 

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:10 PM
To: CF-Talk
Subject: OT: JS help

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: JS help

2003-12-09 Thread Tim Do
e=_javascript_
alert(You must supply a value for the FORMNAME  TARGET attributes!)
/script
/cfcatch
/cftry

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:43 AM
To: CF-Talk
Subject: RE: JS help

Can you send the code from the calling page and custom tag?

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:33 PM
To: CF-Talk
Subject: RE: JS help

that is correct.

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:34 AM
To: CF-Talk
Subject: RE: JS help

So there are no internal links using http:// within the custom tag itself
and when you call it externally you are using https:// correct?

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:16 PM
To: CF-Talk
Subject: RE: JS help

There is no http anywhere... the calendar is all rendered inside the custom
tag.

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:20 AM
To: CF-Talk
Subject: RE: JS help

Make sure the tag code does not use http:// anywhere is one way. 

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:10 PM
To: CF-Talk
Subject: OT: JS help

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: JS help

2003-12-09 Thread Schuster, Steven
Well one thing right off the bat, the image call must be completely
qualified using https://address/path_to_image
https://address/path_to_image ...

 
I know it sucks, but it just does

 
I am looking at the other chunk right now.

 
Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:39 PM
To: CF-Talk
Subject: RE: JS help

 
here is the calling page:
cf_formFieldCalendar image=images/arrow_d.gif align=middle
alt=Calendar border=0 formname=frmSearchInCheck target=dateMax

tag:
!--
CF_CAL Custom Tag

Jason Bukowski
4 Brattle Circle
Cambridge, MA 02138
6/28/2000

UPDATED 7/11/2000
- Fixed Netscape bug
- Fixed Multiple Instances Bug
- Minor UI Improvment

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

CF_CAL is designed to place a button that activates a popup calendar. The
user may browse though the calendar and select and date he wants by clicking
on it. That date is then send back to a definded text field in a defined
form in the format MM/DD/. 

To Use:
Paramteres-- formname target date image 

REQUIRED:
formname - the name of the form you want the date inserted into
target - the name of the text field in that form
OPTIONAL
date - the date the calendar opens to. Default is current.
image - the graphic to appear as the button. Default is [C] -- path is
relative to calling page.
--
cftry

cfif parameterexists(attributes.target) EQ 0
cfthrow message=NoTarget
cfelseif parameterexists(attributes.formname) EQ 0
cfthrow message=NoTarget
/cfif

cfparam name=attributes.date default=#Now()#
cfparam name=attributes.image default=0

cfoutput
script language=_javascript_

var months = new
Array(January,February,March,April,May,June,July,August,Sep
tember,October,November,December)
var totalDays = new Array(31,28,31,30,31,30,31,31,30,31,30,31)

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)

var calMonth = #DateFormat(attributes.date, M)#
var calYear = #DateFormat(attributes.date, )#

theDate = new Date(calYear, (calMonth - 1), 1)

buildCal_#attributes.target#(theDate)

}

function buildCal_#attributes.target#(theDate) {

var startDay = theDate.getDay()
var printDays = false
var currDay = 1
var rowsNeeded = 5

if (startDay + totalDays[theDate.getMonth()]  35)
rowsNeeded++

CalWin.document.write('htmlheadTitleSelect a Date/title')
CalWin.document.write('STYLE TYPE=text/css')
CalWin.document.write('A { color: ##00;
font-family:Verdana;font-size:12px; font-weight: normal; text-decoration:
none; padding:0em .5em;}')
CalWin.document.write('A:hover { color: ##cc6600; background-color:
##ecf4f7; padding:0em .5em; }')
CalWin.document.write('body { background: ##ff; }')
CalWin.document.write('/STYLE/head')
CalWin.document.write('bodya name=this/a')
CalWin.document.write('table align=center height=100% width=100% border=0
bordercolor=##ff cellpadding=0 cellspacing=0')
CalWin.document.write('trth bgcolor=##b2d9ec colspan=7font
face=Verdana color=##006699 size=2' + months[theDate.getMonth()] + ' ' +
theDate.getFullYear() + '/font/th/tr')
CalWin.document.write('tr bgcolor=##ecf4f7thfont face=Verdana
color=##006699 size=1Su/font/ththfont face=Verdana color=##006699
size=1Mo/font/ththfont face=Verdana color=##006699
size=1Tu/font/ththfont face=Verdana color=##006699
size=1We/font/ththfont face=Verdana color=##006699
size=1Th/font/ththfont face=Verdana color=##006699
size=1Fr/font/ththfont face=Verdana color=##006699
size=1Sa/font/th/tr')
for (x=1; x=rowsNeeded; x++){
CalWin.document.write('tr')
for (y=0; y=6; y++){
if (currDay == 1  !printDays  startDay == y)
 printDays = true
CalWin.document.write('td align=center width=14.28%')
if (printDays){
 CalWin.document.write('a
href="" + theDate.getMonth()
+ ',' +currDay + ',' + theDate.getFullYear() + ')' + currDay++ +
'/a/td')
 if (currDay  totalDays[theDate.getMonth()])
printDays = false
}
else
 CalWin.document.write('nbsp;/td')
}
CalWin.document.write('/tr')
} 
CalWin.document.write('formtr bgcolor=##ecf4f7td colspan=7
align=centerinput type=image src="" align=middle
alt= border=0 name=Backward value=
 face=Verdana
color=##006699 size=1 Arrows browse through the months./font input
type=image src="" align=middle alt= border=0
name=Forward value=
>
CalWin.document.write('/table/body/html')
CalWin.document.close()

}

function getNewCal_#attributes.target#(newDir) {
if (newDir == -1){
theDate.setMonth(theDate.getMonth() - 1)
if (theDate.getMonth() == 0){
theDate.setMonth(12)
theDate.setYear(theDate.getYear() - 1)
}
}
else if (newDir == 1){
theDate.setMonth(theDate.getMonth() + 1)
if (theDate.getMonth() == 13){
theDate.setMonth(1)
theDate.setYear(theDate.getYear() + 1)
}
}


CalWin.document.clear();
buildCal_#attributes.target#(theDate);

}

function placeDate_#attributes.target#(monthNum, dayNum, yearNum

RE: JS help

2003-12-09 Thread Heald, Tim
That's the page that's created with window.open()

 
It's probably using just window.open('myfile.cfm') or something and you need
to be more specific.Send the code for the originating page.

-- 
Timothy Heald 
Web Portfolio Manager 
Overseas Security Advisory Council 
U.S. Department of State 
571.345.2319 

The opinions expressed here do not necessarily reflect those of the U.S.
Department of State or any affiliated organization(s).Nor have these
opinions been approved or sanctioned by these organizations. This e-mail is
unclassified based on the definitions in E.O. 12958.

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 2:45 PM
To: CF-Talk
Subject: RE: JS help

No http://
this is what the source looks like:

htmlheadTitleSelect a Date/titleSTYLE TYPE=text/cssA { color:
#00; font-family:Verdana;font-size:12px; font-weight: normal;
text-decoration: none; padding:0em .5em;}A:hover { color: #cc6600;
background-color: #ecf4f7; padding:0em .5em; }body { background: #ff;
}/STYLE/headbodya name=this/atable align=center height=100%
width=100% border=0 bordercolor=#ff cellpadding=0 cellspacing=0trth
bgcolor=#b2d9ec colspan=7font face=Verdana color=#006699 size=2December
2003/font/th/trtr bgcolor=#ecf4f7thfont face=Verdana
color=#006699 size=1Su/font/ththfont face=Verdana color=#006699
size=1Mo/font/ththfont face=Verdana color=#006699
size=1Tu/font/ththfont face=Verdana color=#006699
size=1We/font/ththfont face=Verdana color=#006699
size=1Th/font/ththfont face=Verdana color=#006699
size=1Fr/font/ththfont face=Verdana color=#006699
size=1Sa/font/th/trtrtd align=center width=14.28%nbsp;/tdtd
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
td align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
td align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
td align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%nbsp;/tdtd align=center
width=14.28%nbsp;/tdtd align=center
width=14.28%nbsp;/td/trformtr bgcolor=#ecf4f7td colspan=7
align=centerinput type=image src="" align=middle
alt= border=0 name=Backward value=
 face=Verdana color=#006699
size=1 Arrows browse through the months./font input type=image
src="" align=middle alt= border=0 name=Forward
value=
>


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:38 AM
To: CF-Talk
Subject: RE: JS help

ugh, take a look at the HTML source after your page is drwan.I bet there
is an HTTP in the window.open call.

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 2:16 PM
To: CF-Talk
Subject: RE: JS help

There is no http anywhere... the calendar is all rendered inside the custom
tag.

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:20 AM
To: CF-Talk
Subject: RE: JS help

Make sure the tag code does not use http:// anywhere is one way. 

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:10 PM
To: CF-Talk
Subject: OT: JS help

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: JS help

2003-12-09 Thread Douglas.Knudsen
Where is the window.open call though? This looks like the source of the popup window.What about the HTML source of the page that opens this window?I'm betting the custom tag generates a window.open call that has HTTP in it.

 
DK

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 2:36 PM
To: CF-Talk
Subject: RE: JS help

No http://
this is what the source looks like:

htmlheadTitleSelect a Date/titleSTYLE TYPE=text/cssA { color:
#00; font-family:Verdana;font-size:12px; font-weight: normal;
text-decoration: none; padding:0em .5em;}A:hover { color: #cc6600;
background-color: #ecf4f7; padding:0em .5em; }body { background: #ff;
}/STYLE/headbodya name=this/atable align=center height=100%
width=100% border=0 bordercolor=#ff cellpadding=0 cellspacing=0trth
bgcolor=#b2d9ec colspan=7font face=Verdana color=#006699 size=2December
2003/font/th/trtr bgcolor=#ecf4f7thfont face=Verdana
color=#006699 size=1Su/font/ththfont face=Verdana color=#006699
size=1Mo/font/ththfont face=Verdana color=#006699
size=1Tu/font/ththfont face=Verdana color=#006699
size=1We/font/ththfont face=Verdana color=#006699
size=1Th/font/ththfont face=Verdana color=#006699
size=1Fr/font/ththfont face=Verdana color=#006699
size=1Sa/font/th/trtrtd align=center width=14.28%nbsp;/tdtd
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
td align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
td align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
td align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%nbsp;/tdtd align=center
width=14.28%nbsp;/tdtd align=center
width=14.28%nbsp;/td/trformtr bgcolor=#ecf4f7td colspan=7
align=centerinput type=image src="" align=middle
alt= border=0 name=Backward value=
 face=Verdana color=#006699
size=1 Arrows browse through the months./font input type=image
src="" align=middle alt= border=0 name=Forward
value=
>


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:38 AM
To: CF-Talk
Subject: RE: JS help

ugh, take a look at the HTML source after your page is drwan.I bet there
is an HTTP in the window.open call.

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 2:16 PM
To: CF-Talk
Subject: RE: JS help

There is no http anywhere... the calendar is all rendered inside the custom
tag.

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:20 AM
To: CF-Talk
Subject: RE: JS help

Make sure the tag code does not use http:// anywhere is one way. 

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:10 PM
To: CF-Talk
Subject: OT: JS help

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: JS help

2003-12-09 Thread Heald, Tim
Ok

 
but what does that tag produce in html and _javascript_?It has to be using a
window.open in order to pop the new window somewhere.

-- 
Timothy Heald 
Web Portfolio Manager 
Overseas Security Advisory Council 
U.S. Department of State 
571.345.2319 

The opinions expressed here do not necessarily reflect those of the U.S.
Department of State or any affiliated organization(s).Nor have these
opinions been approved or sanctioned by these organizations. This e-mail is
unclassified based on the definitions in E.O. 12958.

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 2:49 PM
To: CF-Talk
Subject: RE: JS help

here is the calling page:
cf_formFieldCalendar image=images/arrow_d.gif align=middle
alt=Calendar border=0 formname=frmSearchInCheck target=dateMax

tag:
!--
CF_CAL Custom Tag

Jason Bukowski
4 Brattle Circle
Cambridge, MA 02138
6/28/2000

UPDATED 7/11/2000
- Fixed Netscape bug
- Fixed Multiple Instances Bug
- Minor UI Improvment

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

CF_CAL is designed to place a button that activates a popup calendar. The
user may browse though the calendar and select and date he wants by clicking
on it. That date is then send back to a definded text field in a defined
form in the format MM/DD/. 

To Use:
Paramteres-- formname target date image 

REQUIRED:
formname - the name of the form you want the date inserted into
target - the name of the text field in that form
OPTIONAL
date - the date the calendar opens to. Default is current.
image - the graphic to appear as the button. Default is [C] -- path is
relative to calling page.
--
cftry

cfif parameterexists(attributes.target) EQ 0
cfthrow message=NoTarget
cfelseif parameterexists(attributes.formname) EQ 0
cfthrow message=NoTarget
/cfif

cfparam name=attributes.date default=#Now()#
cfparam name=attributes.image default=0

cfoutput
script language=_javascript_

var months = new
Array(January,February,March,April,May,June,July,August,Sep
tember,October,November,December)
var totalDays = new Array(31,28,31,30,31,30,31,31,30,31,30,31)

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)

var calMonth = #DateFormat(attributes.date, M)#
var calYear = #DateFormat(attributes.date, )#

theDate = new Date(calYear, (calMonth - 1), 1)

buildCal_#attributes.target#(theDate)

}

function buildCal_#attributes.target#(theDate) {

var startDay = theDate.getDay()
var printDays = false
var currDay = 1
var rowsNeeded = 5

if (startDay + totalDays[theDate.getMonth()]  35)
rowsNeeded++

CalWin.document.write('htmlheadTitleSelect a Date/title')
CalWin.document.write('STYLE TYPE=text/css')
CalWin.document.write('A { color: ##00;
font-family:Verdana;font-size:12px; font-weight: normal; text-decoration:
none; padding:0em .5em;}')
CalWin.document.write('A:hover { color: ##cc6600; background-color:
##ecf4f7; padding:0em .5em; }')
CalWin.document.write('body { background: ##ff; }')
CalWin.document.write('/STYLE/head')
CalWin.document.write('bodya name=this/a')
CalWin.document.write('table align=center height=100% width=100% border=0
bordercolor=##ff cellpadding=0 cellspacing=0')
CalWin.document.write('trth bgcolor=##b2d9ec colspan=7font
face=Verdana color=##006699 size=2' + months[theDate.getMonth()] + ' ' +
theDate.getFullYear() + '/font/th/tr')
CalWin.document.write('tr bgcolor=##ecf4f7thfont face=Verdana
color=##006699 size=1Su/font/ththfont face=Verdana color=##006699
size=1Mo/font/ththfont face=Verdana color=##006699
size=1Tu/font/ththfont face=Verdana color=##006699
size=1We/font/ththfont face=Verdana color=##006699
size=1Th/font/ththfont face=Verdana color=##006699
size=1Fr/font/ththfont face=Verdana color=##006699
size=1Sa/font/th/tr')
for (x=1; x=rowsNeeded; x++){
CalWin.document.write('tr')
for (y=0; y=6; y++){
if (currDay == 1  !printDays  startDay == y)
 printDays = true
CalWin.document.write('td align=center width=14.28%')
if (printDays){
 CalWin.document.write('a
href="" + theDate.getMonth()
+ ',' +currDay + ',' + theDate.getFullYear() + ')' + currDay++ +
'/a/td')
 if (currDay  totalDays[theDate.getMonth()])
printDays = false
}
else
 CalWin.document.write('nbsp;/td')
}
CalWin.document.write('/tr')
} 
CalWin.document.write('formtr bgcolor=##ecf4f7td colspan=7
align=centerinput type=image src="" align=middle
alt= border=0 name=Backward value=
 face=Verdana
color=##006699 size=1 Arrows browse through the months./font input
type=image src="" align=middle alt= border=0
name=Forward value=
>
CalWin.document.write('/table/body/html')
CalWin.document.close()

}

function getNewCal_#attributes.target#(newDir) {
if (newDir == -1){
theDate.setMonth(theDate.getMonth() - 1)
if (theDate.getMonth() == 0){
theDate.setMonth(12)
theDate.setYear(theDate.getYear() - 1)
}
}
else if (newDir == 1){

RE: JS help

2003-12-09 Thread Schuster, Steven
This is the HTML source, I mean the actual TAG source code. Again, the
images need to be fully qualified in here as well but I am sure there is
more.

 
Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:36 PM
To: CF-Talk
Subject: RE: JS help

 
No http://
this is what the source looks like:

htmlheadTitleSelect a Date/titleSTYLE TYPE=text/cssA { color:
#00; font-family:Verdana;font-size:12px; font-weight: normal;
text-decoration: none; padding:0em .5em;}A:hover { color: #cc6600;
background-color: #ecf4f7; padding:0em .5em; }body { background: #ff;
}/STYLE/headbodya name=this/atable align=center height=100%
width=100% border=0 bordercolor=#ff cellpadding=0 cellspacing=0trth
bgcolor=#b2d9ec colspan=7font face=Verdana color=#006699 size=2December
2003/font/th/trtr bgcolor=#ecf4f7thfont face=Verdana
color=#006699 size=1Su/font/ththfont face=Verdana color=#006699
size=1Mo/font/ththfont face=Verdana color=#006699
size=1Tu/font/ththfont face=Verdana color=#006699
size=1We/font/ththfont face=Verdana color=#006699
size=1Th/font/ththfont face=Verdana color=#006699
size=1Fr/font/ththfont face=Verdana color=#006699
size=1Sa/font/th/trtrtd align=center width=14.28%nbsp;/tdtd
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
td align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
td align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
td align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%a
href="">
align=center width=14.28%nbsp;/tdtd align=center
width=14.28%nbsp;/tdtd align=center
width=14.28%nbsp;/td/trformtr bgcolor=#ecf4f7td colspan=7
align=centerinput type=image src="" align=middle
alt= border=0 name=Backward value=
 face=Verdana color=#006699
size=1 Arrows browse through the months./font input type=image
src="" align=middle alt= border=0 name=Forward
value=
>


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:38 AM
To: CF-Talk
Subject: RE: JS help

ugh, take a look at the HTML source after your page is drwan.I bet there
is an HTTP in the window.open call.

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 2:16 PM
To: CF-Talk
Subject: RE: JS help

There is no http anywhere... the calendar is all rendered inside the custom
tag.

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 11:20 AM
To: CF-Talk
Subject: RE: JS help

Make sure the tag code does not use http:// anywhere is one way. 

Steve

-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:10 PM
To: CF-Talk
Subject: OT: JS help

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: JS help

2003-12-09 Thread Cutter (CF-Talk)
The code below is the code of the pop-up page itself, not the custom tag 
which calls it. This Select a Date page must be in the secure area, as 
must the custom tag if it is to use a relative path. If the custom tag 
is not in the same secure area then you will have to change the code of 
the window.open command in the custom tag to call the popup page from 
an absolute path beginning with https:.

Cutter

Tim Do wrote:

 No http://
 this is what the source looks like:
 
 
 htmlheadTitleSelect a Date/titleSTYLE TYPE=text/cssA { color:
 #00; font-family:Verdana;font-size:12px; font-weight: normal;
 text-decoration: none; padding:0em .5em;}A:hover { color: #cc6600;
 background-color: #ecf4f7; padding:0em .5em; }body { background: #ff;
 }/STYLE/headbodya name=this/atable align=center height=100%
 width=100% border=0 bordercolor=#ff cellpadding=0 cellspacing=0trth
 bgcolor=#b2d9ec colspan=7font face=Verdana color=#006699 size=2December
 2003/font/th/trtr bgcolor=#ecf4f7thfont face=Verdana
 color=#006699 size=1Su/font/ththfont face=Verdana color=#006699
 size=1Mo/font/ththfont face=Verdana color=#006699
 size=1Tu/font/ththfont face=Verdana color=#006699
 size=1We/font/ththfont face=Verdana color=#006699
 size=1Th/font/ththfont face=Verdana color=#006699
 size=1Fr/font/ththfont face=Verdana color=#006699
 size=1Sa/font/th/trtrtd align=center width=14.28%nbsp;/tdtd
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 td align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 td align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 td align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%a
 href="">
 align=center width=14.28%nbsp;/tdtd align=center
 width=14.28%nbsp;/tdtd align=center
 width=14.28%nbsp;/td/trformtr bgcolor=#ecf4f7td colspan=7
 align=centerinput type=image src="" align=middle
 alt= border=0 name=Backward value=
  face=Verdana color=#006699
 size=1 Arrows browse through the months./font input type=image
 src="" align=middle alt= border=0 name=Forward
 value=
 >

 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 09, 2003 11:38 AM
 To: CF-Talk
 Subject: RE: JS help
 
 ugh, take a look at the HTML source after your page is drwan.I bet there
 is an HTTP in the window.open call.
 
 -Original Message-
 From: Tim Do [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 09, 2003 2:16 PM
 To: CF-Talk
 Subject: RE: JS help
 
 There is no http anywhere... the calendar is all rendered inside the custom
 tag.
 
 -Original Message-
 From: Schuster, Steven [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 09, 2003 11:20 AM
 To: CF-Talk
 Subject: RE: JS help
 
 Make sure the tag code does not use http:// anywhere is one way.
 
 Steve
 
 -Original Message-
 From: Tim Do [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 09, 2003 2:10 PM
 To: CF-Talk
 Subject: OT: JS help
 
 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: JS help - select all checkboxes

2003-10-23 Thread Randell B Adkins
function CheckAll(){
for( i=0 ; idocument.FileListing.elements.length; i++) {
document.FileListing.elements[i].checked=1;
}
}

something like that.


 [EMAIL PROTECTED] 10/23/03 09:36AM 
This is probably old hat for most, but it's a first for me

I have a page of records laid out in a table that results from a query
... I want the option to delete all records or individual ones.
Therefore, I have checkboxes next to each record.. deleting individual
records was not a problem... but when I tried to use/modify a piece of
js (script found on the net) to do a select all scenario, it throws a
JS
error ... I think because the records are dynamically generated
I've
seen some obscure references on how to do this select all scenario
with multiple, dynamically generated records, but nothing I can put
together to make it work.

Can someone point me in the right direction here... the code I'm using
off the net, which works fine in a static situation, is below , but of
course there's only one input type line in my template

form name=f1
input type=checkbox name=c1 value=1c1-1BR
input type=checkbox name=c1 value=2c1-2BR
input type=checkbox name=c1 value=3c1-3BR
input type=checkbox name=c1 value=4c1-4BR
input type=checkbox name=c1 value=5c1-5BR
input type=checkbox name=c2 value=1c2-1BR
input type=checkbox name=c2 value=2c2-2BR
input type=checkbox name=c2 value=3c2-3BR
input type=checkbox name=c2 value=4c2-4BR
input type=checkbox name=c2 value=5c2-5BR

input type=checkbox name=c3 value=false
 Not CheckedBR
input type=checkbox name=c4 value=true
 CheckedBR
/form
script
function doIt(v)
{
 for(var i=0;idocument.f1.c1.length;i++)
document.f1.c1[i].checked=eval(v);
 for(var i=0;idocument.f1.c2.length;i++)
document.f1.c2[i].checked=eval(v);
 document.f1.c3.checked=false;
 document.f1.c4.checked=false;
}
/script

Tim 


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: JS help - select all checkboxes

2003-10-23 Thread Deanna Schneider
I've used this code before (it works on all checkboxes, regardless of name):
SCRIPT LANGUAGE=_javascript_
!-- Begin
function checkAll() {
 var el = document.forms[0].elements;
 for(var i = 0 ; i  el.length ; ++i) {
if(el[i].type == checkbox) {
el[i].checked = true;
 }
 }
 return true;
}
//End --
/script

!---in the form---
input type=button value=Check All >

- Original Message - 
From: Tim Laureska [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 8:36 AM
Subject: JS help - select all checkboxes

 This is probably old hat for most, but it's a first for me

 I have a page of records laid out in a table that results from a query
 ... I want the option to delete all records or individual ones.
 Therefore, I have checkboxes next to each record.. deleting individual
 records was not a problem... but when I tried to use/modify a piece of
 js (script found on the net) to do a select all scenario, it throws a JS
 error ... I think because the records are dynamically generated I've
 seen some obscure references on how to do this select all scenario
 with multiple, dynamically generated records, but nothing I can put
 together to make it work.

 Can someone point me in the right direction here... the code I'm using
 off the net, which works fine in a static situation, is below , but of
 course there's only one input type line in my template

 form name=f1
 input type=checkbox name=c1 value=1c1-1BR
 input type=checkbox name=c1 value=2c1-2BR
 input type=checkbox name=c1 value=3c1-3BR
 input type=checkbox name=c1 value=4c1-4BR
 input type=checkbox name=c1 value=5c1-5BR
 input type=checkbox name=c2 value=1c2-1BR
 input type=checkbox name=c2 value=2c2-2BR
 input type=checkbox name=c2 value=3c2-3BR
 input type=checkbox name=c2 value=4c2-4BR
 input type=checkbox name=c2 value=5c2-5BR


 input type=checkbox name=c3 value=false
  Not CheckedBR
 input type=checkbox name=c4 value=true
  CheckedBR
 /form
 script
 function doIt(v)
 {
for(var i=0;idocument.f1.c1.length;i++)
 document.f1.c1[i].checked=eval(v);
for(var i=0;idocument.f1.c2.length;i++)
 document.f1.c2[i].checked=eval(v);
document.f1.c3.checked=false;
document.f1.c4.checked=false;
 }
 /script

 Tim



 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: JS help - select all checkboxes

2003-10-23 Thread Ryan Roskilly
The following works in IE 6 I haven't tested in any other environment
though.

a href=""  fncSelectAll();Select All/a | a href="">
 fncClearCheck();Deselect All/a

script language=_javascript_
 function fncSelectAll()
 {
var CollInput = document.all.tags('INPUT')
for ( i = 0 ; i CollInput.length; i++)
CollInput[i].checked = true;

return false;
 }

 function fncClearCheck()
 {
var CollInput = document.all.tags('INPUT')
for ( i = 0 ; i CollInput.length; i++)
CollInput[i].checked = false;

return false;
 }
 /script

-Original Message-
From: Tim Laureska [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 9:36 AM
To: CF-Talk
Subject: JS help - select all checkboxes

This is probably old hat for most, but it's a first for me

I have a page of records laid out in a table that results from a query
... I want the option to delete all records or individual ones.
Therefore, I have checkboxes next to each record.. deleting individual
records was not a problem... but when I tried to use/modify a piece of
js (script found on the net) to do a select all scenario, it throws a JS
error ... I think because the records are dynamically generated I've
seen some obscure references on how to do this select all scenario
with multiple, dynamically generated records, but nothing I can put
together to make it work.

Can someone point me in the right direction here... the code I'm using
off the net, which works fine in a static situation, is below , but of
course there's only one input type line in my template

form name=f1
input type=checkbox name=c1 value=1c1-1BR
input type=checkbox name=c1 value=2c1-2BR
input type=checkbox name=c1 value=3c1-3BR
input type=checkbox name=c1 value=4c1-4BR
input type=checkbox name=c1 value=5c1-5BR
input type=checkbox name=c2 value=1c2-1BR
input type=checkbox name=c2 value=2c2-2BR
input type=checkbox name=c2 value=3c2-3BR
input type=checkbox name=c2 value=4c2-4BR
input type=checkbox name=c2 value=5c2-5BR

input type=checkbox name=c3 value=false
 Not CheckedBR
input type=checkbox name=c4 value=true
 CheckedBR
/form
script
function doIt(v)
{
for(var i=0;idocument.f1.c1.length;i++)
document.f1.c1[i].checked=eval(v);
for(var i=0;idocument.f1.c2.length;i++)
document.f1.c2[i].checked=eval(v);
document.f1.c3.checked=false;
document.f1.c4.checked=false;
}
/script

Tim


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: JS help - select all checkboxes

2003-10-23 Thread Tim Laureska
Deanna... thanks... your script doesn't throw any errors, but only puts
a check in the first record checkbox for some strange reason

-Original Message-
From: Deanna Schneider [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2003 9:40 AM
To: CF-Talk
Subject: Re: JS help - select all checkboxes

I've used this code before (it works on all checkboxes, regardless of
name):
SCRIPT LANGUAGE=_javascript_
!-- Begin
function checkAll() {
 var el = document.forms[0].elements;
 for(var i = 0 ; i  el.length ; ++i) {
if(el[i].type == checkbox) {
el[i].checked = true;
 }
 }
 return true;
}
//End --
/script

!---in the form---
input type=button value=Check All >

- Original Message - 
From: Tim Laureska [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 8:36 AM
Subject: JS help - select all checkboxes

 This is probably old hat for most, but it's a first for me

 I have a page of records laid out in a table that results from a query
 ... I want the option to delete all records or individual ones.
 Therefore, I have checkboxes next to each record.. deleting individual
 records was not a problem... but when I tried to use/modify a piece of
 js (script found on the net) to do a select all scenario, it throws a
JS
 error ... I think because the records are dynamically generated
I've
 seen some obscure references on how to do this select all scenario
 with multiple, dynamically generated records, but nothing I can put
 together to make it work.

 Can someone point me in the right direction here... the code I'm using
 off the net, which works fine in a static situation, is below , but of
 course there's only one input type line in my template

 form name=f1
 input type=checkbox name=c1 value=1c1-1BR
 input type=checkbox name=c1 value=2c1-2BR
 input type=checkbox name=c1 value=3c1-3BR
 input type=checkbox name=c1 value=4c1-4BR
 input type=checkbox name=c1 value=5c1-5BR
 input type=checkbox name=c2 value=1c2-1BR
 input type=checkbox name=c2 value=2c2-2BR
 input type=checkbox name=c2 value=3c2-3BR
 input type=checkbox name=c2 value=4c2-4BR
 input type=checkbox name=c2 value=5c2-5BR


 input type=checkbox name=c3 value=false
  Not CheckedBR
 input type=checkbox name=c4 value=true
  CheckedBR
 /form
 script
 function doIt(v)
 {
for(var i=0;idocument.f1.c1.length;i++)
 document.f1.c1[i].checked=eval(v);
for(var i=0;idocument.f1.c2.length;i++)
 document.f1.c2[i].checked=eval(v);
document.f1.c3.checked=false;
document.f1.c4.checked=false;
 }
 /script

 Tim



 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: JS help - select all checkboxes

2003-10-23 Thread Deanna Schneider
Huh...I just looked at someplace the I implemented it, and the only
difference was that I didn't have a return true included. Here's the code
from a page it's actually used on (with the bonus uncheck script) (as
opposed to my snippets).
SCRIPT LANGUAGE=_javascript_
!-- Begin
function checkAll() {
 var el = document.forms[0].elements;
 for(var i = 0 ; i  el.length ; ++i) {
if(el[i].type == checkbox) {
el[i].checked = true;
 }
 }
}
function unCheckAll() {
var i=0;
for( i=0 ; idocument.forms[0].elements.length; i++) {
document.forms[0].elements[i].checked=0;
}
}
//End --
/script

- Original Message - 
From: Tim Laureska [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 8:54 AM
Subject: RE: JS help - select all checkboxes

 Deanna... thanks... your script doesn't throw any errors, but only puts
 a check in the first record checkbox for some strange reason

 -Original Message-
 From: Deanna Schneider [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 23, 2003 9:40 AM
 To: CF-Talk
 Subject: Re: JS help - select all checkboxes

 I've used this code before (it works on all checkboxes, regardless of
 name):
 SCRIPT LANGUAGE=_javascript_
 !-- Begin
 function checkAll() {
var el = document.forms[0].elements;
for(var i = 0 ; i  el.length ; ++i) {
if(el[i].type == checkbox) {
 el[i].checked = true;
}
}
return true;
 }
 //End --
 /script

 !---in the form---
 input type=button value=Check All >


 - Original Message - 
 From: Tim Laureska [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Thursday, October 23, 2003 8:36 AM
 Subject: JS help - select all checkboxes


  This is probably old hat for most, but it's a first for me
 
  I have a page of records laid out in a table that results from a query
  ... I want the option to delete all records or individual ones.
  Therefore, I have checkboxes next to each record.. deleting individual
  records was not a problem... but when I tried to use/modify a piece of
  js (script found on the net) to do a select all scenario, it throws a
 JS
  error ... I think because the records are dynamically generated
 I've
  seen some obscure references on how to do this select all scenario
  with multiple, dynamically generated records, but nothing I can put
  together to make it work.
 
  Can someone point me in the right direction here... the code I'm using
  off the net, which works fine in a static situation, is below , but of
  course there's only one input type line in my template
 
  form name=f1
  input type=checkbox name=c1 value=1c1-1BR
  input type=checkbox name=c1 value=2c1-2BR
  input type=checkbox name=c1 value=3c1-3BR
  input type=checkbox name=c1 value=4c1-4BR
  input type=checkbox name=c1 value=5c1-5BR
  input type=checkbox name=c2 value=1c2-1BR
  input type=checkbox name=c2 value=2c2-2BR
  input type=checkbox name=c2 value=3c2-3BR
  input type=checkbox name=c2 value=4c2-4BR
  input type=checkbox name=c2 value=5c2-5BR
 
 
  input type=checkbox name=c3 value=false
   Not CheckedBR
  input type=checkbox name=c4 value=true
   CheckedBR
  /form
  script
  function doIt(v)
  {
 for(var i=0;idocument.f1.c1.length;i++)
  document.f1.c1[i].checked=eval(v);
 for(var i=0;idocument.f1.c2.length;i++)
  document.f1.c2[i].checked=eval(v);
 document.f1.c3.checked=false;
 document.f1.c4.checked=false;
  }
  /script
 
  Tim
 
 
 
 

 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: JS help

2003-06-04 Thread Michael Tangorre
Give the tag an ID and then use this function:

function getText(id) {
collection = document.all;
for (i = 0; i  collection.length; i++) {
 if (collection[i].id == id) {
  return(collection[i].innerText);
 }
}
return(Not found);
}

HTH,

Mike



- Original Message - 
From: Kris Pilles [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 11:24 AM
Subject: OT: JS help


 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 a
 href=mylink.htm?search=JavascripforMyValueThevalue/a

 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=subscribeforumid=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: JS help

2003-06-04 Thread David Collie (itndac)
If the link has an id attached to it, you can user 

document.getElementByID[myLink].innerHTML

Or something like that

DC

 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 a 
 href=mylink.htm?search=JavascripforMyValueThevalue/a
 
 Any help would be awesome.
 
 I need to do this with JS only
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

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



RE: JS help

2003-06-04 Thread Andre Mohamed
innerText is what you are after.

You'll need to locate the relevant anchor object using DOM and then once
you have that object it is just:

anchorObject.innerText;


That should set you on your way,

André
-Original Message-
From: Kris Pilles [mailto:[EMAIL PROTECTED] 
Sent: 03 June 2003 16:25
To: CF-Talk
Subject: OT: JS help

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 a
href=mylink.htm?search=JavascripforMyValueThevalue/a

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=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

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



RE: JS help

2003-06-04 Thread Costas Piliotis
And btw...  Limited nutscrape 4.xx support for that commmand btw...

-Original Message-
From: Andre Mohamed [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 8:30 AM
To: CF-Talk
Subject: RE: JS help


innerText is what you are after.

You'll need to locate the relevant anchor object using DOM and then once you
have that object it is just:

anchorObject.innerText;


That should set you on your way,

André
-Original Message-
From: Kris Pilles [mailto:[EMAIL PROTECTED] 
Sent: 03 June 2003 16:25
To: CF-Talk
Subject: OT: JS help

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 a
href=mylink.htm?search=JavascripforMyValueThevalue/a

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=subscribeforumid=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.
http://www.cfhosting.com

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



Re: JS Help

2002-04-24 Thread Marlon Moyer

shouldn't this line be:

if (eval(tempitem) == true)

- Original Message -
From: Michael Ross [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 10:10 AM
Subject: JS Help


 I am looking for some help on this one.

 I have a form with 41 questions.  Each question has 6 radio boxes (only
choose one).  The name scheme looks like this

TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=1/FONT/TD
TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=2/FONT/TD
TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=3/FONT/TD
TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=4/FONT/TD
TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=5/FONT/TD
TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=6/FONT/TD

 everything looks the same for each question(just change the name to
question33 or whatever).  I have some JS to make sure they fill out atleast
1 box per question but its not working here is what I have.

 function validate ()
 {
  alert(document.evall.QUESTION1[1].checked);
  var tempitem;
  var optionselected;
  for (i=1 ; i  7 ; i++) {
   optionselected = false;
   for (j=0 ; j  6 ; j++) {
tempitem = document.evall.QUESTION + i + [ + j + ].checked
if (eval(tempitem) == false) {
optionselected = true;
}
  }
   if (optionselected == false){
alert (Please evaluate Question  + i + .);
return false;
   }
 }
  return false;
 }

 Anyone see what I am doing wrong, or have a better way to do it?

 thanks

 mike

 
__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: JS Help

2002-04-24 Thread Pascal Peters

Shouldn't the last line be return true; ??

-Original Message-
From: Michael Ross [mailto:[EMAIL PROTECTED]] 
Sent: woensdag 24 april 2002 17:10
To: CF-Talk
Subject: JS Help


I am looking for some help on this one.

I have a form with 41 questions.  Each question has 6 radio boxes (only
choose one).  The name scheme looks like this

   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=1/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=2/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=3/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=4/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=5/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=6/FONT/TD

everything looks the same for each question(just change the name to
question33 or whatever).  I have some JS to make sure they fill out
atleast 1 box per question but its not working here is what I have.

function validate ()
{
 alert(document.evall.QUESTION1[1].checked);
 var tempitem;
 var optionselected;
 for (i=1 ; i  7 ; i++) {
  optionselected = false;
  for (j=0 ; j  6 ; j++) {
   tempitem = document.evall.QUESTION + i + [ + j + ].checked
   if (eval(tempitem) == false) {
   optionselected = true;
   }
 }
  if (optionselected == false){
   alert (Please evaluate Question  + i + .);
   return false;
  }
}
 return false;
}

Anyone see what I am doing wrong, or have a better way to do it?

thanks

mike


__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: JS Help

2002-04-24 Thread Michael Ross

ya it is sorry, I was playing with it.  My real code has it as true...

 [EMAIL PROTECTED] 04/24/02 11:27AM 
shouldn't this line be:

if (eval(tempitem) == true)

- Original Message -
From: Michael Ross [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 10:10 AM
Subject: JS Help


 I am looking for some help on this one.

 I have a form with 41 questions.  Each question has 6 radio boxes (only
choose one).  The name scheme looks like this

TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=1/FONT/TD
TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=2/FONT/TD
TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=3/FONT/TD
TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=4/FONT/TD
TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=5/FONT/TD
TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=6/FONT/TD

 everything looks the same for each question(just change the name to
question33 or whatever).  I have some JS to make sure they fill out atleast
1 box per question but its not working here is what I have.

 function validate ()
 {
  alert(document.evall.QUESTION1[1].checked);
  var tempitem;
  var optionselected;
  for (i=1 ; i  7 ; i++) {
   optionselected = false;
   for (j=0 ; j  6 ; j++) {
tempitem = document.evall.QUESTION + i + [ + j + ].checked
if (eval(tempitem) == false) {
optionselected = true;
}
  }
   if (optionselected == false){
alert (Please evaluate Question  + i + .);
return false;
   }
 }
  return false;
 }

 Anyone see what I am doing wrong, or have a better way to do it?

 thanks

 mike

 

__
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: JS Help

2002-04-24 Thread Michael Ross

anyone else able to help??  I can't get this last little F#%$ing part to work.

thank you ahead of time


 [EMAIL PROTECTED] 04/24/02 11:35AM 
Shouldn't the last line be return true; ??

-Original Message-
From: Michael Ross [mailto:[EMAIL PROTECTED]] 
Sent: woensdag 24 april 2002 17:10
To: CF-Talk
Subject: JS Help


I am looking for some help on this one.

I have a form with 41 questions.  Each question has 6 radio boxes (only
choose one).  The name scheme looks like this

   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=1/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=2/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=3/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=4/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=5/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=6/FONT/TD

everything looks the same for each question(just change the name to
question33 or whatever).  I have some JS to make sure they fill out
atleast 1 box per question but its not working here is what I have.

function validate ()
{
alert(document.evall.QUESTION1[1].checked);
var tempitem;
var optionselected;
for (i=1 ; i  7 ; i++) {
  optionselected = false;
  for (j=0 ; j  6 ; j++) {
   tempitem = document.evall.QUESTION + i + [ + j + ].checked
   if (eval(tempitem) == false) {
   optionselected = true;
   }
 }
  if (optionselected == false){
   alert (Please evaluate Question  + i + .);
   return false;
  }
}
return false;
}

Anyone see what I am doing wrong, or have a better way to do it?

thanks

mike



__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: JS Help

2002-04-24 Thread Michael Ross

ya so forget about it I was calling a function called Validate and I was defining a 
function called validate..DAMM I HATE THAT!!

 [EMAIL PROTECTED] 04/24/02 01:51PM 
anyone else able to help??  I can't get this last little F#%$ing part to work.

thank you ahead of time


 [EMAIL PROTECTED] 04/24/02 11:35AM 
Shouldn't the last line be return true; ??

-Original Message-
From: Michael Ross [mailto:[EMAIL PROTECTED]] 
Sent: woensdag 24 april 2002 17:10
To: CF-Talk
Subject: JS Help


I am looking for some help on this one.

I have a form with 41 questions.  Each question has 6 radio boxes (only
choose one).  The name scheme looks like this

   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=1/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=2/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=3/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=4/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=5/FONT/TD
   TDFONT SIZE=1INPUT TYPE=RADIO NAME=QUESTION1
VALUE=6/FONT/TD

everything looks the same for each question(just change the name to
question33 or whatever).  I have some JS to make sure they fill out
atleast 1 box per question but its not working here is what I have.

function validate ()
{
alert(document.evall.QUESTION1[1].checked);
var tempitem;
var optionselected;
for (i=1 ; i  7 ; i++) {
  optionselected = false;
  for (j=0 ; j  6 ; j++) {
   tempitem = document.evall.QUESTION + i + [ + j + ].checked
   if (eval(tempitem) == false) {
   optionselected = true;
   }
 }
  if (optionselected == false){
   alert (Please evaluate Question  + i + .);
   return false;
  }
}
return false;
}

Anyone see what I am doing wrong, or have a better way to do it?

thanks

mike




__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists