not so fast <@literal>
 
if you use <@literal> you won't be able to use meta tags within the _javascript_. If you're using this _javascript_ over and over again you could store it in an include file:

<@INCLUDE FILE=<@APPFILEPATH>includes/script.inc>

and thus only need to change it once if it needs to be changed.
 
If you don't need to include metatags then <@literal> will do.
 
----- Original Message -----
From: Tom Ferguson
To: [EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 10:04 AM
Subject: RE: Witango-Talk: _javascript_ as a Variable

 
I'm sorry, I couldn't resist...


> -----Original Message-----
> From: Ben Johansen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 02, 2003 6:09 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Witango-Talk: _javascript_ as a Variable
>
>
> This is a job for
>
> <@LITERAL>
>
> Ben Johansen - http://www.pcforge.com
> Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm
> Authorized MDaemon Mail Server Reseller
> http://www.pcforge.com/AltN.htm
>
>
> -----Original Message-----
> From: Fogelson, Steve [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 02, 2003 2:57 PM
> To: Witango User Group (E-mail)
> Subject: Witango-Talk: _javascript_ as a Variable
>
> Is their a way to assign _javascript_ to a variable? IE:
>
> <@assign local$OtherHeader value="
>
> <script language="_javascript_">
> <!--
> function newWindow(CatID) {
>   popupWindow = window.open("<@var domain$CGI><@var
> domain$RootPath>searchapc.taf?Cat_ID=" + CatID +
> "&<@userreferenceargument>", "newWin", "toolbar=yes, scrollbars=yes,
> resizable=yes, menubar=yes, status=yes, directories=yes, location=yes,
> width=700, height=500, screenX=0, screenY=0")
> }
> // -->
> </script>
>
> ">
>
> The problem I see are all the special characters <, >, ", ', etc. Anyone
> do
> this and find a way around it?
>
> Thanks in advance
>
> Steve Fogelson
> Internet Commerce Solutions
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body



Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to