By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,647 Members | 1,178 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,647 IT Pros & Developers. It's quick & easy.

<OBJECT> tag

P: n/a
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=VBScript>
Function Toggle()
If toggleView.innerText = "Show Files" Then
toggleView.innerText = "Hide Files"
signatures.style.display = "none"
FileList.style.display = ""
MainTable.style.display = ""
Else
toggleView.innerText = "Show Files"
signatures.style.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:Toggle>Show Files</a>
</td><td>
<a href="http://www.example.org" TARGET="_blank">EXAMPLE</a>
</td>
</table>
<hr>
<div id=MainTable style=display:none><table width="100%"><tr><td>
<image src="background1.jpg">
</td><td><object id=FileList border=0
width=100% height=50% tabindex=1
style=display:none
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>
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Milan wrote:
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?


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

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

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 20 '05 #2

P: n/a
David Dorward wrote:
(2) Client side VBScript will only work in IE


And so will ActiveX.

Jul 20 '05 #3

P: n/a
Keith Bowes <do****@spam.me> wrote:
(2) Client side VBScript will only work in IE


And so will ActiveX.


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

--
Spartanicus
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.