Showing posts with label Html and IIS. Show all posts
Showing posts with label Html and IIS. Show all posts

Thursday, May 24, 2007

META http-equiv Auto Refresh every 10 second

Meta Object
It represents an HTML element.
It is a element provides meta-information about a HTML document (descriptions and keywords for search engines and refresh rates).

Meta Object have 4 properties:
content - set or get a value (any text)
httpEquiv - Connect to http header (content-type, expires,refresh,set-cookie)
name - name of attribute (author,description,keywords,generator,etc)
scheme - format for the attribute value

Example below show you the using of http-equiv,content and name
Below example will show automatic refresh the page every 10 seconds.
Http-equiv="refresh" will do the refresh action and content=10 is telling
http-equiv to do the refresf after every 10 seconds.

If you need to test it, you just copy and paste to ur file and run it.

<head>
<meta http-equiv="refresh" content="10" />

<meta content='programmingschools,Javascript, asp net programming,' name='keywords' /> </head>
<script type="text/javascript">
now = new Date();
hour = now.getHours();
min = now.getMinutes();
sec = now.getSeconds();
document.write(hour + ":" + min + ":" + sec );
</script>
<body>
</body>

Monday, May 21, 2007

Programming Schools: Create Cookies Cross Domain - Programming Solution Provider

Programming Schools: Create Cookies Cross Domain - Programming Solution Provider

Programming : Create Cookies Cross Domain

IIS setting - Create Cookies Cross Domain
It is impossible to create cookies cross domain because the reason of security. But you still can do some triky to let your web site create cookies cross domain.

To create cookies cross domain, you need to create 2 XML file. These are p3p.xml and policy.xml.

P3P is a W3C standard on how to specify privacy policies for a web site. The standard has both a human readable part to it, as well as a machine readable part.


Step by Step

Open your IIS and expand local computer -> expand Web Site -> Expand Default Web Site -> go to your virtual directory -> right click to properties -> go to Http Header Tab -> Custom Http Headers and click Add -> Key in Custom Header name ="(P3P) and Custom Header Value = "(policyref="Full URL for ur policy file location", CP="NON DSP COR CURa TIA")"

You can create cookies cross domain if you follow all the step. If you got any Question, please leave me a comment.