Re: Why Doesn't My Javascript Work With PHP?

From: Date: Wed, 23 Aug 2000 14:29:32 +0000
Subject: Re: Why Doesn't My Javascript Work With PHP?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-13159@lists.php.net to get a copy of this message
At 10:25 AM 8/23/2000 +0100, you wrote:
It looks like the Javascript function, horseWindow() will be redeclared more than once. Can you be a bit more specific about the "it dose not work". Can you capture the output of the php script and mail it to the list?
It *is*, in fact, printing the correct information to the browser, so I'm getting that far. Here's an example of what prints after I select a horse: <a href="#a" onClick="horseWindow()"> <script language="Javascript1.2"> function horseWindow() {
      newWindow = window.open("Your_Horse.php3?name=Mistic Fire&color=1&gender=1&price=3600.00&birth=1983-04-17&performance_one=Dressage,&performance_more=3 Day Event&height=16.1&description=This husky Bright Red Chestnut mare has been green broke and has produced 6 offspring.","","toolbar=1,menubar=0,width=800,height=600,scrollbars=1,status=0,location=0,directories=0,left=0,top=0");
} </script> Mistic Fire</a><br><a href="#a" onClick="horseWindow()"> Yet it still insists on generating the last horse when I click any link.
Have you changed version/OS/db since the old server?
It's probably safe to assume that *all* are different. It was with a commercial vendor: now I'm on my own (co-located). They had some old version of FreeBSD, I have a recent distro of Red Hat. I don't know what versions of PHP and MySQL they were running, but it's a safe bet they're a whole lot older than what I'm running, which is the most recent stable version of PHP3 and MySQL. TIA, BenO ***This e-mail is brought to you by the numbers 1 and 0***

« previous php.general (#13159) next »