Jump to content

How can I alter this script so the page doesn't reload?


dawg1

Recommended Posts

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

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.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.