Joe D Williams wrote:
Quote:
First I have an object element:
>
<object id='mC' class='content2'
data='index.htm' type='text/html' style=''>
|
The `style' attribute value MUST NOT be empty. Remove the attribute
specification or specify a value that complies with the standard.
Quote:
</object>
>
And a link with onclick:
>
<a href="../CFR/next.htm" class='button2'
onclick="first();return false;"
|
onclick="first(this.href); return false;"
Quote:
then a script:
>
function first() {
|
function first(s)
{
Quote:
|
document.getElementById("mC").data="../CFR/next.htm";
|
document.getElementById("mC").data = s;
is easier to maintain. You might also want to do a feature test with
fallback on document.getElementById().
Quote:
}
>
Why does this only work, where works is when the new html replaces the old
html, in Firefox?
|
Switching from "http://localhost/" to "http://www.google.com/" on
"http://www.w3.org/" (dynamically created) *WFM* in "Mozilla/5.0 (Windows;
U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3".
You must be doing something else wrong.
Quote:
|
If i cut the return false IE and Safari replace the entire page.
|
Gecko-based UAs do that, too. Works as designed, since the default action
for the hyperlink was not prevented.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.
js:16