Hi Greg,

I'm having some similar problems in a pretty complex app i'm writing.
Did you work this out?

At the moment, I have a page that shows results from mysql table and
inserts them as standard php variables as the form loads in the style
of <input id="test" value="$valueToInsert">.

Then I have written a drop down box which is shown and filtered as I
type in each letter, in the onKeyUp() of a box called "productName".
In the onClick() event of an item in that list it uses some jQuery to
insert the details on to the form by calling the following simple
javascript function..

function insertProductNameDetails(productName, productId) {
   $('#productName').val(productName);
   $('#productId').val(productId);
}

Now, before I even save this form - if I click the refresh button in
my browser I just keep the same product in the box. I can click it 1
or 20 times, it gives the same "clicked" result.

I have to actually change the entire query string or close the page
and re-open it to get the original value from the database again.

If I dont actually click the item in the drop down and just type in
the value manually, it resets as soon as I refresh.

Any ideas?

Sam

On Jun 25, 4:46 pm, Greg <[EMAIL PROTECTED]> wrote:
> Hi Jake,
>
> I'm afraid not. This is on an admin only template on the live client
> CMS since it's using a copy of live data. I could job up a test page
> elsewhere but the relevant bit of the html is posted below.
>
> Cheers
>
> Greg
>
> <form id='paypal_form_19_add_to_cart_button' method="post"
> action="https://www.paypal.com/cgi-bin/webscr";  >
> <div>
> <input type="hidden" name="cmd" value="_cart" />
> <input type="hidden" name="add" value="1" />
> <input type="hidden" name="business" value="[EMAIL PROTECTED]" />
> <input type="hidden" name="return" value="http://domain.com/url/"; />
> <input type="hidden" name="cancel_return" value="http://domain.com/
> url/" />
> <input type="hidden" name="item_name" value="Product name and
> details" />
> <input type="hidden" name="item_number" value="19" />
> <input type="hidden" name="quantity" value="1" />
> <input type="hidden" name="amount" value="15.00" />
> <input type="hidden" name="tax" value="0" />
> <input type="hidden" name="lc" value="US" />
> <input type="hidden" name="currency_code" value="GBP" />
> <input type="hidden" name="custom" value="1" />
> </div>
>
> <input type="submit" name="submit" value="&pound;15.00 Add to Basket"
> class="paypal_button" />
> </form>

Reply via email to