• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

Pass data from Lighbox Modal Dialogue to parent page.

I am in the process of developing a form which allows for people to enter information through a Modal Dialogue (not the standard window popup) Box, but my question is how would i get the pass the entered data back to the parent page once the Dialogue Box is closed?

I've tried searching the Internet but can only find information on how to pass from a popup window to the parent page.
0
agulaid
Asked:
agulaid
1 Solution
 
Michel PlungjanIT ExpertCommented:
If I assume correctly, this modal box is just a div
So if you set any variable, it is set for the page that opened the modal thing itself

So in parent page

<script>
var someVar='set by parent now'
</script>

and in modal

someVar='set by modal now'
0
 
agulaidAuthor Commented:
Thanks for that, the modal window actually shares the same variable sets as the parent... as you have pointed out.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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