[pmwiki-devel] Any .JS wizards out there?

DaveG pmwiki at solidgone.com
Sun Apr 8 08:24:02 CDT 2007


If you're using document.write, make sure you have document.close.

As an fyi, the general direction is away from document.write, and more 
to direct manipulation of the DOM, adding, inserting, removing elements.

  ~ ~ Dave

The Editor wrote:
> Been trying to improve the ZAPcart script to make it a little easier
> to use and more configurable.  Anyway, I embed the following lines in
> a PmWiki page and have them triggered when they click the paypal
> button.  Works fine in FireFox, but in IE7 it popus up the window--but
> with no content.
> 
> It was working before, but don't know what I did.  It all looks good...
> 
> <script language=JavaScript>
> function payment(amount) {
> 	paypal = window.open('','','width=780,height=540,resizable=yes,scrollbars=yes,toolbar=no,location=yes,directories=yes,status=yes,menubar=yes,coyphistory=yes');
> 	paypal.document.write('<html><body onload=document.paypalform.submit()>');
>                 etc...
> 
> Any ideas?
> 
> Cheers,
> Dan
> 
> _______________________________________________
> pmwiki-devel mailing list
> pmwiki-devel at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
> 



More information about the pmwiki-devel mailing list