Hi Steve,
When putting a Witango Variable inside a "string" used in a JavaScript
variable, you use ENCODING=JAVASCRIPT to escape any characters that
JavaScript will complain about. Example:
alert('<@VAR local$some_var ENCODING=JAVASCRIPT>');
But in your case, where the Witango Variable contains JavaScript - then try:
<@VAR local$OtherHeader ENCODING=NONE>
Hope this helps. Cheers......
Scott Cadillac,
Witango.org - http://witango.org
403-281-6090 - [EMAIL PROTECTED]
--
Information for the Witango Developer Community
---------------------
XML-Extranet - http://xml-extra.net
403-281-6090 - [EMAIL PROTECTED]
--
Well-formed Development (for hire)
---------------------
----- Original Message -----
From: "Fogelson, Steve" <[EMAIL PROTECTED]>
To: "Witango User Group (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 3:57 PM
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