Re: Problem with Pager_Wrapper and firefox????

From: Date: Wed, 14 Feb 2007 20:13:14 +0000
Subject: Re: Problem with Pager_Wrapper and firefox????
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26576@lists.php.net to get a copy of this message
Jandro brozaman wrote:
I have the following strange error/bug/problem (I really don't know). I'm using the smarty function Pager_Wrapper and I have a javascript error only in firefox (v.2.0.0.1), it runs ok in explorer 7.0. I execute the form and when submit it sends to the page2.php (see below). It show the array with the results ok. But when I try to click in the Next option. The system returns me a javascript error: "form.submit is not a function"
when you set pager's httpMethod to POST, it creates a form for each link, and uses the form.submit() function to submit it when the user clicks the link. You're having this problem because you have another element (a submit button?) which is called "submit", and this causes a conflict in javascript. To solve the problem, simply change the name of the button: <input type="submit" name="foobar" value="search" /> HTH Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo ___________________________________________________________________ Quipo Free Internet - 2 email, 150 Mb di spazio web e molto di più. ADSL, Hardware & Software Online Store

« previous php.pear.general (#26576) next »