...

View Full Version : how to reset session variables in an iframe from javascript



bhakti_thakkar
12-21-2007, 11:23 AM
hi all,
i have a php page [TransactionCertificate.php] where i have an iframe [scr=Unit.php]. in that iframe, there is a session variable of array type. there is a textbox in the parent page [TransactionCertificate.php]. now what i want is, that if any values is present in the textbox then the session variable should be unset().
how will i accomplish this?

Thanks

Inigoesdr
12-21-2007, 01:01 PM
If you aren't submitting the form on the main page you would have to use Javascript to either send an AJAX request or submit a form in the IFrame.

bhakti_thakkar
12-27-2007, 07:32 AM
Hi Inigoesdr,


If you aren't submitting the form on the main page you would have to use Javascript to either send an AJAX request or submit a form in the IFrame.

i had to use AJAX and unset the variable as you said. its working absolutely fine. Thanks for your extended help :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum