Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: open
I am developing in PHP,JS,HTML,MySQL.
I have a list of links on a page. Each link should call a JS function to 'pop' another window up to display more detail.
The JS code:
vWindow = window.open('detail.php','Detail',style);
The deatil depends on which link was clicked.
Is there any way of populating fields in the popup window (depending on the link clicked)from the parent . I've tried things like...
vWindow.document.field1.innerHTML = "The detail text";
vWindow.field1.innerHTML = "The detail text";
Does that make sense?
Could I do it by POSTing variables to the detail.php script and then the detail can be read from the database depending on the variable that was POSTed?
Thanks in Advance
vWindow = window.open('detail.php?field1=value1&field2=value2','Detail',style);
then in detail.php do this:
<input type='text' name='field1' value='$_POST['field1']'>
<input type='text' name='field2' value='$_POST['field2']'>
other than that i dont have any good ideas, you can mail me with URLs and ill check it out if you like. i will need sample code as well....