Results 1 to 2 of 2

Thread: [RESOLVED] object.data = location

  1. #1

    Thread Starter
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Resolved [RESOLVED] object.data = location

    HTML Code:
    <object id="object" data="http://www.vbforums.com/" type="text/html"></object>
    This doesn't work:
    HTML Code:
    document.getElementById('object').data = 'http://merri.net';
    This doesn't work:
    HTML Code:
    document.getElementById('object').setAttribute('data', 'http://merri.net');
    Any idea what would work?

  2. #2

    Thread Starter
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: object.data = location

    This was a bug in Firefox 2. It also didn't work very nicely in Opera 9.

    Solution: create an element around the object tag and make an entire replacement of the old element by first clearing everything within the container element and then filling in a new element as required.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width