<OBJECT> tag

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Milan

    <OBJECT> tag

    When I put my <object> tag out of <table> (and <div>), VBScript code
    below works fine. When I put <object> tag into <table> (and put
    <table> into <div> tag) it doesn't work. What I am doing wrong?


    <html>
    <script language=VBScri pt>
    Function Toggle()
    If toggleView.inne rText = "Show Files" Then
    toggleView.inne rText = "Hide Files"
    signatures.styl e.display = "none"
    FileList.style. display = ""
    MainTable.style .display = ""
    Else
    toggleView.inne rText = "Show Files"
    signatures.styl e.display = ""
    FileList.style. display = "none"
    MainTable.style .display = "none"
    End If
    End Function
    </script>

    <body>
    <table width="100%">
    <tr><td>
    <b>%THISDIRNAME %</b>--------------
    <a id=toggleView href=vbscript:T oggle>Show Files</a>
    </td><td>
    <a href="http://www.example.org " TARGET="_blank" >EXAMPLE</a>
    </td>
    </table>
    <hr>
    <div id=MainTable style=display:n one><table width="100%"><t r><td>
    <image src="background 1.jpg">
    </td><td><object id=FileList border=0
    width=100% height=50% tabindex=1
    style=display:n one
    classid="clsid: 1820FED0-473E-11D0-A96C-00C04FD705A2">
    </object>
    </td></tr></table>
    </div>
    <div id=signatures>
    Here goes the actual content of the folder...
    </div>
    </body>
    </html>
  • David Dorward

    #2
    Re: &lt;OBJECT&g t; tag

    Milan wrote:
    [color=blue]
    > When I put my <object> tag out of <table> (and <div>), VBScript code
    > below works fine. When I put <object> tag into <table> (and put
    > <table> into <div> tag) it doesn't work. What I am doing wrong?[/color]

    I am really not sure what you mean by this, but...

    (1) Your HTML is invalid. Try fixing that first. <http://validator.w3.or g/>
    (2) Client side VBScript will only work in IE, you should probably consider
    rewriting it in JavaScript (and asking for help in comp.lang.javas cript)

    --
    David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is

    Comment

    • Keith Bowes

      #3
      Re: &lt;OBJECT&g t; tag

      David Dorward wrote:[color=blue]
      > (2) Client side VBScript will only work in IE[/color]

      And so will ActiveX.

      Comment

      • Spartanicus

        #4
        Re: &lt;OBJECT&g t; tag

        Keith Bowes <do.not@spam.me > wrote:
        [color=blue][color=green]
        >> (2) Client side VBScript will only work in IE[/color]
        >
        >And so will ActiveX.[/color]

        IIRC Mozilla has implemented a small subset of ActiveX support, afaik
        it's limited to MS MediaPlayer stuff.

        --
        Spartanicus

        Comment

        Working...