Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

vbscript question- frames

I have 2 frames in my web application.
I need to get the value of textbox in another frame.
how?
0
indigoo
Asked:
indigoo
  • 2
1 Solution
 
sybeCommented:
<script>
WhatyouWant = parent.name_of_other_frame.form_name.textbox_name.value;
</script>

So make sure you give a name to the frame, the form and the textbox.
0
 
indigooAuthor Commented:
I need put this value in a session var like this
<%session=("myvar")=...........%>
0
 
sybeCommented:
You can only get a client side form variable into a server side variable by submitting the form.

0
 
netf_dsCommented:
First, put you're variable it the session object :

after calling an .asp file, Session("MyVar")=Request("MyTextBox")

Then you will be able to use it (<%=Session("MyVar")%>).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now