Archive | September 7th, 2010

Web Slice Format Specification – Version 0.9

Web Slice Example

The following example shows how a Web Slice is defined on a Web page for an auction.

<div id="slice1">
   <p>Game System - $66.00</p>
   <div>
      <img src="game.jpg">
      <p>Auction ends: <abbr title="2008-02-28T12:00:00-05:00">6 hours</abbr></p>
   </div>
   <a rel="feedurl" href="www.ebay.com/game.xml">Subscribe to Feed</a>
   <p>This item updates every <span>15</span> minutes.</p>
</div>

more http://msdn.microsoft.com/en-us/library/cc304073%28VS.85%29.aspx#_basic

Posted in Programming0 Comments

Javascript Expected Identifier Error On Internet Explorer

I googled a little and found this could happen if you included an extra comma in some expressions but that wasn’t my case.

Some coffees later I found the offending code was:

var class = $(this).parent().attr('class');

Yep, class seems to be a reserved word in Internet Explorer, thanks again Microsoft for making web developers lifes so difficult.

I just changed the variable name to fix the error, something like this:

var tabClass = $(this).parent().attr('class');

A little later I found another mention of the class problem, hell!, where was this article when I was looking for the fix? It seems you can’t set classes with jQuery’s attr() method in Internet Explorer either, well, I guess that’s why we have addClass() and removeClass().

Posted in JavaScript - Ajax0 Comments


Domain Finder

Domain Finder Tool by Truste.gr

read more for domains

Advertisers

Wedstar all about wedding - gamos - γαμος
Κατασκευή ιστοσελίδων
Domain Names | Hosting

Adds