HighDots Forums  

javascript: and data: urls in css

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss javascript: and data: urls in css in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tony A.
 
Posts: n/a

Default javascript: and data: urls in css - 06-01-2006 , 05:20 AM






Quick question - would I be right in saying that urls in for example
css content or background-image elements cannot be a javascript: or
data: type urls? Doesn't seem to work in Firefox 1.5, just wondering
if that's explicitly specified anywhere.



Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: javascript: and data: urls in css - 06-01-2006 , 05:05 PM






Tony A. <you.dont (AT) need (DOT) to.know> scripsit:

Quote:
Quick question - would I be right in saying that urls in for example
css content or background-image elements cannot be a javascript: or
data: type urls? Doesn't seem to work in Firefox 1.5, just wondering
if that's explicitly specified anywhere.
The javascript: pseudo-URL format is not specified in any published
specification. Most current browsers support this hack in HTML links but
hardly elsewhere.

The data: URL format is in principle standardized, but browser support to it
is limited in HTML and might be nonexistent in CSS constructs. Use http:
URLs instead, making them refer to server-side scripts when needed. (You can
embed data into such a URL, into the query part, naturally assuming that the
script is written to process and use the data to generate the resource it
sends back to the browser.)

--
Yucca, http://www.cs.tut.fi/~jkorpela/



Reply With Quote
  #3  
Old   
Lachlan Hunt
 
Posts: n/a

Default Re: javascript: and data: urls in css - 06-01-2006 , 11:39 PM



Jukka K. Korpela wrote:
Quote:
The data: URL format is in principle standardized, but browser support
to it is limited in HTML and might be nonexistent in CSS constructs.
data: URLs can be used, and are supported, in CSS by at least Firefox
and Opera, but not IE. I can't recall which other browsers do or do not
support them.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox


Reply With Quote
  #4  
Old   
Tony A.
 
Posts: n/a

Default Re: javascript: and data: urls in css - 06-02-2006 , 03:49 AM



Lachlan Hunt wrote:
Quote:
Jukka K. Korpela wrote:
The data: URL format is in principle standardized, but browser
support to it is limited in HTML and might be nonexistent in CSS
constructs.

data: URLs can be used, and are supported, in CSS by at least
Firefox
and Opera, but not IE. I can't recall which other browsers do or do
not support them.
Thanks guys, appreciate the advice.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.