SPUG: Can this even be done? [ setting fields on 3rd party webpage ]

Ben Burnett benb at speakeasy.net
Tue Jun 22 18:56:34 CDT 2004

At 01:07 PM 6/22/2004, Chris Wilkes wrote:
>You might be able to do this without the cooperation of the 3rd party
>by including their web page in a frame whose main html (that's the page
>that includes the framesets) is on your site, thus allowing you to use
>javascript to set those fields.
>You'll have to know the names of those fields exactly, and if the 3rd
>party changes them then your javascript setters will fail.

This won't work as JavaScript won't let code hosted in one domain fiddle 
with code that is hosted in a different domain.  This applies across frames 
and windows.

LWP will work, but I'd reconsider your business case for doing this.  There 
are only 3 fields on the page...

- Ben 

More information about the spug-list mailing list