Wednesday, March 19, 2008

http://ajaxian.com/archives/svg-on-ie-via-silverlight-via-xslt

This is cool

Server Side Ajax for Classic ASP

There is probably a better name that Server-Side Ajax. its cool to be able to do this.


dim objSrvHTTP

Set objSrvHTTP = Server.CreateObject ("Msxml2.ServerXMLHTTP.3.0")
call objSrvHTTP.open ("GET","http://www.govwaudi.com", false)
call objSrvHTTP.send ()
Response.Write (objSrvHTTP.responseText)



dim objSrvHTTP
Set objSrvHTTP = Server.CreateObject ("Msxml2.ServerXMLHTTP.3.0")
call objSrvHTTP.open ("POST","http://www.example.com/test.asp?algo=1", false)
call objSrvHTTP.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
call objSrvHTTP.send ("variablename=value")
dim answer
answer = objSrvHTTP.responseText


Is there an easy way to do this in php?

Tuesday, March 18, 2008

Inline SVG

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg"
xml:lang="en">
<head>
<title>SVG embedded inline in XHTML</title>
<object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2"></object>
<?import namespace="svg" implementation="#AdobeSVG"?>
</head>
<body>
<h1>SVG embedded inline in XHTML</h1>
<svg:svg width="300" height="200">
<svg:circle cx="150" cy="100" r="50" />
</svg:svg>
</body>
</html>




<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg"
xml:lang="en">
<head>
<title>SVG embedded inline in XHTML</title>
<object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2"></object>
<?import namespace="svg" implementation="#AdobeSVG"?>
</head>
<body>
<h1>SVG embedded inline in XHTML</h1>
<svg:svg width="300" height="200">
<svg:circle cx="150" cy="100" r="50" />
</svg:svg>
</body>
</html>

http://wiki.svg.org/index.php?title=Inline_SVG

Inline SVG

http://developer.mozilla.org/en/docs/SVG_In_HTML_Introduction

good-bIE

Canvas Tag Examples

Canvascape

Safari 3.1

This is copied straight from their apples website. 

CSS3 web fonts
With CSS3 web fonts, web developers can now choose from a limitless selection of
fonts to create stunning new websites using standards-based technology. Safari
automatically recognizes websites that use custom fonts and downloads them as
they’re needed.
CSS animation
Safari is the first browser to support CSS animation. Now anyone can add amazing
interactive animations to their website using open standards. With CSS animations,
web developers can scale, rotate, fade, and skew web elements for elegant, highproduction-
value pages.
HTML 5 media support
The new HTML 5 media tags make it easy for web developers to deliver rich, interactive
video and audio as a native part of any website without the need for proprietary
technologies. The media tags also offer a rich scripting API for controlling media
playback.
Improved SVG support
Safari 3.1 features improved support for Scalable Vector Graphics (SVG), so now
developers can use SVG images anywhere on a page including HTML and CSS
elements. SVG allows developers to create dynamic graphics with the web scripting
languages they’re familiar with.
HTML 5 offline storage support
With offline storage support based on the HTML 5 standard, web developers can
create faster web-based applications that store their information on a user’s local
machine, and then access it instantly rather than having to re-download it over
the Internet.

Saturday, March 15, 2008

iterate through javascript object

function show(value)
{
var count = 0
document.write(showObj(value));

function showObj(o)
{
count++;
var ret = ""
for(var x in o)
{
if (typeof o[x] == "object")
{
for (var i = 0; i < count; i++)
{
ret += "-------";
}
ret += x + ": " + "
" + showObj(o[x]) + "
";
}
else
{
for (var i = 0; i < count; i++)
{
ret += "-------";
}
ret += x + ": " + o[x] + "
";
}
}
count--;
return ret;
}
}