Solved

Hiding elements in between OBJECTS

Posted on 2004-03-22
4
187 Views
Last Modified: 2010-04-06
Hi,

I know the subject was a bit non-descriptive so i'll explain again. Ive got two activeX objects on my page, and in between the opening and closing tags i have a point ".". This is for a reason in that it is a windows media player activeX and netscape has problems reading the version info from the object without something in between the opening and closing tags.

This causes a problem for browsers such as NS6 that cant initiate the activex object it obviously prints out the "." on the page. Is there any way, probably using CSS i can set this new line to zero in height, or can i set the page top-margin to something like -5 ????

Any ideas anyone

Thanks in advance

Al
0
Comment
Question by:higgsy
  • 3
4 Comments
 
LVL 31

Accepted Solution

by:
seanpowell earned 500 total points
ID: 10648779
One option:

<div style="display:none;">.</div>
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 10648815
I'm curious though - can you not include the embed tag for netscape browsers?

<HTML>
<HEAD>
<TITLE>Windows Media Player</TITLE>
</HEAD>
<BODY>
<OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=240
CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<PARAM name="autoStart" value="True">
<PARAM name="filename" value="http://WebServer/MyFile.wvx">

<EMBED TYPE="application/x-mplayer2" SRC="http://WebServer/MyFile.wvx" NAME="MediaPlayer" WIDTH=320 HEIGHT=240></EMBED>

</OBJECT>
</BODY>
</HTML>
0
 

Author Comment

by:higgsy
ID: 10649496
Hi Sean,

You can embedd the Windows Media 6.4 Plugin for Netscape browsers, however one of the main goals of my app was to make it visually appear the same to all browsers. To be able to do this you need to be able to script the object.

I have managed at last to build an application that works for Netscape 6+/MSIE 4+ and Mozilla. Opera unfortunately does not want to let it users have any sort of decent experience on the web....This unfortunately all depends on the user having Windows Media 7 (For IE), or 9 Series for other browsers. I am now 75% of modifying my script to also use both Quicktime and RealPlayer ActiveX objects - that should hopefully cover everyone.....

Your solution worked by the way, so a nice simple 500 points coming to you.

Thanks

al
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 10649549
Thanks Al
I'm sorry it wasn't worth an A - you should have just asked for more options from me - I would have been happy to oblige :-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Xsl Nested Loop 4 25
What is the normal amount of queries 5 74
SAMI File <SYNC Start = (number of millisecond)> Question 3 63
Getting attribute Values using xslt 4 40
There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now