Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Hiding elements in between OBJECTS

Posted on 2004-03-22
4
Medium Priority
?
193 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 1500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

636 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