javascript - How to send php variable from Colorbox iFrame to parent; and how to have a function involving said variable run on parent without reload -


i'm bit new programming bear me here.

i'm trying have link clicked within colorbox iframe (each link on parent page opens different colorbox based on mysql variables) execute function in parent frame without having refresh.

the link clicked in iframe song, , i'd leave iframe untouched (ie not close), though parent-based player play specific song...

is possible? making complicated? solution?

any more appreciated.

you can call javascript functions defined in parent window of iframe using

parent.yourfunction(); 

so can have in parent:

function myfunction(songid) { } 

and in iframe call this:

parent.myfunction(songid) 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -