RE: Witango-Talk: Setting Witango variables inside of Javascript

2004-05-08 Thread Troy Sosamon
Title: Setting Witango variables inside of Javascript








Gene,



You need to make a form that does a submit
on load to return the values back to the server.

I attached a _javascript_ that returns the
window size that someone posted here a while ago.



Now you need to make a form with the 2
fields height, width and a submit button. Put your _javascript_ in to
populate the 2 fields and then put an onload event in the body tag to submit
the form. It would look something like:



[body >



I always have to mess around with these
things for a while to get them exactly right so they work.

I am sure there are others on the list
that can give you the correct syntax.



This is a method to get values from the
client back to the server.



Troy Sosamon















From: Alan Wolfe
[mailto:[EMAIL PROTECTED] 
Sent: Friday, May 07, 2004 11:41
AM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: Setting
Witango variables inside of _javascript_







It sounds like you need the _javascript_ that detects the
screen size on the login page, and set it to hidden args like you were saying
you've done and then when they click ok to login or whatever, then you will
have your screen size as args.











This works as long as you dont need the screen size known
when showing the login page (:











do you need to know at the login page?







- Original Message - 





From: Wolf,
Gene 





To: [EMAIL PROTECTED]






Sent: Friday, May 07,
2004 10:25 AM





Subject: RE: Witango-Talk:
Setting Witango variables inside of _javascript_











 Hey Alan, thanks for the reply.
What I see this doing is that a person logs in.In the login
programI want to call a TCF and capture his/her screen resolution. When
the log in is complete I want to send that screen resolution (really a var set
to either high or low) back to the calling program. 











 The TCF only needs to execute
a _javascript_, which is working fine, and set a Witango variable, which I have
no idea how to do. Any ideas how to accomplish this?





-Original Message-
From: Alan Wolfe
[mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 12:55
PM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: Setting
Witango variables inside of _javascript_



Hi Gene,











The problem with setting witango variables in _javascript_ is
that the _javascript_ isbrowser side while assigning witango variables is
server side.











So, the problem is how do you transmit the data from browser
to server?











There's a couple different tricks to doing this, but it
depends on what your requirements are.











How do you need this to function?







- Original Message - 





From: Wolf,
Gene 





To: [EMAIL PROTECTED]






Sent: Friday, May 07,
2004 8:41 AM





Subject: Witango-Talk:
Setting Witango variables inside of _javascript_










I've searched the discussion list and I know this has been asked before,
because I believe I've asked it. *laughs* Here's what I would like to do. I
want to call a tcf which will query the resolution setting on a users screen
and set a Witango variable to be returned to the calling program. 

I
have the _javascript_ working just fine. We know the resolution. Now I want to
assign that value to a Witango variable and here's where I'm stumbling. How do
I do that assignment in _javascript_ so I can return to the main program? In the
past I have set up a form and set the value of a hidden field and then used the
@ARG value but that does not pertain in this case. I have looked at the @Setparam
metatag but I'll be damned if I can figure it out.


Any help will be appreciated! 



Gene Wolf

Business
Systems Analyst, TLMN 
DRS
Optronics, Inc. 
2330 Commerce Park Drive
 
Palm Bay, Florida
 32905 
Phone:
321-309-0685 
E-mail:
[EMAIL PROTECTED] 



TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf








TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
Title: clientheight,width test






User Name:


Password: 









TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


Witango-Talk: Setting Witango variables inside of Javascript

2004-05-07 Thread Wolf, Gene
Title: Setting Witango variables inside of Javascript






 I've searched the discussion list and I know this has been asked before, because I believe I've asked it. *laughs* Here's what I would like to do. I want to call a tcf which will query the resolution setting on a users screen and set a Witango variable to be returned to the calling program. 

I have the _javascript_ working just fine. We know the resolution. Now I want to assign that value to a Witango variable and here's where I'm stumbling. How do I do that assignment in _javascript_ so I can return to the main program? In the past I have set up a form and set the value of a hidden field and then used the @ARG value but that does not pertain in this case. I have looked at the @Setparam metatag but I'll be damned if I can figure it out.

 Any help will be appreciated!



Gene Wolf

Business Systems Analyst, TLMN

DRS Optronics, Inc.

2330 Commerce Park Drive

Palm Bay, Florida 32905

Phone: 321-309-0685

E-mail: [EMAIL PROTECTED]







TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


Re: Witango-Talk: Setting Witango variables inside of Javascript

2004-05-07 Thread Alan Wolfe
Title: Setting Witango variables inside of Javascript



Hi Gene,

The problem with setting witango variables in 
_javascript_ is that the _javascript_ isbrowser side while assigning witango 
variables is server side.

So, the problem is how do you transmit the data 
from browser to server?

There's a couple different tricks to doing this, 
but it depends on what your requirements are.

How do you need this to function?

  - Original Message - 
  From: 
  Wolf, Gene 
  To: [EMAIL PROTECTED] 
  Sent: Friday, May 07, 2004 8:41 AM
  Subject: Witango-Talk: Setting Witango 
  variables inside of _javascript_
  
   I've searched the discussion list and 
  I know this has been asked before, because I believe I've asked it. *laughs* 
  Here's what I would like to do. I want to call a tcf which will query the 
  resolution setting on a users screen and set a Witango variable to be returned 
  to the calling program. 
  I have the _javascript_ working just fine. We know 
  the resolution. Now I want to assign that value to a Witango variable and 
  here's where I'm stumbling. How do I do that assignment in _javascript_ so I can 
  return to the main program? In the past I have set up a form and set the value 
  of a hidden field and then used the @ARG value but that does not pertain in 
  this case. I have looked at the @Setparam metatag but I'll be damned if I can 
  figure it out.
   Any help will be appreciated! 

  Gene Wolf Business Systems Analyst, TLMN DRS Optronics, Inc. 2330 Commerce 
  Park Drive Palm Bay, Florida 
  32905 Phone: 321-309-0685 E-mail: [EMAIL PROTECTED] 
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf




TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


Re: Witango-Talk: Setting Witango variables inside of Javascript

2004-05-07 Thread John McGowan
Don't get confused between server side javascript and client side (what 
you're using to get the resolution)

What you need to do is hit the server either with hidden post args in a 
form or url parameters.

the tricky part is doing it without refreshing the page, or popping up a 
window.

Try an IFrame

/John



Wolf, Gene wrote:

   I've searched the discussion list and I know this has been asked 
before, because I believe I've asked it. *laughs* Here's what I would 
like to do. I want to call a tcf which will query the resolution 
setting on a users screen and set a Witango variable to be returned to 
the calling program.

I have the javascript working just fine. We know the resolution. Now I 
want to assign that value to a Witango variable and here's where I'm 
stumbling. How do I do that assignment in javascript so I can return 
to the main program? In the past I have set up a form and set the 
value of a hidden field and then used the @ARG value but that does not 
pertain in this case. I have looked at the @Setparam metatag but I'll 
be damned if I can figure it out.

  Any help will be appreciated!

*/Gene Wolf/*
Business Systems Analyst, TLMN
DRS Optronics, Inc.
2330 Commerce Park Drive
Palm Bay, Florida  32905
Phone: 321-309-0685
E-mail: [EMAIL PROTECTED]

TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
 


TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


RE: Witango-Talk: Setting Witango variables inside of Javascript

2004-05-07 Thread Wolf, Gene
Title: Setting Witango variables inside of Javascript



 Hey Alan, thanks for the reply. What I see this doing is 
that a person logs in.In the login programI want to call a TCF and 
capture his/her screen resolution. When the log in is complete I want to send 
that screen resolution (really a var set to either high or low) back to the 
calling program. 

 The TCF only needs to execute a _javascript_, which is working 
fine, and set a Witango variable, which I have no idea how to do. Any ideas how 
to accomplish this?

  -Original Message-From: Alan Wolfe 
  [mailto:[EMAIL PROTECTED]Sent: Friday, May 07, 2004 12:55 
  PMTo: [EMAIL PROTECTED]Subject: Re: Witango-Talk: 
  Setting Witango variables inside of _javascript_
  Hi Gene,
  
  The problem with setting witango variables in 
  _javascript_ is that the _javascript_ isbrowser side while assigning witango 
  variables is server side.
  
  So, the problem is how do you transmit the data 
  from browser to server?
  
  There's a couple different tricks to doing this, 
  but it depends on what your requirements are.
  
  How do you need this to function?
  
- Original Message - 
From: 
Wolf, Gene 
To: [EMAIL PROTECTED] 
Sent: Friday, May 07, 2004 8:41 
AM
Subject: Witango-Talk: Setting Witango 
variables inside of _javascript_

 I've searched the discussion list 
and I know this has been asked before, because I believe I've asked it. 
*laughs* Here's what I would like to do. I want to call a tcf which will 
query the resolution setting on a users screen and set a Witango variable to 
be returned to the calling program. 
I have the _javascript_ working just fine. We know 
the resolution. Now I want to assign that value to a Witango variable and 
here's where I'm stumbling. How do I do that assignment in _javascript_ so I 
can return to the main program? In the past I have set up a form and set the 
value of a hidden field and then used the @ARG value but that does not 
pertain in this case. I have looked at the @Setparam metatag but I'll be 
damned if I can figure it out.
 Any help will be appreciated! 

Gene Wolf Business Systems Analyst, TLMN DRS Optronics, Inc. 2330 Commerce 
Park Drive Palm Bay, Florida 
32905 Phone: 321-309-0685 
E-mail: [EMAIL PROTECTED] 

TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf




TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


Re: Witango-Talk: Setting Witango variables inside of Javascript

2004-05-07 Thread Alan Wolfe
Title: Setting Witango variables inside of Javascript



It sounds like you need the _javascript_ that detects 
the screen size on the login page, and set it to hidden args like you were 
saying you've done and then when they click ok to login or whatever, then you 
will have your screen size as args.

This works as long as you dont need the screen size 
known when showing the login page (:

do you need to know at the login page?

  - Original Message - 
  From: 
  Wolf, Gene 
  To: [EMAIL PROTECTED] 
  Sent: Friday, May 07, 2004 10:25 AM
  Subject: RE: Witango-Talk: Setting 
  Witango variables inside of _javascript_
  
   Hey Alan, thanks for the reply. What I see this doing is 
  that a person logs in.In the login programI want to call a TCF and 
  capture his/her screen resolution. When the log in is complete I want to send 
  that screen resolution (really a var set to either high or low) back to the 
  calling program. 
  
   The TCF only needs to execute a _javascript_, which is 
  working fine, and set a Witango variable, which I have no idea how to do. Any 
  ideas how to accomplish this?
  
-Original Message-From: Alan Wolfe 
[mailto:[EMAIL PROTECTED]Sent: Friday, May 07, 2004 12:55 
PMTo: [EMAIL PROTECTED]Subject: Re: 
Witango-Talk: Setting Witango variables inside of 
_javascript_
Hi Gene,

The problem with setting witango variables in 
_javascript_ is that the _javascript_ isbrowser side while assigning 
witango variables is server side.

So, the problem is how do you transmit the data 
from browser to server?

There's a couple different tricks to doing 
this, but it depends on what your requirements are.

How do you need this to function?

  - Original Message - 
  From: 
  Wolf, Gene 
  To: [EMAIL PROTECTED] 
  Sent: Friday, May 07, 2004 8:41 
  AM
  Subject: Witango-Talk: Setting 
  Witango variables inside of _javascript_
  
   I've searched the discussion list 
  and I know this has been asked before, because I believe I've asked it. 
  *laughs* Here's what I would like to do. I want to call a tcf which will 
  query the resolution setting on a users screen and set a Witango variable 
  to be returned to the calling program. 
  I have the _javascript_ working just fine. We 
  know the resolution. Now I want to assign that value to a Witango variable 
  and here's where I'm stumbling. How do I do that assignment in _javascript_ 
  so I can return to the main program? In the past I have set up a form and 
  set the value of a hidden field and then used the @ARG value but that does 
  not pertain in this case. I have looked at the @Setparam metatag but I'll 
  be damned if I can figure it out.
   Any help will be appreciated! 
  
  Gene Wolf Business Systems Analyst, TLMN DRS Optronics, Inc. 2330 Commerce Park Drive Palm 
  Bay, Florida 32905 Phone: 
  321-309-0685 E-mail: 
  [EMAIL PROTECTED] 
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf




TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


Re: Witango-Talk: Setting Witango variables inside of Javascript

2004-05-07 Thread John McGowan
Gene,

If the TCF is executing the javascript with the script action I'm 
guessing that you're getting the screen resolution of the server 
machine...  I could also be misunderstanding something in your post below.

Follow alan's advise on doing it client side and embeding the results in 
the hidden form field.

/John

Wolf, Gene wrote:

   Hey Alan, thanks for the reply. What I see this doing is that a 
person logs in. In the login program I want to call a TCF and capture 
his/her screen resolution. When the log in is complete I want to send 
that screen resolution (really a var set to either high or low) back 
to the calling program.
 
   The TCF only needs to execute a javascript, which is working fine, 
and set a Witango variable, which I have no idea how to do. Any ideas 
how to accomplish this?

-Original Message-
*From:* Alan Wolfe [mailto:[EMAIL PROTECTED]
*Sent:* Friday, May 07, 2004 12:55 PM
*To:* [EMAIL PROTECTED]
*Subject:* Re: Witango-Talk: Setting Witango variables inside of
Javascript
Hi Gene,
 
The problem with setting witango variables in javascript is that
the javascript is browser side while assigning witango variables
is server side.
 
So, the problem is how do you transmit the data from browser to
server?
 
There's a couple different tricks to doing this, but it depends on
what your requirements are.
 
How do you need this to function?

- Original Message -
*From:* Wolf, Gene mailto:[EMAIL PROTECTED]
*To:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
*Sent:* Friday, May 07, 2004 8:41 AM
*Subject:* Witango-Talk: Setting Witango variables inside of
Javascript
   I've searched the discussion list and I know this has been
asked before, because I believe I've asked it. *laughs* Here's
what I would like to do. I want to call a tcf which will query
the resolution setting on a users screen and set a Witango
variable to be returned to the calling program.
I have the javascript working just fine. We know the
resolution. Now I want to assign that value to a Witango
variable and here's where I'm stumbling. How do I do that
assignment in javascript so I can return to the main program?
In the past I have set up a form and set the value of a hidden
field and then used the @ARG value but that does not pertain
in this case. I have looked at the @Setparam metatag but I'll
be damned if I can figure it out.
  Any help will be appreciated!

*/Gene Wolf/*
Business Systems Analyst, TLMN
DRS Optronics, Inc.
2330 Commerce Park Drive
Palm Bay, Florida  32905
Phone: 321-309-0685
E-mail: [EMAIL PROTECTED]

TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
 


TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
   


TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
 


TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


RE: Witango-Talk: Setting Witango variables inside of Javascript

2004-05-07 Thread Scott Cadillac
Or have the user select the resolution from a drop-down list. Some users
don't always want to run their windows maximized.

Hope this helps. Cheers...

 -Original Message-
 From: John McGowan [mailto:[EMAIL PROTECTED] 
 Sent: Friday, May 07, 2004 12:38 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Witango-Talk: Setting Witango variables inside 
 of Javascript
 
 Gene,
 
 If the TCF is executing the javascript with the script action I'm 
 guessing that you're getting the screen resolution of the server 
 machine...  I could also be misunderstanding something in 
 your post below.
 
 Follow alan's advise on doing it client side and embeding the 
 results in 
 the hidden form field.
 
 /John
 
 Wolf, Gene wrote:
 
 Hey Alan, thanks for the reply. What I see this doing is that a 
  person logs in. In the login program I want to call a TCF 
 and capture 
  his/her screen resolution. When the log in is complete I 
 want to send 
  that screen resolution (really a var set to either high or 
 low) back 
  to the calling program.
   
 The TCF only needs to execute a javascript, which is 
 working fine, 
  and set a Witango variable, which I have no idea how to do. 
 Any ideas 
  how to accomplish this?
 
  -Original Message-
  *From:* Alan Wolfe [mailto:[EMAIL PROTECTED]
  *Sent:* Friday, May 07, 2004 12:55 PM
  *To:* [EMAIL PROTECTED]
  *Subject:* Re: Witango-Talk: Setting Witango variables inside of
  Javascript
 
  Hi Gene,
   
  The problem with setting witango variables in javascript is that
  the javascript is browser side while assigning witango variables
  is server side.
   
  So, the problem is how do you transmit the data from browser to
  server?
   
  There's a couple different tricks to doing this, but it 
 depends on
  what your requirements are.
   
  How do you need this to function?
 
  - Original Message -
  *From:* Wolf, Gene mailto:[EMAIL PROTECTED]
  *To:* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]
  *Sent:* Friday, May 07, 2004 8:41 AM
  *Subject:* Witango-Talk: Setting Witango variables inside of
  Javascript
 
 I've searched the discussion list and I know 
 this has been
  asked before, because I believe I've asked it. 
 *laughs* Here's
  what I would like to do. I want to call a tcf which 
 will query
  the resolution setting on a users screen and set a Witango
  variable to be returned to the calling program.
 
  I have the javascript working just fine. We know the
  resolution. Now I want to assign that value to a Witango
  variable and here's where I'm stumbling. How do I do that
  assignment in javascript so I can return to the 
 main program?
  In the past I have set up a form and set the value 
 of a hidden
  field and then used the @ARG value but that does not pertain
  in this case. I have looked at the @Setparam 
 metatag but I'll
  be damned if I can figure it out.
 
Any help will be appreciated!
 
 
  */Gene Wolf/*
  Business Systems Analyst, TLMN
  DRS Optronics, Inc.
  2330 Commerce Park Drive
  Palm Bay, Florida  32905
  Phone: 321-309-0685
  E-mail: [EMAIL PROTECTED]
 
 
 _
 ___
 TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
   
 
 _
 ___
 TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
 
 
 _
 ___
 TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
   
 
 
 __
 __
 TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
 



TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf