Forum Moderators: phranque

Message Too Old, No Replies

Copying PayPal code

Why does it fail?

         

dpd1

11:21 pm on Nov 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm by no means a code guy. Maybe somebody can tell me why this happens... I am unable to copy a table including PP buttons and paste it anywhere else without it somehow ruining the PP button functionality. When I look at the code for the buttons they are exactly the same as the originals (or so it appears)... But when you click on the copies, they just bring up the PP core page. The only way I get it to work is by going in and copying the actual code button for button and then pasting it in the new page or area. Then it works. But I see no difference between one or the other. Nothing seems to be missing in the one that doesn't work.

choster

4:29 am on Nov 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The code to display the buttons is only part of the code required to make them work. They need to be inside a form, and be provided all the other parameters about the item.

rocknbil

5:55 am on Nov 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am unable to copy a table including PP buttons and paste it anywhere else without it somehow ruining the PP button functionality. .... The only way I get it to work is by going in and copying the actual code button for button...

When you copy and paste the table, do you validate the page immediately? It's very likely you are introducing an (X)HTML error, improperly nesting the form inside another form (or something), breaking the functionality. When you copy just the button code, it's limiting the possibility of error.

dpd1

10:33 pm on Nov 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks, I think I finally figured it out. It's some weird glitch in the app. I did notice some tags missing in the table part of the code when copied. But I chose the table in GUI, then switched to code view and copied the code instead of the table in GUI view, and that seems to work. So it's leaving something out when you just copy from inside design view. This is using DW btw.