Topic awaiting preservation: Fetching source in another frame. (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: f(x) |
posted 08-24-2004 13:50
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 |
posted 08-24-2004 16:40
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) |
posted 08-25-2004 07:48 |
Bipolar (III) Inmate From: f(x) |
posted 08-27-2004 17:29 |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 08-27-2004 20:06
You can't actually |
Paranoid (IV) Inmate From: USA |
posted 08-27-2004 20:37
Are you sure this is a job for Javascript? |
Bipolar (III) Inmate From: f(x) |
posted 08-27-2004 22:41 |
Paranoid (IV) Inmate From: France |
posted 08-27-2004 23:39
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 |
posted 08-28-2004 19:50
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: |
posted 08-30-2004 16:38
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) |
posted 08-31-2004 16:18 |
Nervous Wreck (II) Inmate From: |
posted 08-31-2004 18:19
Just promise us this won't be used for nefarious purposes. |
Bipolar (III) Inmate From: f(x) |
posted 08-31-2004 19:09 |