473,598 Members | 3,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable printing of flash in favour of internal content

Greetings.

BACKGROUND:

My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are
delivered as application/xhtml+xml for all non-MS web clients, and as
text/xml for all MS web clients (Internet Explorer).

My flash content was originally brought in via the “flash satay” method,
but I have since used some server-side magic do deliver one <objecttag
for IE and another <objecttag for non-IE clients. That way, IE gets
its codebase and classid attributes, which would cause any non-IE client
to ignore the object element entirely.

PROBLEM:

My problem now is with printing. I can’t for the life of me figure out
how to get browsers to IGNORE the object element when printing - so that
they grab the alternative content inside of the object element instead.

You see, inside of my object element is a very nicely formatted header
element (h1 to be exact), and I want this to appear when printing, but
not in any other case. I also want this to appear when the object tag
fails (for example, when someone does not have Flash installed).

I would normally consider using SWFObject, but it does not make use of
standards-compliant JavaScript (it uses document.write) , and therefore
will break when pages make use of the application/xhtml+xml mime type.
In addition, it craps out when people fail to have JS turned on, or
whose browsers (cellphones, handhelds) do not make use of JS. My sites
are meant to be fully compatible and accessible! I am not looking to
have content created by JS!

IMPORTANT:

Please understand, I am looking for a way, during printing, for the
printer to ignore the object element itself in favour of the h1 element
that exists inside the object element. This h1 element exists inside the
object element because it is the “graceful degradation” content for
anyone without Flash (or the correct version of Flash). I am not willing
to entertain any other arrangement of elements (or element creation via
JavaScript) unless it is equally as backward-compatible, elegant and
standards-compliant. Preferably, I am looking for a CSS solution.

TIA.
...Geshel
--
*************** *************** *************** *************** *********
My return e-mail address is an automatically monitored spam honeypot.
Do not send e-mail there unless you wish to be reported as a spammer.
Please send all e-mail to my first name at my last name dot org, with
a subject-line of “NEWSGROUP REPLY FOR NEO GESHEL” (all uppercase).
*************** *************** *************** *************** *********
Mar 16 '07 #1
8 1748
On Mar 15, 7:00 pm, Neo Geshel <got...@geshel. orgwrote:
Greetings.

BACKGROUND:

My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are
delivered as application/xhtml+xml for all non-MS web clients, and as
text/xml for all MS web clients (Internet Explorer).

My flash content was originally brought in via the "flash satay" method,
but I have since used some server-side magic do deliver one <objecttag
for IE and another <objecttag for non-IE clients. That way, IE gets
its codebase and classid attributes, which would cause any non-IE client
to ignore the object element entirely.

PROBLEM:

My problem now is with printing. I can't for the life of me figure out
how to get browsers to IGNORE the object element when printing - so that
they grab the alternative content inside of the object element instead.

You see, inside of my object element is a very nicely formatted header
element (h1 to be exact), and I want this to appear when printing, but
not in any other case. I also want this to appear when the object tag
fails (for example, when someone does not have Flash installed).

I would normally consider using SWFObject, but it does not make use of
standards-compliant JavaScript (it uses document.write) , and therefore
will break when pages make use of the application/xhtml+xml mime type.
In addition, it craps out when people fail to have JS turned on, or
whose browsers (cellphones, handhelds) do not make use of JS. My sites
are meant to be fully compatible and accessible! I am not looking to
have content created by JS!

IMPORTANT:

Please understand, I am looking for a way, during printing, for the
printer to ignore the object element itself in favour of the h1 element
that exists inside the object element. This h1 element exists inside the
object element because it is the "graceful degradation" content for
anyone without Flash (or the correct version of Flash). I am not willing
to entertain any other arrangement of elements (or element creation via
JavaScript) unless it is equally as backward-compatible, elegant and
standards-compliant. Preferably, I am looking for a CSS solution.

TIA.
...Geshel
--
*************** *************** *************** *************** *********
My return e-mail address is an automatically monitored spam honeypot.
Do not send e-mail there unless you wish to be reported as a spammer.
Please send all e-mail to my first name at my last name dot org, with
a subject-line of "NEWSGROUP REPLY FOR NEO GESHEL" (all uppercase).
*************** *************** *************** *************** *********
It is very difficult to respond to you without the source code
available to view. However, since I have a working flash page up that
is at the xhtml 1.1 level, I will point you to it so that you can see
if anything there will help you. The page is at
http://www.cwdjr.info/video_extreme/cancanFLV.php . The source code
you get will be xhtml 1.1 for browsers such as recent Firefox, Opera,
Seamonkey, and Mozilla that say they will at least accept 1.1 in the
header exchange. The page is served as html 4.01 strict to other
browsers, some of which might support xhtml 1.1, but do not say so in
the header exchange. The IE browsers get served html 4.01, for
example.

Microsoft conditional comments are used to route to one object path
for IE and close relatives such as MSN and ATT/Yahoo DSL browsers.
Thus you can make each path completely different if you wish, and you
do not have to use script to do so. It is up to you to see if this
approach might help with your printer problem.

Please note the high resolution video is designed for DSL. A loading
status bar built into the control bar generated when coding the swf
and flv files shows download progress. Also the swf file is rather
small as it is just a container file that generates controls etc. The
actual video is a separate swf which is large. This is the modern
method for using flash video and is now heavily used for videos by
Google, YouTube, MySpace, and several news sites.

Mar 16 '07 #2
On Mar 15, 9:04 pm, "cwdjrxyz" <spamtr...@cwdj r.infowrote:

>The actual video is a separate swf which is large. This is the modern
method for using flash video and is now heavily used for videos by
Google, YouTube, MySpace, and several news sites.
Correction: The actual video is a separate flv (flash video) file,
which is large.

Mar 16 '07 #3
On Mar 15, 9:04 pm, "cwdjrxyz" <spamtr...@cwdj r.infowrote:
On Mar 15, 7:00 pm, Neo Geshel <got...@geshel. orgwrote:
Greetings.
BACKGROUND:
My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are
delivered as application/xhtml+xml for all non-MS web clients, and as
text/xml for all MS web clients (Internet Explorer).
My flash content was originally brought in via the "flash satay" method,
but I have since used some server-side magic do deliver one <objecttag
for IE and another <objecttag for non-IE clients. That way, IE gets
its codebase and classid attributes, which would cause any non-IE client
to ignore the object element entirely.
PROBLEM:
My problem now is with printing. I can't for the life of me figure out
how to get browsers to IGNORE the object element when printing - so that
they grab the alternative content inside of the object element instead.
You see, inside of my object element is a very nicely formatted header
element (h1 to be exact), and I want this to appear when printing, but
not in any other case. I also want this to appear when the object tag
fails (for example, when someone does not have Flash installed).
I would normally consider using SWFObject, but it does not make use of
standards-compliant JavaScript (it uses document.write) , and therefore
will break when pages make use of the application/xhtml+xml mime type.
In addition, it craps out when people fail to have JS turned on, or
whose browsers (cellphones, handhelds) do not make use of JS. My sites
are meant to be fully compatible and accessible! I am not looking to
have content created by JS!
IMPORTANT:
Please understand, I am looking for a way, during printing, for the
printer to ignore the object element itself in favour of the h1 element
that exists inside the object element. This h1 element exists inside the
object element because it is the "graceful degradation" content for
anyone without Flash (or the correct version of Flash). I am not willing
to entertain any other arrangement of elements (or element creation via
JavaScript) unless it is equally as backward-compatible, elegant and
standards-compliant. Preferably, I am looking for a CSS solution.
TIA.
...Geshel
--
*************** *************** *************** *************** *********
My return e-mail address is an automatically monitored spam honeypot.
Do not send e-mail there unless you wish to be reported as a spammer.
Please send all e-mail to my first name at my last name dot org, with
a subject-line of "NEWSGROUP REPLY FOR NEO GESHEL" (all uppercase).
*************** *************** *************** *************** *********

It is very difficult to respond to you without the source code
available to view. However, since I have a working flash page up that
is at the xhtml 1.1 level, I will point you to it so that you can see
if anything there will help you. The page is athttp://www.cwdjr.info/video_extreme/cancanFLV.php. The source code
you get will be xhtml 1.1 for browsers such as recent Firefox, Opera,
Seamonkey, and Mozilla that say they will at least accept 1.1 in the
header exchange. The page is served as html 4.01 strict to other
browsers, some of which might support xhtml 1.1, but do not say so in
the header exchange. The IE browsers get served html 4.01, for
example.

Microsoft conditional comments are used to route to one object path
for IE and close relatives such as MSN and ATT/Yahoo DSL browsers.
Thus you can make each path completely different if you wish, and you
do not have to use script to do so. It is up to you to see if this
approach might help with your printer problem.

Please note the high resolution video is designed for DSL. A loading
status bar built into the control bar generated when coding the swf
and flv files shows download progress. Also the swf file is rather
small as it is just a container file that generates controls etc. The
actual video is a separate flv which is large. This is the modern
method for using flash video and is now heavily used for videos by
Google, YouTube, MySpace, and several news sites.
Another thing that is sometimes useful is to include text when
encoding the swf/flv. For instance see http://www.cwdjr.info/video_extreme/cancanFLV2.php
.. The text in this case is part of the flv. In some cases people want
to print out the flash object. To do this you right click on the flash
image and select to print. This gives you a print of the area of the
flash image and nothing else on the page. Thus a text describing what
the flash image is often is useful. Of course when you print the whole
page in the normal manner, the flash object is not printed at all for
the way most printers are set up, just as one usually does not print
background color to save ink and avoid slower printing than necessary.
Mar 16 '07 #4
cwdjrxyz wrote:
On Mar 15, 7:00 pm, Neo Geshel <got...@geshel. orgwrote:
>Greetings.

BACKGROUND:

My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are
delivered as application/xhtml+xml for all non-MS web clients, and as
text/xml for all MS web clients (Internet Explorer).

My flash content was originally brought in via the "flash satay" method,
but I have since used some server-side magic do deliver one <objecttag
for IE and another <objecttag for non-IE clients. That way, IE gets
its codebase and classid attributes, which would cause any non-IE client
to ignore the object element entirely.

PROBLEM:

My problem now is with printing. I can't for the life of me figure out
how to get browsers to IGNORE the object element when printing - so that
they grab the alternative content inside of the object element instead.

You see, inside of my object element is a very nicely formatted header
element (h1 to be exact), and I want this to appear when printing, but
not in any other case. I also want this to appear when the object tag
fails (for example, when someone does not have Flash installed).

I would normally consider using SWFObject, but it does not make use of
standards-compliant JavaScript (it uses document.write) , and therefore
will break when pages make use of the application/xhtml+xml mime type.
In addition, it craps out when people fail to have JS turned on, or
whose browsers (cellphones, handhelds) do not make use of JS. My sites
are meant to be fully compatible and accessible! I am not looking to
have content created by JS!

IMPORTANT:

Please understand, I am looking for a way, during printing, for the
printer to ignore the object element itself in favour of the h1 element
that exists inside the object element. This h1 element exists inside the
object element because it is the "graceful degradation" content for
anyone without Flash (or the correct version of Flash). I am not willing
to entertain any other arrangement of elements (or element creation via
JavaScript) unless it is equally as backward-compatible, elegant and
standards-compliant. Preferably, I am looking for a CSS solution.

TIA.
...Geshel
--
************** *************** *************** *************** **********
My return e-mail address is an automatically monitored spam honeypot.
Do not send e-mail there unless you wish to be reported as a spammer.
Please send all e-mail to my first name at my last name dot org, with
a subject-line of "NEWSGROUP REPLY FOR NEO GESHEL" (all uppercase).
************** *************** *************** *************** **********
It is very difficult to respond to you without the source code
available to view. However, since I have a working flash page up that
is at the xhtml 1.1 level, I will point you to it so that you can see
if anything there will help you. The page is at
http://www.cwdjr.info/video_extreme/cancanFLV.php . The source code
you get will be xhtml 1.1 for browsers such as recent Firefox, Opera,
Seamonkey, and Mozilla that say they will at least accept 1.1 in the
header exchange. The page is served as html 4.01 strict to other
browsers, some of which might support xhtml 1.1, but do not say so in
the header exchange. The IE browsers get served html 4.01, for
example.

Microsoft conditional comments are used to route to one object path
for IE and close relatives such as MSN and ATT/Yahoo DSL browsers.
Thus you can make each path completely different if you wish, and you
do not have to use script to do so. It is up to you to see if this
approach might help with your printer problem.

Please note the high resolution video is designed for DSL. A loading
status bar built into the control bar generated when coding the swf
and flv files shows download progress. Also the swf file is rather
small as it is just a container file that generates controls etc. The
actual video is a separate swf which is large. This is the modern
method for using flash video and is now heavily used for videos by
Google, YouTube, MySpace, and several news sites.
Here is my code:

<object id="head" type="applicati on/x-shockwave-flash"
data="/swf/header.swf" width="758" height="200">
<param name="allowScri ptAccess" value="sameDoma in" />
<param name="movie" value="/swf/header.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<h1><a href="/">Generic Corp</a></h1>
</object>

Simply put, when a browser goes to print, or provides a print preview, I
want it to ignore the object element completely, in favour of the h1
element inside of the object (the object’s alternative, or “graceful
degradation” content).

That is, I *DO NOT* want the object element to show up on either the
print preview, or the actual print output at all. It should be as if the
object element doesn’t even exist. However, I *DO* want the object’s
“graceful degradation” content, the h1 (present for thosewho do not
have Flash installed) to show up in the print preview AND the print output.

TIA.
...Geshel
--
*************** *************** *************** *************** *********
My return e-mail address is an automatically monitored spam honeypot.
Do not send e-mail there unless you wish to be reported as a spammer.
Please send all e-mail to my first name at my last name dot org, with
a subject-line of “NEWSGROUP REPLY FOR NEO GESHEL” (all uppercase).
*************** *************** *************** *************** *********
Mar 16 '07 #5
On Mar 16, 11:58 am, Neo Geshel <got...@geshel. orgwrote:
cwdjrxyz wrote:
On Mar 15, 7:00 pm, Neo Geshel <got...@geshel. orgwrote:
Greetings.
BACKGROUND:
My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are
delivered as application/xhtml+xml for all non-MS web clients, and as
text/xml for all MS web clients (Internet Explorer).
My flash content was originally brought in via the "flash satay" method,
but I have since used some server-side magic do deliver one <objecttag
for IE and another <objecttag for non-IE clients. That way, IE gets
its codebase and classid attributes, which would cause any non-IE client
to ignore the object element entirely.
PROBLEM:
My problem now is with printing. I can't for the life of me figure out
how to get browsers to IGNORE the object element when printing - so that
they grab the alternative content inside of the object element instead.
You see, inside of my object element is a very nicely formatted header
element (h1 to be exact), and I want this to appear when printing, but
not in any other case. I also want this to appear when the object tag
fails (for example, when someone does not have Flash installed).
I would normally consider using SWFObject, but it does not make use of
standards-compliant JavaScript (it uses document.write) , and therefore
will break when pages make use of the application/xhtml+xml mime type.
In addition, it craps out when people fail to have JS turned on, or
whose browsers (cellphones, handhelds) do not make use of JS. My sites
are meant to be fully compatible and accessible! I am not looking to
have content created by JS!
IMPORTANT:
Please understand, I am looking for a way, during printing, for the
printer to ignore the object element itself in favour of the h1 element
that exists inside the object element. This h1 element exists inside the
object element because it is the "graceful degradation" content for
anyone without Flash (or the correct version of Flash). I am not willing
to entertain any other arrangement of elements (or element creation via
JavaScript) unless it is equally as backward-compatible, elegant and
standards-compliant. Preferably, I am looking for a CSS solution.
TIA.
...Geshel
--
*************** *************** *************** *************** *********
My return e-mail address is an automatically monitored spam honeypot.
Do not send e-mail there unless you wish to be reported as a spammer.
Please send all e-mail to my first name at my last name dot org, with
a subject-line of "NEWSGROUP REPLY FOR NEO GESHEL" (all uppercase).
*************** *************** *************** *************** *********
It is very difficult to respond to you without the source code
available to view. However, since I have a working flash page up that
is at the xhtml 1.1 level, I will point you to it so that you can see
if anything there will help you. The page is at
http://www.cwdjr.info/video_extreme/cancanFLV.php. The source code
you get will be xhtml 1.1 for browsers such as recent Firefox, Opera,
Seamonkey, and Mozilla that say they will at least accept 1.1 in the
header exchange. The page is served as html 4.01 strict to other
browsers, some of which might support xhtml 1.1, but do not say so in
the header exchange. The IE browsers get served html 4.01, for
example.
Microsoft conditional comments are used to route to one object path
for IE and close relatives such as MSN and ATT/Yahoo DSL browsers.
Thus you can make each path completely different if you wish, and you
do not have to use script to do so. It is up to you to see if this
approach might help with your printer problem.
Please note the high resolution video is designed for DSL. A loading
status bar built into the control bar generated when coding the swf
and flv files shows download progress. Also the swf file is rather
small as it is just a container file that generates controls etc. The
actual video is a separate swf which is large. This is the modern
method for using flash video and is now heavily used for videos by
Google, YouTube, MySpace, and several news sites.

Here is my code:

<object id="head" type="applicati on/x-shockwave-flash"
data="/swf/header.swf" width="758" height="200">
<param name="allowScri ptAccess" value="sameDoma in" />
<param name="movie" value="/swf/header.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<h1><a href="/">Generic Corp</a></h1>
</object>

Simply put, when a browser goes to print, or provides a print preview, I
want it to ignore the object element completely, in favour of the h1
element inside of the object (the object's alternative, or "graceful
degradation" content).

That is, I *DO NOT* want the object element to show up on either the
print preview, or the actual print output at all. It should be as if the
object element doesn't even exist. However, I *DO* want the object's
"graceful degradation" content, the h1 (present for those who do not
have Flash installed) to show up in the print preview AND the print output.

TIA.
...Geshel
--
*************** *************** *************** *************** *********
My return e-mail address is an automatically monitored spam honeypot.
Do not send e-mail there unless you wish to be reported as a spammer.
Please send all e-mail to my first name at my last name dot org, with
a subject-line of "NEWSGROUP REPLY FOR NEO GESHEL" (all uppercase).
*************** *************** *************** *************** *********
Your approach does not seem to work in adding the header within the
object. I added a header to my second example in both the IE and non-
IE path. The only browser I have that does not support flash is the
W3C Amaya. When viewed on it, nothing shows as if the flash objects
were not there at all. This tests only the non-IE path. I described
earlier how printing responds to a flash object. It could be that the
added header would work on an ActiveX object as used in the IE path,
but I have no browser with full ActiveX support without flash to view
the page - that would be an IE browser or close relative. Even if it
does work, that would still leave a problem for the non-IE browsers.

I suggest that you make a second page that appears as you want it for
printing out. Then just link to it from the main page for those who
want to print. The print page would have your header instead of the
flash display, and anything else that would make the printed page look
better. I have done this in the past for some of my pages that present
problems in printing rather than go to elaborate means to revise the
page for both viewing and printing. This method is quite common. For
example, Yahoo email has a print view button that reformats the page
for better printing of the eMail. Since server disc space is now dirt
cheap, a bit more size for the added page is of no concern.

I would not be much concerned about browsers that do not have flash.
The reason so many major sites are now using flash is that more OSs
and browsers support it than other players such as as WMP, Real, etc.
Flash can be installed on many more OSs than can WMP, for example. In
fact, if you buy a new computer, you likely will have to go to
considerable trouble to uninstall flash, and the average computer user
likely will never bother to do so. This has been so for several years.
Flash is not my favorite format for high quality video, but I can see
why it is so often used on large web sites designed to be viewed by
the masses.

Mar 16 '07 #6
cwdjrxyz wrote:
On Mar 16, 11:58 am, Neo Geshel <got...@geshel. orgwrote:
>>
<object id="head" type="applicati on/x-shockwave-flash"
data="/swf/header.swf" width="758" height="200">
<param name="allowScri ptAccess" value="sameDoma in" />
<param name="movie" value="/swf/header.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<h1><a href="/">Generic Corp</a></h1>
</object>

Simply put, when a browser goes to print, or provides a print preview, I
want it to ignore the object element completely, in favour of the h1
element inside of the object (the object's alternative, or "graceful
degradation " content).

That is, I *DO NOT* want the object element to show up on either the
print preview, or the actual print output at all. It should be as if the
object element doesn't even exist. However, I *DO* want the object's
"graceful degradation" content, the h1 (present for those who do not
have Flash installed) to show up in the print preview AND the print output.

I suggest that you make a second page that appears as you want it for
printing out. Then just link to it from the main page for those who
want to print. The print page would have your header instead of the
flash display, and anything else that would make the printed page look
better.
Does there have to be a completely separate page? Bend CSS to your will
(assuming it's working in your users' browsers in the first place)?

In the XHTML:
<head>
<link rel="Stylesheet " href="MyStyle.c ss" type="text/css" media="screen">
<link rel="Stylesheet " href="MyStylePr int.css" type="text/css"
media="print">

<object blah blah...>
<h1 class="flashthi ngy">Our company is dynamic</h1>

In MyStyle.css:
object#head {visibility:vis ible;}
h1.flashthingy {display:none;}

In MyStylePrint.cs s:
object#head {visibility:hid den;}
h1.flashthingy {display:block; }

Whether you use visibility or display to hide the Flash object depends
on its position and spacing relative to other elements. When I use CSS
to hide a nav menu when printing, I often use visibility:hidd en so as to
preserve the layout. Sometimes, though, it's preferable to completely
/hide/ the nav menu (display:none;) to /not/ preserve the layout. You'll
have to study your design and see.

Caveat: not sure this will work for you, so try it and test it well. I
have no clue regarding <h1or other texts in Flash objects so cannot
help you (Neo) directly.

HTH. GL.
--
John
Distressed that Thunderbird will not let me post to multiple newsgroups.
Mar 16 '07 #7
On Mar 16, 4:58 pm, "cwdjrxyz" <spamtr...@cwdj r.infowrote:
On Mar 16, 11:58 am, Neo Geshel <got...@geshel. orgwrote:
cwdjrxyz wrote:
On Mar 15, 7:00 pm, Neo Geshel <got...@geshel. orgwrote:
>Greetings.
>BACKGROUND:
>My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are
>delivered as application/xhtml+xml for all non-MS web clients, and as
>text/xml for all MS web clients (Internet Explorer).
>My flash content was originally brought in via the "flash satay" method,
>but I have since used some server-side magic do deliver one <objecttag
>for IE and another <objecttag for non-IE clients. That way, IE gets
>its codebase and classid attributes, which would cause any non-IE client
>to ignore the object element entirely.
>PROBLEM:
>My problem now is with printing. I can't for the life of me figure out
>how to get browsers to IGNORE the object element when printing - so that
>they grab the alternative content inside of the object element instead.
>You see, inside of my object element is a very nicely formatted header
>element (h1 to be exact), and I want this to appear when printing, but
>not in any other case. I also want this to appear when the object tag
>fails (for example, when someone does not have Flash installed).
>I would normally consider using SWFObject, but it does not make use of
>standards-compliant JavaScript (it uses document.write) , and therefore
>will break when pages make use of the application/xhtml+xml mime type.
>In addition, it craps out when people fail to have JS turned on, or
>whose browsers (cellphones, handhelds) do not make use of JS. My sites
>are meant to be fully compatible and accessible! I am not looking to
>have content created by JS!
>IMPORTANT:
>Please understand, I am looking for a way, during printing, for the
>printer to ignore the object element itself in favour of the h1 element
>that exists inside the object element. This h1 element exists inside the
>object element because it is the "graceful degradation" content for
>anyone without Flash (or the correct version of Flash). I am not willing
>to entertain any other arrangement of elements (or element creation via
>JavaScript) unless it is equally as backward-compatible, elegant and
>standards-compliant. Preferably, I am looking for a CSS solution.
>TIA.
>...Geshel
>--
>************** *************** *************** *************** **********
>My return e-mail address is an automatically monitored spam honeypot.
>Do not send e-mail there unless you wish to be reported as a spammer.
>Please send all e-mail to my first name at my last name dot org, with
>a subject-line of "NEWSGROUP REPLY FOR NEO GESHEL" (all uppercase).
>************** *************** *************** *************** **********
It is very difficult to respond to you without the source code
available to view. However, since I have a working flash page up that
is at the xhtml 1.1 level, I will point you to it so that you can see
if anything there will help you. The page is at
>http://www.cwdjr.info/video_extreme/cancanFLV.php. The source code
you get will be xhtml 1.1 for browsers such as recent Firefox, Opera,
Seamonkey, and Mozilla that say they will at least accept 1.1 in the
header exchange. The page is served as html 4.01 strict to other
browsers, some of which might support xhtml 1.1, but do not say so in
the header exchange. The IE browsers get served html 4.01, for
example.
Microsoft conditional comments are used to route to one object path
for IE and close relatives such as MSN and ATT/Yahoo DSL browsers.
Thus you can make each path completely different if you wish, and you
do not have to use script to do so. It is up to you to see if this
approach might help with your printer problem.
Please note the high resolution video is designed for DSL. A loading
status bar built into the control bar generated when coding the swf
and flv files shows download progress. Also the swf file is rather
small as it is just a container file that generates controls etc. The
actual video is a separate swf which is large. This is the modern
method for using flash video and is now heavily used for videos by
Google, YouTube, MySpace, and several news sites.
Here is my code:
<object id="head" type="applicati on/x-shockwave-flash"
data="/swf/header.swf" width="758" height="200">
<param name="allowScri ptAccess" value="sameDoma in" />
<param name="movie" value="/swf/header.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<h1><a href="/">Generic Corp</a></h1>
</object>
Simply put, when a browser goes to print, or provides a print preview, I
want it to ignore the object element completely, in favour of the h1
element inside of the object (the object's alternative, or "graceful
degradation" content).
That is, I *DO NOT* want the object element to show up on either the
print preview, or the actual print output at all. It should be as if the
object element doesn't even exist. However, I *DO* want the object's
"graceful degradation" content, the h1 (present for those who do not
have Flash installed) to show up in the print preview AND the print output.
TIA.
...Geshel
--
*************** *************** *************** *************** *********
My return e-mail address is an automatically monitored spam honeypot.
Do not send e-mail there unless you wish to be reported as a spammer.
Please send all e-mail to my first name at my last name dot org, with
a subject-line of "NEWSGROUP REPLY FOR NEO GESHEL" (all uppercase).
*************** *************** *************** *************** *********

Your approach does not seem to work in adding the header within the
object. I added a header to my second example in both the IE and non-
IE path. The only browser I have that does not support flash is the
W3C Amaya. When viewed on it, nothing shows as if the flash objects
were not there at all. This tests only the non-IE path. I described
earlier how printing responds to a flash object. It could be that the
added header would work on an ActiveX object as used in the IE path,
but I have no browser with full ActiveX support without flash to view
the page - that would be an IE browser or close relative. Even if it
does work, that would still leave a problem for the non-IE browsers.

I suggest that you make a second page that appears as you want it for
printing out. Then just link to it from the main page for those who
want to print. The print page would have your header instead of the
flash display, and anything else that would make the printed page look
better. I have done this in the past for some of my pages that present
problems in printing rather than go to elaborate means to revise the
page for both viewing and printing. This method is quite common. For
example, Yahoo email has a print view button that reformats the page
for better printing of the eMail. Since server disc space is now dirt
cheap, a bit more size for the added page is of no concern.

I would not be much concerned about browsers that do not have flash.
The reason so many major sites are now using flash is that more OSs
and browsers support it than other players such as as WMP, Real, etc.
Flash can be installed on many more OSs than can WMP, for example. In
fact, if you buy a new computer, you likely will have to go to
considerable trouble to uninstall flash, and the average computer user
likely will never bother to do so. This has been so for several years.
Flash is not my favorite format for high quality video, but I can see
why it is so often used on large web sites designed to be viewed by
the masses.
If you can tolerate having your header just above the top of the flash
image position when the flash image is present or not, the solution is
simple. See http://www.cwdjr.info/video_extreme/cancanFLV2.php which
has been modified. The header and flash objects are all in a division,
with the header first. If you use the usual method of printing out and
the flash image is present, the flash image is not shown and replaced
by white space where it would be. However the header still shows.
However, if flash is not supported , just the header is shown and
printed out with no white space reserved for where the flash image
would be. The header I used is "PEEK-A-BOO". I could very well live
with this, but then I do not know the exact layout you have in mind
and if it is important enough to you to justify a lot of extra
complication.

Mar 17 '07 #8
John Hosking wrote:
cwdjrxyz wrote:
>On Mar 16, 11:58 am, Neo Geshel <got...@geshel. orgwrote:
>>>
<object id="head" type="applicati on/x-shockwave-flash"
data="/swf/header.swf" width="758" height="200">
<param name="allowScri ptAccess" value="sameDoma in" />
<param name="movie" value="/swf/header.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<h1><a href="/">Generic Corp</a></h1>
</object>

Simply put, when a browser goes to print, or provides a print preview, I
want it to ignore the object element completely, in favour of the h1
element inside of the object (the object's alternative, or "graceful
degradation " content).

That is, I *DO NOT* want the object element to show up on either the
print preview, or the actual print output at all. It should be as if the
object element doesn't even exist. However, I *DO* want the object's
"graceful degradation" content, the h1 (present for those who do not
have Flash installed) to show up in the print preview AND the print
output.

I suggest that you make a second page that appears as you want it for
printing out. Then just link to it from the main page for those who
want to print. The print page would have your header instead of the
flash display, and anything else that would make the printed page look
better.
Does there have to be a completely separate page? Bend CSS to your will
(assuming it's working in your users' browsers in the first place)?

In the XHTML:
<head>
<link rel="Stylesheet " href="MyStyle.c ss" type="text/css" media="screen">
<link rel="Stylesheet " href="MyStylePr int.css" type="text/css"
media="print">

<object blah blah...>
<h1 class="flashthi ngy">Our company is dynamic</h1>

In MyStyle.css:
object#head {visibility:vis ible;}
h1.flashthingy {display:none;}

In MyStylePrint.cs s:
object#head {visibility:hid den;}
h1.flashthingy {display:block; }

Whether you use visibility or display to hide the Flash object depends
on its position and spacing relative to other elements. When I use CSS
to hide a nav menu when printing, I often use visibility:hidd en so as to
preserve the layout. Sometimes, though, it's preferable to completely
/hide/ the nav menu (display:none;) to /not/ preserve the layout. You'll
have to study your design and see.

Caveat: not sure this will work for you, so try it and test it well. I
have no clue regarding <h1or other texts in Flash objects so cannot
help you (Neo) directly.

HTH. GL.
The problem with this method is with people who have flash disabled, or
who have an alternative user-agent. Those without flash or with an
older, incompatible version of flash, will not see any type of header at
all, because there is no <h1inside the <object>. However, if we were
to put two on the page - one inside the object for those that cannot use
the object element, and one outside for print purposes - those who
cannot use the object element and go to print out the page will see two
headers.

I can see many situations where either no headers, or both headers would
be seen. This would not be a good situation. Besides, I am trying to
implement a semantically correct way of doing this; and that means that
only one <h1can and will exist on the page.

In fact, the only thing that I think *might* work is sIFR
(http://www.mikeindustries.com/sifr/), as it allows the <h1to exist
all by itself, and dynamically adds the flash if and only if the user
has the right version of flash installed. Problem is, it seems you
cannot specify pre-made flash files... it’s meant as a rich text tool
that dynamically reads what is inside the tagged element, and renders it
as fancily-formatted flash text (your own desired font, which the end
user doesn’t necessarily have).

Thanks, anyways.
...Geshel
--
*************** *************** *************** *************** *********
My return e-mail address is an automatically monitored spam honeypot.
Do not send e-mail there unless you wish to be reported as a spammer.
Please send all e-mail to my first name at my last name dot org, with
a subject-line of “NEWSGROUP REPLY FOR NEO GESHEL” (all uppercase).
*************** *************** *************** *************** *********
Mar 21 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2798
by: Jason | last post by:
this is my code and what i get... i'm accessing this through this url http://192.168.0.2/php/test2/test.php?user=me@test.ca&subject=test it grabs the correct stuff from the database, but doesn't put it into flash. this is what i have in the flash file... onClipEvent (load) {
6
4754
by: Gustav Medler | last post by:
Hello, there is a known problem with Opera and the execution of content shown in <NOSCRIPT> tag. Everythings works fine, if there is only one simple script like: http://www.dr-wald.de/test/Opera-NOSCRIPT.html Switching off Javascript will show the alternative content. Javascript enabled will only show the JS-content, _not_ the <NOSCRIPT> content.
2
12467
by: gerb | last post by:
Hello, I realise this is not a pure Javascript question, and that VBscript is probably involved at some point, though not as much as I fear. If you opened this item looking for a pute Javascript question, I'm sorry. For an IE6 intranet application I'm running into some problems regarding printing screens from the browser. The specs dictate these requirements:
22
6946
by: Matt | last post by:
When browsing a web page a user has the ability to highlight content on a page (by holding down the left mouse button and dragging the mouse over the desired content). Is there a way to disable this option? I assume there isn't but I have to try.
17
3015
by: Alan Z. Scharf | last post by:
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web application? Thanks. Alan
115
13243
by: post2google | last post by:
I was thinking about where to go for lunch the other day, so I went to hardees.com to see what the menu looked like these days. What comes up is a big note that my flash version is not new enough so I can't use the site. What complete losers! When are businesses going to understand that the purpose of a web site is to communicate with customers or business parterns and NOT so your "web master or "web engineer" can show off what they...
2
3026
by: letsgetsilly | last post by:
I'm developing the external corporate website for my company in Visual Studio 2003 using html, css, and a user web control for the header/navigation. When I try to print any of the pages only the header image (an <img> located in the Web User control) and the footer (also <img>) will print, but none of the text, graphics, background colors, or background images that are included. My page is a liquid 3 column + 1 header + 1 footer CSS...
11
3510
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of the fee I pay for web hosting. 'Instant Website' provides the option of having your opening page as a Flash Page, which you'll see if you visit <www.alpha1.org.au>. Well, you'll see it if you visit from a Windows machine. For some reason, when...
8
5882
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web clients (Internet Explorer). My flash content was originally brought in via the “flash satay” method, but I have since used some server-side magic do deliver one <objecttag
4
2473
by: Andrus | last post by:
I created form which uses double buffering for everything. If form is resized, listbox content is flashing. In MONO ListBox is resized smoothly. How to fix code so that it does not flash in .NET also ? Andrus. using System.Windows.Forms;
0
7991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8395
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8050
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8265
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5850
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3898
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3939
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1504
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.