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

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.