Joe D Williams wrote:
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.
</object>
And a link with onclick:
<a href="../CFR/next.htm" class='button2'
onclick="first( );return false;"
onclick="first( this.href); return false;"
then a script:
function first() {
function first(s)
{
document.getEle mentById("mC"). data="../CFR/next.htm";
document.getEle mentById("mC"). data = s;
is easier to maintain. You might also want to do a feature test with
fallback on document.getEle mentById().
}
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.
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 bugRiddenCrashP ronePieceOfJunk = (
navigator.userA gent.indexOf('M SIE 5') != -1
&& navigator.userA gent.indexOf('M ac') != -1
) // Plone, register_functi on.js:16