SineCosine
I'm still looking for my Tangent
- Reaction score
- 77
You caught me >.>Until you try it. On more than one browser.
I'll take your advice xD
It's not failed so far <.<
Hmm..
Weird.
I can't do this:
Some_iFrame.style.top = 480;
Or this:
Some_iFrame.style.top = '480px';
It'll stay at zero.
Anyways, I tried appending a form I wanted submitted to the iframe.
Then, I appended the iframe to the document body.
Finally I submitted the form..
The whole page got changed ._.
Not the iframe.
The entire page that the iframe was appended in =x
Is that supposed to happen? =/
[EDIT]
However, if I do this:
01) Append iframe to web page
02) attachEvent to iframe
03) Set iframe src to google.com
Only the iframe navigates away.
I'm guessing I can't just submit a form and expect to not get navigated away =/
[EDIT=2]
I tried:
01) Append iframe to web page
02) attachEvent to iframe
03) Set iframe src to the 'cbox' I want to tag
04) When the page loads, attachEvent's onload fires and appends the form only then.
05) It then submits the form.
Same thing =/
Whole page navigates =x
[EDIT=3]
Umm..
If I wanna' get an Element by ID within an iframe..
How would I do it? o.0
whichIFrame.contentDocument . . . ???
Yea, I got stuck after figuring out that far =x
[EDIT=4]
I think I know why appending the form to the iframe failed.
I was doing it directly.
Some_iFrame.appendChild(some_Form);
That fails, I think.
[EDIT=5]
YESSAH!!!
I DID IT!!
WOOO!!!!
I can finally append a form to an iframe, submit it and not have the entire webpage change!
WOOO!!!!!
I LOVE MY LIFE!!
(But I cheated, I googled for the answer >.>)
The method is the most tiresome ever!