[OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Mick Knutson
I have a function "function tooltips()" and the call to that function is "return 
tooltip('tooltip.msg.name', 'tooltip.title.name');"

in my function, how do I access each of the arguments? Is it something like args[0], 
and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---


RE: [OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Daniel Smeltzer
In your function definition, just declare the input parameters and use
those names to refer to them, i.e.:

Function tooltips(message, title) {
  // now the input parameters are available as message and title
}

Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 10:50 AM
To: struts
Subject: [OT] off topic, but I have a quick JavaScript question
please...


I have a function "function tooltips()" and the call to that function is
"return tooltip('tooltip.msg.name', 'tooltip.title.name');"

in my function, how do I access each of the arguments? Is it something
like args[0], and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---



Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is intended solely for 
the addressees named above.  If you are not a named recipient, an individual 
specifically authorized to receive this communication, or if this message has been 
addressed to you in error, do not read, disclose, reproduce,  or otherwise use this 
transmission in any manner.  If you have received this transmission in error, please 
alert the sender by replying to the e-mail or by contacting the sender by phone.  We 
also request that you immediately delete this message, and attachments, if any.  This 
disclaimer shall not be construed in any way to grant permission to transmit 
confidential information via this firm's e-mail system. 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Kevin Peters
There should be an arguments object.  Try arguments[0] and arguments[1].

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 11:50 AM
To: struts
Subject: [OT] off topic, but I have a quick JavaScript question
please...


I have a function "function tooltips()" and the call to that function is "return 
tooltip('tooltip.msg.name', 'tooltip.title.name');"

in my function, how do I access each of the arguments? Is it something like args[0], 
and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Mick Knutson
Thank you, but now another issue:

How do I dynamically use that argument in my ???

function tooltip( tooltip_key )
{
return overlib(  ''
, STICKY, CAPTION
, ''
, CENTER
  );
}


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: "Daniel Smeltzer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 8:52 AM
Subject: RE: [OT] off topic, but I have a quick JavaScript question
please...


In your function definition, just declare the input parameters and use
those names to refer to them, i.e.:

Function tooltips(message, title) {
  // now the input parameters are available as message and title
}

Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:50 AM
To: struts
Subject: [OT] off topic, but I have a quick JavaScript question
please...


I have a function "function tooltips()" and the call to that function is
"return tooltip('tooltip.msg.name', 'tooltip.title.name');"

in my function, how do I access each of the arguments? Is it something
like args[0], and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---



Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is intended
solely for the addressees named above.  If you are not a named recipient, an
individual specifically authorized to receive this communication, or if this
message has been addressed to you in error, do not read, disclose,
reproduce,  or otherwise use this transmission in any manner.  If you have
received this transmission in error, please alert the sender by replying to
the e-mail or by contacting the sender by phone.  We also request that you
immediately delete this message, and attachments, if any.  This disclaimer
shall not be construed in any way to grant permission to transmit
confidential information via this firm's e-mail system.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Daniel Smeltzer
Well, the  tag would need to be where the function is
called, not where it is defined.  The struts tags will execute on the
server side and the JavaScript executes on the client side.  When the
JavaScript runs, all the struts tags will have been executed and
converted into text.  So, you'd need something like:

function tooltip(message) {
return overlib(message, STICKY, CAPTION, message, CENTER);
}


And somewhere else:

... onMouseOver="return tooltip('')" ...


Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 10:59 AM
To: Struts Users Mailing List
Subject: Re: [OT] off topic, but I have a quick JavaScript question
please...


Thank you, but now another issue:

How do I dynamically use that argument in my ???

function tooltip( tooltip_key )
{
return overlib(  ''
, STICKY, CAPTION
, ''
, CENTER
  );
}


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: "Daniel Smeltzer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 8:52 AM
Subject: RE: [OT] off topic, but I have a quick JavaScript question
please...


In your function definition, just declare the input parameters and use
those names to refer to them, i.e.:

Function tooltips(message, title) {
  // now the input parameters are available as message and title }

Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:50 AM
To: struts
Subject: [OT] off topic, but I have a quick JavaScript question
please...


I have a function "function tooltips()" and the call to that function is
"return tooltip('tooltip.msg.name', 'tooltip.title.name');"

in my function, how do I access each of the arguments? Is it something
like args[0], and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---



Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is
intended solely for the addressees named above.  If you are not a named
recipient, an individual specifically authorized to receive this
communication, or if this message has been addressed to you in error, do
not read, disclose, reproduce,  or otherwise use this transmission in
any manner.  If you have received this transmission in error, please
alert the sender by replying to the e-mail or by contacting the sender
by phone.  We also request that you immediately delete this message, and
attachments, if any.  This disclaimer shall not be construed in any way
to grant permission to transmit confidential information via this firm's
e-mail system.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is intended solely for 
the addressees named above.  If you are not a named recipient, an individual 
specifically authorized to receive this communication, or if this message has been 
addressed to you in error, do not read, disclose, reproduce,  or otherwise use this 
transmission in any manner.  If you have received this transmission in error, please 
alert the sender by replying to the e-mail or by contacting the sender by phone.  We 
also request that you immediately delete this message, and attachments, if any.  This 
disclaimer shall not be construed in any way to grant permission to transmit 
confidential information via this firm's e-mail system. 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Mick Knutson
It just makes my code much cleaner inside my function. But I do understand
the way you described.

Thanks

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: "Daniel Smeltzer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 9:06 AM
Subject: RE: [OT] off topic, but I have a quick JavaScript question
please...


Well, the  tag would need to be where the function is
called, not where it is defined.  The struts tags will execute on the
server side and the JavaScript executes on the client side.  When the
JavaScript runs, all the struts tags will have been executed and
converted into text.  So, you'd need something like:

function tooltip(message) {
return overlib(message, STICKY, CAPTION, message, CENTER);
}


And somewhere else:

... onMouseOver="return tooltip('')" ...


Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:59 AM
To: Struts Users Mailing List
Subject: Re: [OT] off topic, but I have a quick JavaScript question
please...


Thank you, but now another issue:

How do I dynamically use that argument in my ???

function tooltip( tooltip_key )
{
return overlib(  ''
, STICKY, CAPTION
, ''
, CENTER
  );
}


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: "Daniel Smeltzer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 8:52 AM
Subject: RE: [OT] off topic, but I have a quick JavaScript question
please...


In your function definition, just declare the input parameters and use
those names to refer to them, i.e.:

Function tooltips(message, title) {
  // now the input parameters are available as message and title }

Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:50 AM
To: struts
Subject: [OT] off topic, but I have a quick JavaScript question
please...


I have a function "function tooltips()" and the call to that function is
"return tooltip('tooltip.msg.name', 'tooltip.title.name');"

in my function, how do I access each of the arguments? Is it something
like args[0], and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---



Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is
intended solely for the addressees named above.  If you are not a named
recipient, an individual specifically authorized to receive this
communication, or if this message has been addressed to you in error, do
not read, disclose, reproduce,  or otherwise use this transmission in
any manner.  If you have received this transmission in error, please
alert the sender by replying to the e-mail or by contacting the sender
by phone.  We also request that you immediately delete this message, and
attachments, if any.  This disclaimer shall not be construed in any way
to grant permission to transmit confidential information via this firm's
e-mail system.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is intended
solely for the addressees named above.  If you are not a named recipient, an
individual specifically authorized to receive this communication, or if this
message has been addressed to you in error, do not read, disclose,
reproduce,  or otherwise use this transmission in any manner.  If you have
received this transmission in error, please alert the sender by replying to
the e-mail or by contacting the sender by phone.  We also request that you
immediately delete this message, and attachments, if any.  This disclaimer
shall not be construed in any way to grant permission to transmit
confidential information via this firm's e-mail system.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Jason Lea
If you are not worried about older browsers there is another way to get 
tooltips without using JavaScript.  Browsers with good HTML4.01 support 
will display 'title' attributes as tooltips.  Form tags (and lots of 
other tags in HTML 4.01) allow you to specify a title.

If you use Struts tags you can use 'titleKey' to look up the key from 
the message bundle...  eg



Mick Knutson wrote:
It just makes my code much cleaner inside my function. But I do understand
the way you described.
Thanks

---
Thanks
Mick Knutson
http://www.baselogic.com
+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---
- Original Message - 
From: "Daniel Smeltzer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 9:06 AM
Subject: RE: [OT] off topic, but I have a quick JavaScript question
please...

Well, the  tag would need to be where the function is
called, not where it is defined.  The struts tags will execute on the
server side and the JavaScript executes on the client side.  When the
JavaScript runs, all the struts tags will have been executed and
converted into text.  So, you'd need something like:
function tooltip(message) {
return overlib(message, STICKY, CAPTION, message, CENTER);
}
And somewhere else:

... onMouseOver="return tooltip('')" ...
Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:59 AM
To: Struts Users Mailing List
Subject: Re: [OT] off topic, but I have a quick JavaScript question
please...
Thank you, but now another issue:

How do I dynamically use that argument in my ???

function tooltip( tooltip_key )
{
return overlib(  ''
, STICKY, CAPTION
, ''
, CENTER
  );
}
---
Thanks
Mick Knutson
http://www.baselogic.com
+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---
- Original Message - 
From: "Daniel Smeltzer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 8:52 AM
Subject: RE: [OT] off topic, but I have a quick JavaScript question
please...

In your function definition, just declare the input parameters and use
those names to refer to them, i.e.:
Function tooltips(message, title) {
  // now the input parameters are available as message and title }
Daniel

-Original Message-----
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:50 AM
To: struts
Subject: [OT] off topic, but I have a quick JavaScript question
please...
I have a function "function tooltips()" and the call to that function is
"return tooltip('tooltip.msg.name', 'tooltip.title.name');"
in my function, how do I access each of the arguments? Is it something
like args[0], and args[1]?
---
Thanks
Mick Knutson
http://www.baselogic.com
+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---


--
Jason Lea
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]