Accessing server-side variables from client-side events

This is a multi-part message in MIME format.

------=_NextPart_000_00E8_01C04D70.7EAC7080
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

In a client-side itemchanged function, how can I set a server-side =
variable??
I simply need to execute the following:

psSession.SetValue("userID", user_id);

I'm sure there's a way to trigger server-side script and pass in =
variables.

Any suggestions??  Thanks.

------=_NextPart_000_00E8_01C04D70.7EAC7080
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>In a client-side&nbsp;itemchanged =
function, how can=20
I set a server-side variable??</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I simply need to execute the=20
following:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>psSession.SetValue("userID", user_id);</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm sure there's a way to trigger =
server-side=20
script and pass in variables.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any suggestions??&nbsp;=20
Thanks.</FONT></DIV></BODY></HTML>

------=_NextPart_000_00E8_01C04D70.7EAC7080--

0
Steve
11/13/2000 6:51:52 PM
sybase.easerver 11371 articles. 0 followers. Follow

4 Replies
982 Views

Similar Articles

[PageSpeed] 55

This is a multi-part message in MIME format.

------=_NextPart_000_01A5_01C04D77.3BEF0120
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

You cannot.  What you can do is reload the page and pass the information =
as arguments to the page, that way the server will have access to them.

Another option is to use hidden fields in the HTML form, or computed =
columns if it's a web datawindow.

--=20

Larry Cermak [Team Sybase]
Corporate Technology Partners, Inc.

Coming Soon: Web DataWindow Book

Web DataWindow Articles: http://my.sybase.com/detail?id=3D1003371

  "Steve Ulesich" <steve.ulesich@midata.com> wrote in message =
news:R#p2TUaTAHA.275@forums.sybase.com...
  In a client-side itemchanged function, how can I set a server-side =
variable??
  I simply need to execute the following:

  psSession.SetValue("userID", user_id);

  I'm sure there's a way to trigger server-side script and pass in =
variables.

  Any suggestions??  Thanks.

------=_NextPart_000_01A5_01C04D77.3BEF0120
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>You cannot.&nbsp; What you can do is =
reload the=20
page and pass the information as arguments to the page, that way the =
server will=20
have access to them.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Another option is to use hidden fields in the HTML =
form, or=20
computed columns if it's a web datawindow.</FONT></DIV>
<DIV><BR>-- <BR><BR>Larry Cermak [Team Sybase]<BR>Corporate Technology =
Partners,=20
Inc.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Coming Soon: Web DataWindow Book</DIV>
<DIV>&nbsp;</DIV>
<DIV>Web DataWindow Articles: <A=20
href=3D"http://my.sybase.com/detail?id=3D1003371">http://my.sybase.com/de=
tail?id=3D1003371</A><BR></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV>"Steve Ulesich" &lt;<A=20
  =
href=3D"mailto:steve.ulesich@midata.com">steve.ulesich@midata.com</A>&gt;=
 wrote=20
  in message <A=20
  =
href=3D"news:R#p2TUaTAHA.275@forums.sybase.com">news:R#p2TUaTAHA.275@foru=
ms.sybase.com</A>...</DIV>
  <DIV><FONT face=3DArial size=3D2>In a client-side&nbsp;itemchanged =
function, how=20
  can I set a server-side variable??</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I simply need to execute the=20
  following:</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV>psSession.SetValue("userID", user_id);</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I'm sure there's a way to trigger =
server-side=20
  script and pass in variables.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Any suggestions??&nbsp;=20
Thanks.</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_01A5_01C04D77.3BEF0120--

0
Larry
11/13/2000 7:40:06 PM
This is a multi-part message in MIME format.

------=_NextPart_000_0022_01C04D8E.54444930
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks for the reply Larry.  =20

When you say 'reload the page and pass it arguments', are you referring =
to the '?' syntax:
i.e.   document.location.href =3D "xaa_logon.htm?userID=3D" + userID;

Also, could you give me a little more detail about using hidden fields =
and computed columns.
I've used PB computed columns before, but can't make the connection on =
how they would=20
help me pass data to the server script.

Thanks.

  "Larry Cermak [Team Sybase]" <lcermak@ctpartners.com> wrote in message =
news:R1AmEwaTAHA.162@forums.sybase.com...
  You cannot.  What you can do is reload the page and pass the =
information as arguments to the page, that way the server will have =
access to them.

  Another option is to use hidden fields in the HTML form, or computed =
columns if it's a web datawindow.

  --=20

  Larry Cermak [Team Sybase]
  Corporate Technology Partners, Inc.

  Coming Soon: Web DataWindow Book

  Web DataWindow Articles: http://my.sybase.com/detail?id=3D1003371

    "Steve Ulesich" <steve.ulesich@midata.com> wrote in message =
news:R#p2TUaTAHA.275@forums.sybase.com...
    In a client-side itemchanged function, how can I set a server-side =
variable??
    I simply need to execute the following:

    psSession.SetValue("userID", user_id);

    I'm sure there's a way to trigger server-side script and pass in =
variables.

    Any suggestions??  Thanks.

------=_NextPart_000_0022_01C04D8E.54444930
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Thanks for the reply Larry.&nbsp;&nbsp; =

</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>When you say 'reload the page and pass =
it=20
arguments', are you referring to the '?' syntax:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i.e.<FONT face=3D"Times New Roman"=20
size=3D3>&nbsp;&nbsp; document.location.href =3D =
"xaa_logon.htm?userID=3D" +=20
userID;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Also, could you give me a little more =
detail about=20
using hidden fields and computed columns.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I've used PB computed columns before, =
but can't=20
make the connection on how they would </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>help me pass data to the server=20
script.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV>"Larry Cermak [Team Sybase]" &lt;<A=20
  href=3D"mailto:lcermak@ctpartners.com">lcermak@ctpartners.com</A>&gt; =
wrote in=20
  message <A=20
  =
href=3D"news:R1AmEwaTAHA.162@forums.sybase.com">news:R1AmEwaTAHA.162@foru=
ms.sybase.com</A>...</DIV>
  <DIV><FONT face=3DArial size=3D2>You cannot.&nbsp; What you can do is =
reload the=20
  page and pass the information as arguments to the page, that way the =
server=20
  will have access to them.</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>Another option is to use hidden fields in the HTML =
form, or=20
  computed columns if it's a web datawindow.</FONT></DIV>
  <DIV><BR>-- <BR><BR>Larry Cermak [Team Sybase]<BR>Corporate Technology =

  Partners, Inc.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Coming Soon: Web DataWindow Book</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Web DataWindow Articles: <A=20
  =
href=3D"http://my.sybase.com/detail?id=3D1003371">http://my.sybase.com/de=
tail?id=3D1003371</A><BR></DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV>"Steve Ulesich" &lt;<A=20
    =
href=3D"mailto:steve.ulesich@midata.com">steve.ulesich@midata.com</A>&gt;=
=20
    wrote in message <A=20
    =
href=3D"news:R#p2TUaTAHA.275@forums.sybase.com">news:R#p2TUaTAHA.275@foru=
ms.sybase.com</A>...</DIV>
    <DIV><FONT face=3DArial size=3D2>In a client-side&nbsp;itemchanged =
function, how=20
    can I set a server-side variable??</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>I simply need to execute the=20
    following:</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV>psSession.SetValue("userID", user_id);</DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>I'm sure there's a way to trigger =
server-side=20
    script and pass in variables.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Any suggestions??&nbsp;=20
  Thanks.</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0022_01C04D8E.54444930--

0
Steve
11/13/2000 10:25:26 PM
This is a multi-part message in MIME format.

------=_NextPart_000_002C_01C04DB1.DCB16FA0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Steve,

Hidden fields are part of form.  It is simply a input option
<input name=3Dfoo value=3D"bar" type=3Dhidden>

Scott

  "Steve Ulesich" <steve.ulesich@midata.com> wrote in message =
news:g2uOpLcTAHA.269@forums.sybase.com...
  Thanks for the reply Larry.  =20

  When you say 'reload the page and pass it arguments', are you =
referring to the '?' syntax:
  i.e.   document.location.href =3D "xaa_logon.htm?userID=3D" + userID;

  Also, could you give me a little more detail about using hidden fields =
and computed columns.
  I've used PB computed columns before, but can't make the connection on =
how they would=20
  help me pass data to the server script.

  Thanks.

    "Larry Cermak [Team Sybase]" <lcermak@ctpartners.com> wrote in =
message news:R1AmEwaTAHA.162@forums.sybase.com...
    You cannot.  What you can do is reload the page and pass the =
information as arguments to the page, that way the server will have =
access to them.

    Another option is to use hidden fields in the HTML form, or computed =
columns if it's a web datawindow.

    --=20

    Larry Cermak [Team Sybase]
    Corporate Technology Partners, Inc.

    Coming Soon: Web DataWindow Book

    Web DataWindow Articles: http://my.sybase.com/detail?id=3D1003371

      "Steve Ulesich" <steve.ulesich@midata.com> wrote in message =
news:R#p2TUaTAHA.275@forums.sybase.com...
      In a client-side itemchanged function, how can I set a server-side =
variable??
      I simply need to execute the following:

      psSession.SetValue("userID", user_id);

      I'm sure there's a way to trigger server-side script and pass in =
variables.

      Any suggestions??  Thanks.

------=_NextPart_000_002C_01C04DB1.DCB16FA0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Steve,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hidden fields are part of form.&nbsp; =
It is simply=20
a input option</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;input name=3Dfoo value=3D"bar"=20
type=3Dhidden&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Scott</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV>"Steve Ulesich" &lt;<A=20
  =
href=3D"mailto:steve.ulesich@midata.com">steve.ulesich@midata.com</A>&gt;=
 wrote=20
  in message <A=20
  =
href=3D"news:g2uOpLcTAHA.269@forums.sybase.com">news:g2uOpLcTAHA.269@foru=
ms.sybase.com</A>...</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks for the reply =
Larry.&nbsp;&nbsp;=20
  </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>When you say 'reload the page and =
pass it=20
  arguments', are you referring to the '?' syntax:</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>i.e.<FONT face=3D"Times New Roman"=20
  size=3D3>&nbsp;&nbsp; document.location.href =3D =
"xaa_logon.htm?userID=3D" +=20
  userID;</FONT></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Also, could you give me a little more =
detail=20
  about using hidden fields and computed columns.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I've used PB computed columns before, =
but can't=20
  make the connection on how they would </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>help me pass data to the server=20
  script.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV>"Larry Cermak [Team Sybase]" &lt;<A=20
    =
href=3D"mailto:lcermak@ctpartners.com">lcermak@ctpartners.com</A>&gt; =
wrote in=20
    message <A=20
    =
href=3D"news:R1AmEwaTAHA.162@forums.sybase.com">news:R1AmEwaTAHA.162@foru=
ms.sybase.com</A>...</DIV>
    <DIV><FONT face=3DArial size=3D2>You cannot.&nbsp; What you can do =
is reload the=20
    page and pass the information as arguments to the page, that way the =
server=20
    will have access to them.</FONT></DIV>
    <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT size=3D2>Another option is to use hidden fields in the =
HTML form,=20
    or computed columns if it's a web datawindow.</FONT></DIV>
    <DIV><BR>-- <BR><BR>Larry Cermak [Team Sybase]<BR>Corporate =
Technology=20
    Partners, Inc.</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>Coming Soon: Web DataWindow Book</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>Web DataWindow Articles: <A=20
    =
href=3D"http://my.sybase.com/detail?id=3D1003371">http://my.sybase.com/de=
tail?id=3D1003371</A><BR></DIV>
    <BLOCKQUOTE dir=3Dltr=20
    style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
      <DIV>"Steve Ulesich" &lt;<A=20
      =
href=3D"mailto:steve.ulesich@midata.com">steve.ulesich@midata.com</A>&gt;=
=20
      wrote in message <A=20
      =
href=3D"news:R#p2TUaTAHA.275@forums.sybase.com">news:R#p2TUaTAHA.275@foru=
ms.sybase.com</A>...</DIV>
      <DIV><FONT face=3DArial size=3D2>In a client-side&nbsp;itemchanged =
function,=20
      how can I set a server-side variable??</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2>I simply need to execute the=20
      following:</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
      <DIV>psSession.SetValue("userID", user_id);</DIV>
      <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
      <DIV><FONT face=3DArial size=3D2>I'm sure there's a way to trigger =
server-side=20
      script and pass in variables.</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
      <DIV><FONT face=3DArial size=3D2>Any suggestions??&nbsp;=20
    =
Thanks.</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>=


------=_NextPart_000_002C_01C04DB1.DCB16FA0--

0
Scott
11/14/2000 3:39:47 AM
This is a multi-part message in MIME format.

------=_NextPart_000_005C_01C04E22.30A15D30
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Are you using web datawindows?  If so, then if you place a computed =
column on the datawindow you can access it with the GetItem function.  =
That way your client-side script can access the value in it.  You can =
also do client-side SetItem to set the values.

--=20

Larry Cermak [Team Sybase]
Corporate Technology Partners, Inc.

Coming Soon: Web DataWindow Book

Web DataWindow Articles: http://my.sybase.com/detail?id=3D1003371

  "Steve Ulesich" <steve.ulesich@midata.com> wrote in message =
news:g2uOpLcTAHA.269@forums.sybase.com...
  Thanks for the reply Larry.  =20

  When you say 'reload the page and pass it arguments', are you =
referring to the '?' syntax:
  i.e.   document.location.href =3D "xaa_logon.htm?userID=3D" + userID;

  Also, could you give me a little more detail about using hidden fields =
and computed columns.
  I've used PB computed columns before, but can't make the connection on =
how they would=20
  help me pass data to the server script.

  Thanks.

    "Larry Cermak [Team Sybase]" <lcermak@ctpartners.com> wrote in =
message news:R1AmEwaTAHA.162@forums.sybase.com...
    You cannot.  What you can do is reload the page and pass the =
information as arguments to the page, that way the server will have =
access to them.

    Another option is to use hidden fields in the HTML form, or computed =
columns if it's a web datawindow.

    --=20

    Larry Cermak [Team Sybase]
    Corporate Technology Partners, Inc.

    Coming Soon: Web DataWindow Book

    Web DataWindow Articles: http://my.sybase.com/detail?id=3D1003371

      "Steve Ulesich" <steve.ulesich@midata.com> wrote in message =
news:R#p2TUaTAHA.275@forums.sybase.com...
      In a client-side itemchanged function, how can I set a server-side =
variable??
      I simply need to execute the following:

      psSession.SetValue("userID", user_id);

      I'm sure there's a way to trigger server-side script and pass in =
variables.

      Any suggestions??  Thanks.

------=_NextPart_000_005C_01C04E22.30A15D30
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Are you using web datawindows?&nbsp; If =
so, then if=20
you place a computed column on the datawindow you can access it with the =
GetItem=20
function.&nbsp; That way your client-side script can access the value in =

it.&nbsp; You can also do client-side SetItem to set the =
values.</FONT></DIV>
<DIV><BR>-- <BR><BR>Larry Cermak [Team Sybase]<BR>Corporate Technology =
Partners,=20
Inc.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Coming Soon: Web DataWindow Book</DIV>
<DIV>&nbsp;</DIV>
<DIV>Web DataWindow Articles: <A=20
href=3D"http://my.sybase.com/detail?id=3D1003371">http://my.sybase.com/de=
tail?id=3D1003371</A><BR></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV>"Steve Ulesich" &lt;<A=20
  =
href=3D"mailto:steve.ulesich@midata.com">steve.ulesich@midata.com</A>&gt;=
 wrote=20
  in message <A=20
  =
href=3D"news:g2uOpLcTAHA.269@forums.sybase.com">news:g2uOpLcTAHA.269@foru=
ms.sybase.com</A>...</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks for the reply =
Larry.&nbsp;&nbsp;=20
  </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>When you say 'reload the page and =
pass it=20
  arguments', are you referring to the '?' syntax:</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>i.e.<FONT face=3D"Times New Roman"=20
  size=3D3>&nbsp;&nbsp; document.location.href =3D =
"xaa_logon.htm?userID=3D" +=20
  userID;</FONT></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Also, could you give me a little more =
detail=20
  about using hidden fields and computed columns.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I've used PB computed columns before, =
but can't=20
  make the connection on how they would </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>help me pass data to the server=20
  script.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV>"Larry Cermak [Team Sybase]" &lt;<A=20
    =
href=3D"mailto:lcermak@ctpartners.com">lcermak@ctpartners.com</A>&gt; =
wrote in=20
    message <A=20
    =
href=3D"news:R1AmEwaTAHA.162@forums.sybase.com">news:R1AmEwaTAHA.162@foru=
ms.sybase.com</A>...</DIV>
    <DIV><FONT face=3DArial size=3D2>You cannot.&nbsp; What you can do =
is reload the=20
    page and pass the information as arguments to the page, that way the =
server=20
    will have access to them.</FONT></DIV>
    <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT size=3D2>Another option is to use hidden fields in the =
HTML form,=20
    or computed columns if it's a web datawindow.</FONT></DIV>
    <DIV><BR>-- <BR><BR>Larry Cermak [Team Sybase]<BR>Corporate =
Technology=20
    Partners, Inc.</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>Coming Soon: Web DataWindow Book</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>Web DataWindow Articles: <A=20
    =
href=3D"http://my.sybase.com/detail?id=3D1003371">http://my.sybase.com/de=
tail?id=3D1003371</A><BR></DIV>
    <BLOCKQUOTE dir=3Dltr=20
    style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
      <DIV>"Steve Ulesich" &lt;<A=20
      =
href=3D"mailto:steve.ulesich@midata.com">steve.ulesich@midata.com</A>&gt;=
=20
      wrote in message <A=20
      =
href=3D"news:R#p2TUaTAHA.275@forums.sybase.com">news:R#p2TUaTAHA.275@foru=
ms.sybase.com</A>...</DIV>
      <DIV><FONT face=3DArial size=3D2>In a client-side&nbsp;itemchanged =
function,=20
      how can I set a server-side variable??</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2>I simply need to execute the=20
      following:</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
      <DIV>psSession.SetValue("userID", user_id);</DIV>
      <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
      <DIV><FONT face=3DArial size=3D2>I'm sure there's a way to trigger =
server-side=20
      script and pass in variables.</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
      <DIV><FONT face=3DArial size=3D2>Any suggestions??&nbsp;=20
    =
Thanks.</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>=


------=_NextPart_000_005C_01C04E22.30A15D30--

0
Larry
11/14/2000 4:03:51 PM
Reply:

Similar Artilces:

Firing both Client side event and server side event for server side button
I am having some difficulties getting this to work.. I have button_click (Asp.net) and ClientClick (Javascript).  Javascript is firing fine.  Server script is not. may be you have return return false in the in the javascript which is why its not firing server side event.You should add javascript evelt like thisbutton1.onclientclick = "functionname" Function should nopt return false. Vikram www.vikramlakhotia.comPlease mark the answer if it helped you...

Accessing Client side variable from server side code?
Hi,  I am trying to use vbscript to run a process on the client machine. Once that process finishes I want to use the resulting value in my server side code behind file. Does anyone know a way to do this? I know that I can set server side session objects to a client variable by doing something like this: <script language="vbscript" type="text/vbscript">  strSubject = <%=Session.Item("Subject") %> </script>  but I have no idea how to do that in reverse. Thanks!    Filed under: too much coffee.  LOL! ...

Client side code accessing server side variables
I am attempting to send a variable value from C# to the page for Javascript to access and use.  Basically I am using a prompt window in my server side javascript to capture a value and update the database with it.  If the value entered is not unique (because this is a unique identifier) I return a value indicating this.  I want this value available to my javascript code so I can provide an alert message telling the user to try again with a unique value.  If there is a way to make the message come right from my C# code behind page that will work for me too. Thanks ...

Accessing Client side variable on Server side (PostBack)
New to ASP.NET. Can anyone tell me how to access client side variable on server side ie. while postback thanks, The best way to access arbitrary clientside values from the serverside is to store the values in a hidden input instead of a variable. How to access the client side variable from the server side variable in case of the htc file. You can use hidden variables. Here's an excellent post that will guide you in the right direction : http://dotnetsavvyblog.blogspot.com/2007/11/how-to-access-client-side-control-in.html Hi...The Client side variable's value can be&nb...

How to access Client Side control in server side button click event?
Hi all, I need to access client side control from server side code. For an example <form id="form1" runat="server"> <table> <tr> <td>UserName:</td> <td><input type="text" id="textBoxUserName" /></td> <td><asp:Button ID="buttonShow" runat="server" Text="show" OnClick="buttonShow_Click" /></td> </tr> </table>   </form> I need to access the textBoxUsername in the server side button click event. How to do that? Than...

Newbie Dev: Passing/Saving variables client side to access server side.
Hello, As you might have guessed by the title of the thread I am really new to this, this is my first proper development project and my first go at ASP.NET... so as you can imagine I could do with some help! :S As the title suggests I am having trouble thinking of a way to access variables, when it comes to seperate client and server side processing. I am accessing my database through a webservice so dont want to re-fresh every time the user performs an action so I have a grid that I am adding and subtracting from on the client side using JScript what I would like to do is stor...

Help with client side events Vs. server side events
Hi, Can someone look as the following script and tell me why marking the check box doesn't generate a client side event eventhough there's: onclick="checkClick()"? marked.  Thanks in advance, Sivan <%@ Page Language="c#" %><HTML> <HEAD>  <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD> <body>  <SCRIPT language="c#" runat="Server">  void Page_Load(object s, EventArgs e) {  if (!Page.IsPostBack)  {   Label1.Text = Label...

How to Access/Pass Server Side Array Variable at Another Web Form's Client Side
Hi All,I struck up with some intrested senario at my application development...hope some body will guide me or sends me some code snippets....Thanks in advance.Senario is like this.....in A.aspx (using C# .net 2.0 as code behind) I am going to have a array variable basically it is an TWO Dimensional array after populating the values in array I need to redirect/ reload another web form B.aspx, here i need to access the array in B.aspx client side JavaScript.How can I do this...Thanks AgainRaju Dont do a redirect but use server.transfer. That way the previous page will still hold its value, ...

how to transfer client-side variable to server-side
hi all, i need just a small hint on how to go on... i am adding attributes to a rows in a gridview when data is bound e.Row.Attributes.Add("onClick", "MySelectedRow.text = '" + e.Row.DataItemIndex.ToString() + "';location.href='admin_contact.aspx'") this allows me to store the selected row in a hidden field (MySelectedRow). after the page is being resubmitted it resets the value of the hidden field to null. i need to have the value on the server-side. i prefer not to do the querystring unless you know how to clear the querystring i...

Getting my client-side variable over to server-side
Ok so I have looked at a few posts on this subject and I can't quite figure out how to apply the idea to what I am doing here. I am using javascript to take amounts from 7 different textboxes and add them up on the fly, dropping the total in the 8th textbox. After they fill in that information they click button (postback) to continue throughout the form... what I need is for the "textboxTotalAmt" to move from client-side to server-side.  So I can access that total amount later in the form. Here is the Javascript piece... <script type="text/java...

Server side Variable in client side script
Hello, I want to access the variable defined in the server side script from the client side. Can anyone help out with an example ??? TIA, Rakesh Babaria I think what you do is write is as a java script variable, so something like this: <!--SCRIPT var ls_serverVar ls_serverVar = "whatever"; document.writeln("<SCRIPT language=JavaScript>"); document.writeln("var xyz = " + ls_serverVar); document.writeln("</SCRIPT>"); --> Then in your client script, you'll be able to get XYZ. ...

Client side/server side event race.
 Hi.  I've got a page that 1) Takes some text fields as input2) Does some math calculations on the input (server side via a "calculate" button click)3) Then opens a new window with some detailed information (client side, via a "view report" button click)The server needs to "calculate" before the user can click "view report" so I start with "view report" disabled.  I've got input validation on the "calculate" click, and at the end, I enable the "view report" button.  Everything is working well wi...

server side variables in client side javascript
I want to use an ASP.net variable in client side javascript.In regular asp I used hidden fields.what is the best way to do this in ASP.NET ?thx,Intersee my blog at www.Interdevelopments.com and check the future of open mobile widget solutions at www.glowe.org By and large, I personally still use Hidden fields to store information, that either my Javascript function or my code-behind use.  I barely use the RegisterScriptBlock method(s) and that is only for situations where I want to be really dynamic with the client side functionality.  95% of the time, I can still use a...

Passing variable between client side and server side
For example,how do I pass the return value of the confirm("whatever") to the server side? Or the opposite way.  I want to use a cookie to do is. Can some one give me hint.  Much appreciate your help.   Chen  Please "Mark as an Answer" if you think my post had helped you!Thanks. you can use ajax,javascript and cookies also.  Got what you needed. Please mark as answer. In the aspx file: <input type="hidden" id="confirmAnswer" name="confirmAnswer" runat="server"> That adds this to the...

Web resources about - Accessing server-side variables from client-side events - sybase.easerver

Server Side Includes - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Google Cloud Platform simplifies server-side development for iOS w/ ‘Mobile Backend Starter’
... Mobile Backend Starter that first debuted for Android developers back in June. Google says the application helps to simplify the server-side ...

Free Cooling: the Server Side of the Story
Servers that support higher inlet temperatures could significantly reduce or even eliminate the cooling costs of the data center. We received ...


[Update: Check Now] Play Store For Android Gets Search Bar With Hamburger Flip In Server-Side Update
Google is pushing out an update to the Play Store's Android interface that replaces the action bar with a standard search bar. Inside are the ...

Server-side update makes Siri a stickler for succinctness
Siri is already well known for her wit and willingness to joke, but a recent server-side update has given Apple's digital assistant the ability ...

Japanese RIAA wants server-side music DRM for mobile phones
The Recording Industry Association of Japan—the Japanese version of the RIAA— …

New BaaS platform aims to eliminate writing server-side code
... offering for desktop and mobile developers that's now leaving its beta phase. By removing the need for writing code on the server-side, Backendless ...

Dart improves async and server-side performance
... Team Today's release of the Dart SDK version 1.3 includes a 2x performance improvement for asynchronous Dart code combined with server-side ...

Customize Google Using Server-Side Scripts
Google's services have a lot of powerful features, but they can't offer all the options requested by users. A popular way to customize Google ...

Resources last updated: 1/10/2016 6:43:03 AM