Problem accessing external iframe form values
|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Problem accessing external iframe form valuesHi, I'm getting sick trying to solve this problem: I have a web page A that loads another page B using an iframe (or an object tag), the B page is an external page (it's not on my server) and contains a form. I want to be able to auto fill the form with pre-defined values. In jquery i think it's impossible due to security reasons, somebody can help me?!?! I hope I explained the problem correctly, if you need more info just tell me. Thanks, |
||||||||
|
|
Re: Problem accessing external iframe form valuesI believe that it's not possible, in general, as you said due to security reasons. On Jul 1, 12:17 am, skywalk3r <luca.martinc...@...> wrote: > Hi, I'm getting sick trying to solve this problem: > > I have a web page A that loads another page B using an iframe (or an > object tag), the B page is an external page (it's not on my server) > and contains a form. > > I want to be able to auto fill the form with pre-defined values. In > jquery i think it's impossible due to security reasons, somebody can > help me?!?! > > I hope I explained the problem correctly, if you need more info just > tell me. > Thanks, |
||||||||
|
|
Re: Problem accessing external iframe form valuesIt isn't possible. iframes abide by the same origin policy just as ajax requests do.
I believe that it's not possible, in general, as you said due to security reasons. On Jul 1, 12:17 am, skywalk3r <luca.martinc...@...> wrote: > Hi, I'm getting sick trying to solve this problem: > > I have a web page A that loads another page B using an iframe (or an > object tag), the B page is an external page (it's not on my server) > and contains a form. > > I want to be able to auto fill the form with pre-defined values. In > jquery i think it's impossible due to security reasons, somebody can > help me?!?! > > I hope I explained the problem correctly, if you need more info just > tell me. > Thanks, |
||||||||
|
|
Re: Problem accessing external iframe form valuesOk, I supposed it! Thanks anyway guys! On Jul 1, 8:28 pm, Michael Lawson <mjlaw...@...> wrote: > It isn't possible. iframes abide by the same origin policy just as ajax > requests do. > > cheers > > Michael Lawson > Development Lead, Global Solutions, ibm.com > Phone: 1-276-206-8393 > E-mail: mjlaw...@... > > 'Examine my teachings critically, as a gold assayer would test gold. If you > find they make sense, conform to your experience, and don't harm yourself > or others, only then should you accept them.' > > From: James <james.gp....@...> > > To: "jQuery (English)" <jquery-en@...> > > Date: 07/01/2009 02:18 PM > > Subject: [jQuery] Re: Problem accessing external iframe form values > > I believe that it's not possible, in general, as you said due to > security reasons. > > On Jul 1, 12:17 am, skywalk3r <luca.martinc...@...> wrote: > > > Hi, I'm getting sick trying to solve this problem: > > > I have a web page A that loads another page B using an iframe (or an > > object tag), the B page is an external page (it's not on my server) > > and contains a form. > > > I want to be able to auto fill the form with pre-defined values. In > > jquery i think it's impossible due to security reasons, somebody can > > help me?!?! > > > I hope I explained the problem correctly, if you need more info just > > tell me. > > Thanks, > > > > graycol.gif > < 1KViewDownload > > ecblank.gif > < 1KViewDownload |
||||||||
|
|
Re: Problem accessing external iframe form valuesif you know the ids of the elements you want to auto-fill you can try this $("iframe").contents().find("#element_id").val("hello"); Slts. ----- Original Message ----- From: "James" <james.gp.lee@...> To: "jQuery (English)" <jquery-en@...> Sent: Wednesday, July 01, 2009 12:17 PM Subject: [jQuery] Re: Problem accessing external iframe form values I believe that it's not possible, in general, as you said due to security reasons. On Jul 1, 12:17 am, skywalk3r <luca.martinc...@...> wrote: > Hi, I'm getting sick trying to solve this problem: > > I have a web page A that loads another page B using an iframe (or an > object tag), the B page is an external page (it's not on my server) > and contains a form. > > I want to be able to auto fill the form with pre-defined values. In > jquery i think it's impossible due to security reasons, somebody can > help me?!?! > > I hope I explained the problem correctly, if you need more info just > tell me. > Thanks, |
| Free embeddable forum powered by Nabble | Forum Help |