advice on suggested coding re: Paypal/Safari crashes

  • Posted: 19 December 2007 09:40 PM

    Hi,

    Visitors to my ecom page who are using Safari and downloaded the recent security update, are experiencing da-safari-crash.

    Yvan suggested this fix on Apple’s discussion board. Can anyone out there confirm that the suggestion below is a safe one?
    http://discussions.apple.com/profile.jspa?userID=268034

    Yvan suggests:
    Re: Safari Crashing When Paypal Buttons Clicked On - Since Security Update
    Posted: Dec 19, 2007 12:20 PM

    Safari doesn’t even display the “post new topic” button so I’m replying here instead…

    Any form that includes a “target” will make Safari crash. PayPal tells people to have target=“paypal” for the view cart/add to cart buttons.

    In this day and age of tabbed browsers, I figure they’d support a nicer way of doing thing. And they do, even though their example code isn’t like this.

    Remove any target=“paypal” code and add the following line instead:
    <input type=“hidden” name=“shopping_url” value=“http://www.yourwebsite.com/store_url/”>

    It’s not as fast as the “pop a new window for the shopping cart” solution since it loads your store page every time, but at least it’s a cleaner solution (IMHO) and Safari doesn’t crash anymore.

    Make sure to add this line to both your View Cart and Add to Cart buttons.
    ......................

    So, now what? I have PayPal’s Buy Now buttons on my ecom page on my site. I’ve posted an alert to buyers in a nutshell, that if they’ve updated Safari and it crashes when clicking on BuyNow buttons to try the pre-update version of safari if possible, or to use Firefox. Can anyone suggest one or two browsers most compatible for Windows users?

    Someone on the apple discussion forum at http://discussions.apple.com/thread.jspa?threadID=1297169&tstart=0 suggested the following code fix:

    Remove any target=“paypal” code and add the following line instead:
    <input type=“hidden” name=“shopping_url” value=“http://www.yourwebsite.com/store_url/”>

    It’s not as fast as the “pop a new window for the shopping cart” solution since it loads your store page every time, but at least it’s a cleaner solution (IMHO) and Safari doesn’t crash anymore.

    Make sure to add this line to both your View Cart and Add to Cart buttons.
    ...................................................

    Can someone please tell me if this is a safe fix or might it effect security or any other issues? Until Safari resolves this, I’m looking for confirmation or a no-don’t-do-that reply and why.

    Any other PayPal seller reports re: this issue ??  and if so, how are you working around it?

    Thank you,
    Marlise
    Your input is very much appreciated.
    Marlise