-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: loveablerahuls
Message 3 in Discussion
Thanks Rohit,
Rahul Srivastava
----- Original Message -----
From: Rohit_BD <[EMAIL PROTECTED]>
Date: Wed, 8 Sep 2004 02:50:26 -0700
Subject: Re: Javascript Variables Problem
To: MumbaiUserGroup <[EMAIL PROTECTED]>
New Message on MumbaiUserGroup
Javascript Variables Problem
Reply
Reply to Sender Recommend Message 2 in Discussion
From: Rohit_BD
Hi,
Client-side JavaScript variables can ONLY be accessed in the browser
(or HTML) side. All the scoping rules apply as usual. Once the page
has been posted (or URL changed or refreshed), these variables are
lost, and reinitialised (only for refresh). If you want to access any
variable via javascript, make sure that it is declared before
accessing it, and that it is called while the variable is still in
scope. For example, a variable declared inside an if {} block will not
be available outside that block.
The interaction between the scripts and the page is as below (<-->
indicates which type of script can access what):
JavaScript variables <--> Client-side code <--> HTML input fields <-
(via request object) -> Server-side code.
This is a short descritption of how ASP, of ASPX or any CGI works:
Browser requests page -> Web server invokes server-side engine ->
Server-side code executes -> Resulting HTML is sent to Web server
which in turn sends it to browser -> Browser gets HTML and renders it,
along with any client-side scripts -> Client-side scripts perform
client-side operations like validation or DHTML.
View other groups in this category.
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating |
Daily Horoscopes
To stop getting this e-mail, or change how often it arrives, go to
your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport
Member Services.
For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or if
you received this message by mistake, please click the "Remove" link
below. On the pre-addressed e-mail message that opens, simply click
"Send". Your e-mail address will be deleted from this group's mailing
list.
Remove my e-mail address from MumbaiUserGroup.
--
Everythig that your Mind Concieve and your Heart Believe, You can Achieve
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]