![]() Topic awaiting preservation: Fetching source in another frame. (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: f(x) |
![]() Ok, I have a page with some frames, I want to have one of the frames which contains a form, fetch the source in another frame and put it in a text field and then submit the form. I want this all to happen when the frame with source loads. |
Nervous Wreck (II) Inmate From: London |
![]() Do you want to fetch the COMPLETE source - head, body, everything? Or just the contents of the body tag? |
Bipolar (III) Inmate From: f(x) |
![]() |
Bipolar (III) Inmate From: f(x) |
![]() |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() You can't actually |
Paranoid (IV) Inmate From: USA |
![]() Are you sure this is a job for Javascript? |
Bipolar (III) Inmate From: f(x) |
![]() |
Paranoid (IV) Inmate From: France |
![]() I come a little late, but if your target audience has a modern browser, you can certainly solve your problem via the XMLHttpRequest object. I haven't really played with it yet, but from what I've read so far it seems that it's also possible to fool the server-side script processing the form fields to believe that the datas comes from the initial page. |
Bipolar (III) Inmate From: schillmania.com |
![]() I agree with poi - XMLHTTP is a great way to go, at least where supported. (Mozilla 1.x+ I think, Safari 1.2 and IE 5+. Opera's out.) |
Nervous Wreck (II) Inmate From: |
![]() There are cross-site security restrictions on XMLHttpRequest as well, at least by default in Mozilla. For Mozilla, your script will have to explicitly invoke one or more security permissions as in the following example: code: netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
|
Bipolar (III) Inmate From: f(x) |
![]() |
Nervous Wreck (II) Inmate From: |
![]() Just promise us this won't be used for nefarious purposes. |
Bipolar (III) Inmate From: f(x) |
![]() |