Saturday February 11, 2012 @ 10:03:18 GMT+10    ( Weather:  n/a )
Home » Weblog Archives

Powered byD's Bloggie
Weblog Archive browse by category ...
 → Category :
Display order:
Page 2 of 2   ( 12 entries , showing 11 - 12 )
  Previous  1 2    

Last edited: Tue 2005-10-11 @ 01:56 , by DaRen 1 time(s)

Opera and PHP header() - 7:27 pm
Browser , Bug , PHP , Standards  -  poster 

It's pretty common in PHP where a header() function is used to redirect the user to a specify page.

[ Hide ]
[ Highlight ] [ Text ]
<?
header("Location: http://www.domain.com");
header("Refresh: 5; http://www.domain.com"); // Redirect after 5 secs
?>


The above code will work perfectly. However, given a URI http://www.domain.com/file01.php?do=something#anchorhere

[ Hide ]
[ Highlight ] [ Text ]
<?
// This won't work with Opera 7.54 or even earlier,
// or this never worked before in Opera up to 8.5
header("Location: http://www.domain.com/file01.php?do=something#anchorhere");
// No problem for this though
header("Refresh: 5; http://www.domain.com/file01.php?do=something#anchorhere");
// A method to overcome the problem in Opera
header("Refresh: 0; http://www.domain.com/file01.php?do=something#anchorhere");
?>


Apparently, it's the '#anchorhere' in the URI that causes Opera failed to redirect to that page. According to the HTTP/1.1 protocol, there is no restriction for using #anchor for the URI inside the header's Location field. I haven't test this with IE and FireFox myself but there are reports saying both IE and FF are working fine.
For more info, click here.

SVG - Scalable Vector Graphics - 4:36 pm
Browser , Internet , Standards  -  poster 

Scalable Vector Graphics (SVG) is an XML markup language for describing two-dimensional vector graphics, both static and animated. It is an open standard created by the World Wide Web Consortium, which is also responsible for standards like HTML and XHTML.
Want to know more ? Visit World Wide Web Consortium (W3C) or Wikipedia.

SVG Example



It looks pretty similar like flash animation at first look but it's not the same thing. You can view the source code here. You're still using Internet Explorer or you can't see anything ? Change to FREE + FASTEST Opera web browser now ! If you're unaware about "Opera Eliminates Ad Banner and Licensing Fee" thing, read here.
The samples are borrowed from Opera and other website.

Native Support

Below are some browsers that supports SVG natively , without the need of external plug-in:
  • Opera web browser (since 8.0 Beta 3)
  • Mozilla Firefox web browser (since 1.5 Beta 1)
As well as KDE' Konqueror, Apple's Safari web browser etc.
Page 2 of 2   ( 12 entries , showing 11 - 12 )
  Previous  1 2    
$ view_blog.php 2009.09.17 18:16:41 $
Lost? | XML/HTML sitemap | Contact
38.107.179.242 , 21 queries , 0.2983s
Gzip enabled , CSS compressed , JS compressed
Copyright © 2005-2011 Darren's Outpost