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

From: Date: Tue, 22 Aug 2000 23:20:56 +0000
Subject: Fwd: Re: [PHP] Why Doesn't My Javascript Work With PHP?
Groups: php.general 
Request: Send a blank email to php-general+get-13040@lists.php.net to get a copy of this message
Regarding the PHP/Java issue, would it be possible to take a look at the PHP source and the output it generates?
Everything *except* the Javascript interacting with the PHP works fine. And as I mentioned before, this worked fine *with* the Javascript on another server. Why not on my new server?
Later... Ken Linder www.radstream.com ----- Original Message ----- From: "Ben Ocean" <beno@cnw.com> To: <php-general@lists.php.net> Cc: <hwg-languages@hwg.org> Sent: Tuesday, August 22, 2000 12:31 PM Subject: [PHP] Why Doesn't My Javascript Work With PHP? Hi; I have a Javascript that worked perfectly well on another server, *then* I built my own server. I have other PHP/MySQL scripts that work perfectly well on my new server. But for some reason, a certain Javascript, nested within a *while* statement acts crazy. What I want to occur is to generate information about specific horses selected by search criteria. The script correctly prints to screen the name of the horse. This is surrounded by an anchor tag. I can pass the correct information about the specific horse through the tag to the new page *without* Javascript, but when I use the Javascript, what happens is the information that is supposed to be passed with the anchor for each horse is replaced with new information each time the *while* statement is executed. The result is that all the *names* of the horses print to screen correctly, but when you click on one, it pulls up the information for the last horse on the list! To make matters worse, the page with the list of horses names is intentionally small, but the page I generate for the specific horses must be full-sized. I cannot do this with a *target="_blank"* line of code: I have to use Javascript. What am I doing wrong? TIA, BenO -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#13040) next »