In spite of using iFrame the whole page reloads in IE?!?

In spite of using iFrame the whole page reloads in IE?!?

am 30.01.2008 11:12:42 von MaigoSchaeffer

Hello together,

I have the following problem: I use a iFrame in a aspx-site whose
contents should be reloaded all three seconds, because it concerns a
running curve. This also functions admirably with Firefox, but NOT
with IE 5/6 or 7...

Any ideas?

Here is the code of my iFrame:

Re: In spite of using iFrame the whole page reloads in IE?!?

am 30.01.2008 11:41:10 von me

iframe is a element of the parent document, so when you state
'document.location.reload' you are reloading the parent document. you need
to add the 'document.location.reload' line to the child page not to the
iframe



wrote in message
news:1cb8f432-654a-4948-b7c9-28c7f0e762b0@v4g2000hsf.googleg roups.com...
> Hello together,
>
> I have the following problem: I use a iFrame in a aspx-site whose
> contents should be reloaded all three seconds, because it concerns a
> running curve. This also functions admirably with Firefox, but NOT
> with IE 5/6 or 7...
>
> Any ideas?
>
> Here is the code of my iFrame:
>
>

Re: In spite of using iFrame the whole page reloads in IE?!?

am 30.01.2008 11:54:16 von MaigoSchaeffer

On 30 Jan., 11:41, "ThatsIT.net.au" wrote:
> iframe is a element of the parent document, so when you state
> 'document.location.reload' you are reloading the parent document. you need
> to add the 'document.location.reload' line to the child page not to the
> iframe

Thank you ThatsIT.net.au,

you mean I should state 'document.location.reload' to the body-
element???
I tried this, but has no affection on the behavior?!?

I want ONLY the iFrame to be reloaded, not the whole Page!
Why does it work in Firefox perfectly???

Re: In spite of using iFrame the whole page reloads in IE?!?

am 30.01.2008 12:11:38 von Patrice

I would move the relaod mechanism insise the iframe content to clear any
ambiguity... you could also explictely address the inner document.

If you use document in the event of an iframe, is "document" the document
shown by the iframe or the document in which the iframe is ? Not sure it is
explcitely defined somewhere (I saw some other marginal behaviors difference
between IE and Firefox I believe are not in the specification, if I remember
a browser will "reset" fields as they are in the original source, another as
they are once startup javascript code ran, not sure it is fully specified at
w3)...

--
Patrice

a écrit dans le message de news:
0c1aa4a3-aabb-45a9-b71e-fe3cc2acc761@u10g2000prn.googlegroup s.com...
> On 30 Jan., 11:41, "ThatsIT.net.au" wrote:
>> iframe is a element of the parent document, so when you state
>> 'document.location.reload' you are reloading the parent document. you
>> need
>> to add the 'document.location.reload' line to the child page not to the
>> iframe
>
> Thank you ThatsIT.net.au,
>
> you mean I should state 'document.location.reload' to the body-
> element???
> I tried this, but has no affection on the behavior?!?
>
> I want ONLY the iFrame to be reloaded, not the whole Page!
> Why does it work in Firefox perfectly???
>

Re: In spite of using iFrame the whole page reloads in IE?!?

am 30.01.2008 12:13:47 von MaigoSchaeffer

On 30 Jan., 11:54, MaigoSchaef...@googlemail.com wrote:
> On 30 Jan., 11:41, "ThatsIT.net.au" wrote:
>
> > iframe is a element of the parent document, so when you state
> > 'document.location.reload' you are reloading the parent document. you need
> > to add the 'document.location.reload' line to the child page not to the
> > iframe
>
> Thank you ThatsIT.net.au,
>
> you mean I should state 'document.location.reload' to the body-
> element???
> I tried this, but has no affection on the behavior?!?
>
> I want ONLY the iFrame to be reloaded, not the whole Page!
> Why does it work in Firefox perfectly???

I got it - the rolad must be stated in the body-element of the source
file of the iframe :-)

Re: In spite of using iFrame the whole page reloads in IE?!?

am 30.01.2008 14:44:07 von me

wrote in message
news:9e295f4a-c96d-47f0-8c56-0c64ab2df66e@m34g2000hsf.google groups.com...
> On 30 Jan., 11:54, MaigoSchaef...@googlemail.com wrote:
>> On 30 Jan., 11:41, "ThatsIT.net.au" wrote:
>>
>> > iframe is a element of the parent document, so when you state
>> > 'document.location.reload' you are reloading the parent document. you
>> > need
>> > to add the 'document.location.reload' line to the child page not to the
>> > iframe
>>
>> Thank you ThatsIT.net.au,
>>
>> you mean I should state 'document.location.reload' to the body-
>> element???
>> I tried this, but has no affection on the behavior?!?
>>
>> I want ONLY the iFrame to be reloaded, not the whole Page!
>> Why does it work in Firefox perfectly???
>
> I got it - the rolad must be stated in the body-element of the source
> file of the iframe :-)

yes the child document

Why does it have to reload anyhow?

does it run code on the reload? if so you would be better of using
"setinterval("doSomthning()",300)" and run a function every so many seconds