Solved

Hiding elements in between OBJECTS

Posted on 2004-03-22
4
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

734 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