dawg1 Posted April 29, 2011 Share Posted April 29, 2011 This script works great, the only problem is that it reloads the page on each selection. I use flash and would really like the page (and flash content) to not be reloaded on each selection. The code is below... <?php //*************************************** // This is downloaded from www.plus2net.com // /// You can distribute this code with the link to www.plus2net.com /// // Please don't remove the link to www.plus2net.com /// // This is for your learning only not for commercial use. /////// //The author is not responsible for any type of loss or problem or damage on using this script.// /// You can use it at your own risk. ///// //***************************************** require "config.php"; // Your Database details ?> <!doctype html public "-//w3c//dtd html 3.2//en"> <meta name="GENERATOR" content="Arachnophilia 4.0" /> <meta name="FORMATTER" content="Arachnophilia 4.0" /> <SCRIPT language=JavaScript> function reload(form) { var val=form.TERM.options[form.TERM.options.selectedIndex].value; self.location='http://www.dawgwear.net/dd3.php?TERM=' + val ; } function reload3(form) { var val=form.TERM.options[form.TERM.options.selectedIndex].value; var val2=form.CURR.options[form.CURR.options.selectedIndex].value; self.location='http://www.dawgwear.net/dd3.php?TERM=' + val + '&CURR=' + val2 ; } </script> I'm new to php/ajax so I would really appreciate some help or direction as to where I can get some answers! Thanks in advance! Jeanna Link to comment https://forums.phpfreaks.com/topic/235085-how-can-i-alter-this-script-so-the-page-doesnt-reload/ Share on other sites More sharing options...
sunfighter Posted May 1, 2011 Share Posted May 1, 2011 Hi Jeanna, I started programming with Arachnophilia many years ago. You may want to validate this page "http://www.dawgwear.net/dd3.php" here "http://validator.w3.org/" cause there are a few errors, like no </form> tag. What your asking looks like a major undertaking. Could you post the http://www.dawgwear.net/dd3.php?TERM=SU11 so we can see whats going on. No promises, but is needed and I bet it's a large file. Link to comment https://forums.phpfreaks.com/topic/235085-how-can-i-alter-this-script-so-the-page-doesnt-reload/#findComment-1209145 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.