Did you read my post?
Ben Johansen - http://www.pcforge.com
Authorized Witango & MDaemon Reseller
Available for Witango Developement
-----Original Message-----
From: Steve Smith
[mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 12:19
AM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk:
_javascript_ to Witango
No, I'm still waiting for
an answer. I have created a workaround that involved three separate files but I
would like to condense that down to one file that can use the value coming from
the _javascript_ parameter.
Are you looking for the same thing or do you have a possible solution for me?
Please let me know.
Thanks,
Steve Smith
Oakbridge Information Solutions
Office: (519) 624-4388
GTA: (416) 606-3885
Fax: (519) 624-3353
Cell: (416) 606-3885
Email: [EMAIL PROTECTED]/color>
Web: http://www.oakbridge.ca/color>
On Thursday, July 1, 2004, at 06:37 PM, Charles Brown wrote:
Steve, did you ever get your question
answered?
Steve Smith wrote:
No I think what I'm trying to do is the reverse of what you are describing. I
want to take the value of the 'info' parameter that is passed when the
_javascript_ is called (i.e. returns) and pass it into the taf that I am calling.
I have created a popup.taf that will display shipping information, returns
information, and taxes information. I have set up methods for each in my tcf. I
want to pass the value that is in 'info' into a Witango variable and use it in
the <@CALL...> tag such as:
<@CALLMETHOD local$product "<@VAR
NAME='request$r_myvarname'>" ENCODING=NONE>
so that when the value 'returns' is passed in the 'info' parameter, like so:
<A HREF="">/color>"_javascript_:popupwin('popup.taf','returns',750,500);"/color>
Information'; return true"
'; return true">Return
Policy</A>
I end up with:
<@CALLMETHOD local$product "returns" ENCODING=NONE>
So another way of asking my question is how to I get the value of what is in
'info' into <@VAR NAME='request$r_myvarname'>?
Please let me know.
Thanks,
Steve Smith
Oakbridge Information Solutions
Office: (519) 624-4388
GTA: (416) 606-3885
Fax: (519) 624-3353
Cell: (416) 606-3885
Email: /color>[EMAIL PROTECTED]
/color>Web: /color>http://www.oakbridge.ca
/color>On Wednesday, June 30, 2004, at
10:59 AM, Wolf, Gene wrote:
When you are creating your VAR, include the value of the
variable you want to send to your program and code it as an arg. For example,
/smaller>
{var fileInfo = file
+"?yMax="+yMax+"&<@USERREFERENCEARGUMENT>";};
Hope this is what you're looking for.
-----Original Message-----
From: Steve Smith [/smaller>/color>mailto:[EMAIL PROTECTED]/smaller>/color>]
Sent: Wednesday, June 30, 2004
10:54 AM
To: WiTango List
Subject: Witango-Talk: _javascript_
to Witango
/smaller>Forgive my basic level question but how can I pass a _javascript_
variable to Witango? I'm calling a script that creates a popup and when I call
it I pass some parameters. I'd like one of those parameters to be a value that
I can assign to a Witango variable that will be used within the popup.
The calling code is:
<A HREF="">/color>"_javascript_:popupwin('popup.taf','returns',750,500);"/color>
Information'; return true"
'; return true">Return
Policy</A>
and the _javascript_ code is:
function popupwin(file,info,x,y) {
{var fileInfo = file +"?<@USERREFERENCEARGUMENT>";};
var winName = info + "xxxxx";
var xMax = screen.width, yMax = screen.height;
var xSiz = x, ySiz = y;
var xPos = (xMax - xSiz)/2, yPos = (yMax - ySiz)/5;
infoFile = window.open(fileInfo,winName,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width="
+ xSiz + ",height=" + ySiz + ",screenX=" + xPos +
",screenY=" + yPos + ",left=" + xPos + ",top=" +
yPos);
}
I want to take the value from the 'info' parameter and assign it to a Witango
variable.
Can somebody point me in the right direction?
Thanks,
/color>