[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • 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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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