javascript - Parse with data gathered from popup -


i working on facebook app , have little bit of trouble: have index.php , mypopup.php file. hosted on heroku, if matters in way. need when button pressed on index.php page, popup window should appear, content of mypopup.php file, has html form couple of checkboxes , button. now, question how can data popup window (checked items) passed index.php , work data in index.php file?

for example:

checkbox1 data1 [checked]
checkbox2 data2[unchecked]

the data related checkbox1 should passed function in index.php

you can use javascript this. content show in lightbox. when lightbox done loading, attach event handlers of items want watch in lightbox (onchange events example). can pass data index.php on back-end using ajax request.

also, realized (silly me), if have html form, can change action of form send data index.php instead of mypopup.php.

either way work. depends on specifics of data , need it.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -