@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> That's what I'm trying to do: create a form, submit it, and then the "action" page will load into the frame and trigger the onload event.
<0> So far I can't even get the form to submit.
<0> In fact, according to the DOM Inspector, there is no form
<1> you may want to try innerHTML to see what happen
<0> Hmm. I made the frame visible and I tried this:



<0> hidden_iframe.contentDocument.getElementsByTagName('body')[0].innerHTML = 'this is a <b>test</b>';
<0> The form's still empty.
<1> you see the "this is a test"?
<0> Nope.
<0> That's what I said, It's still empty.
<0> I also tried hidden_iframe.contentDocument.innerHTML and hidden_iframe.contentDocument.documentElement.innerHTML
<0> Same thing.
<1> try to load a document
<0> There's no point... I know that will work.
<0> But I need to send POST parameters. That's why I need the form.
<1> wait until current document loaded before running your scrip.
<1> the point is you can have proper document to play with if you load one
<0> Hm. Can't I just make a proper one?
<0> I could load an empty page first, but hat's just going to slow down the script.
<1> i don't know
<1> that is what you think
<0> That is what I know.



<0> Loading an empty page is slower than not loading it. :)
<0> Any day of the week.
<1> it will be still faster than keep on bumping you head on to the wall. and before you just go ahead try that you still don;t know what is hitting your head, at the sometime, it is know that messy with objects between document is not healthy
<1> s/"it is known that messing with objects between document is not healthy"
<0> You have a point, but still, that's what I need to do. I can't do it without "messing with objects between documents".
<1> i have functions in each document that serve as external interface to other document, i do play with dynamic form
<0> Well, there is no "other document" here.
<0> It's just an empty iframe.
<1> the iframe content is another doument, no matter is empty or not
<0> Yeah, but there are no functions is it, are there? :D
<0> in it
<1> that's what i said, load a document, play around see if it work, that work backward find out why
<0> Yeah, I think that's probably what I'll end up doing...
<0> I'll look for a workaround later.
<0> It's not very elegant, but at least it will work. :)
<0> Thanks for the idea.
<1> and you have no choice but do it this way when playing with https
<1> else you will keep getting warning switch between secure and non-secure mode
<0> It's not the case here. Anyway. Thanks again for the advice.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #javascript
or
Go to some related logs:

#linux
#c++
#linux
#php
chemical symbol for lysergic acid
javascript windows login name
xzhqwlinu
#linux
#AllNiteCafe
www.coolmp3.ro



Home  |  disclaimer  |  contact  |  submit quotes