<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>vivmedia.net</title>
	<atom:link href="http://blog.vivmedia.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://blog.vivmedia.net</link>
	<description>Viv Media Graphics &#038; Web Development Blog</description>
	<lastBuildDate>Mon, 10 Mar 2008 11:38:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Don&#8217;t Miss the eBay Store Referral Credit</title>
		<link>http://blog.vivmedia.net/?p=4</link>
		<comments>http://blog.vivmedia.net/?p=4#comments</comments>
		<pubDate>Mon, 10 Mar 2008 11:38:12 +0000</pubDate>
		<dc:creator>Mike Viv</dc:creator>
				<category><![CDATA[eBay]]></category>

		<guid isPermaLink="false">http://blog.vivmedia.net/?p=4</guid>
		<description><![CDATA[Ok&#8230;maybe you seasoned e-Bayer&#8217;s already know this stuff.  It&#8217;s our first foray into eBay and we almost missed it on our first pass.  If you&#8217;re linking to your eBay site from off-site, make sure you include the parameter &#8220;refid=store&#8221; in your link.  If the visit converts to a sale, you will currently save 75% of [...]]]></description>
			<content:encoded><![CDATA[<p>Ok&#8230;maybe you seasoned e-Bayer&#8217;s already know this stuff.  It&#8217;s our first foray into eBay and we almost missed it on our first pass.  If you&#8217;re linking to your eBay site from off-site, make sure you include the parameter &#8220;refid=store&#8221; in your link.  If the visit converts to a sale, you will currently save 75% of eBay final charges.</p>
<p>Other things to keep in mind:</p>
<ul>
<li>Make your store main page name memorable and encourage return visitors to use it.  Invite them to bookmark it.  Visits to your store directly via the URL (stores.ebay.com/your-store) either typed in by the customer, or from a Favorites link in the browser, <em>also get the referral credit</em>. There is no need to append the refid.</li>
<li>Use your store main page URL in any printed advertising, as again, if customers use this, you get the credit.</li>
<li>In e-mail solicitations, do include the &#8220;refid=store&#8221; link at the end of your URL in order to receive the credit.</li>
</ul>
<p>That&#8217;s it for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vivmedia.net/?feed=rss2&amp;p=4</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Say &#8220;Yes&#8221; to CSS &#8212; on eBay!</title>
		<link>http://blog.vivmedia.net/?p=3</link>
		<comments>http://blog.vivmedia.net/?p=3#comments</comments>
		<pubDate>Sun, 09 Mar 2008 22:48:14 +0000</pubDate>
		<dc:creator>Mike Viv</dc:creator>
				<category><![CDATA[eBay]]></category>

		<guid isPermaLink="false">http://blog.vivmedia.net/?p=3</guid>
		<description><![CDATA[Ok&#8230;so we all know the advantage of CSS.  Right? Well&#8230;judging from the wealth of both legacy and newer HTML out there that gives lip service to CSS but sort of misses the point (if your a true CSS fan, you know what we mean)&#8230;maybe not everybody fully appreciates the advantages.  Not yet. But that&#8217;s not [...]]]></description>
			<content:encoded><![CDATA[<p>Ok&#8230;so we all know the advantage of CSS.  Right? Well&#8230;judging from the wealth of both legacy and newer HTML out there that gives lip service to CSS but sort of misses the point (if your a true CSS fan, you <em>know </em>what we mean)&#8230;maybe not <em>everybody </em>fully appreciates the advantages.  Not yet. But that&#8217;s not the point of this article (maybe we&#8217;ll write another on that topic one day).</p>
<p>The point is, if you do CSS, and then you find you need to do eBay, you&#8217;re going to want to do CSS on eBay.  But how do you do it?</p>
<p>Current methods for putting your own HTML on eBay involve writing snippets of HTML that go into various places within the body of the page, between the &lt;html&gt;&#8230;&lt;/html&gt; tags. And herein lies the problem.  You cannot, in a standards-compliant way, add your &lt;link&gt; tag outside the &lt;head&gt; element of your HTML page.</p>
<p>You can find several recommendations on the web, and each has its place. </p>
<p><strong>First</strong>: Some recommend placing the &lt;link&gt; tag in your HTML snippet anyway.  It generally works&#8230;at least in many browsers.  But, as we pointed out, it&#8217;s not standards-compliant, and if it doesn&#8217;t break today, it&#8217;s very likely to break tomorrow.  Period. We don&#8217;t recommend it.</p>
<p><strong>Second: </strong>Embed your CSS in your elements.  For small stuff, this is probably livable, but we say, defeats the purpose.  What we <em>want </em>is to place our CSS on an external site, and reference it from eBay.  That way, we can make style changes and even graphics changes to our eBay pages without ever having to log into eBay!  We won&#8217;t get this by embedding CSS within the HTML tags.</p>
<p><strong>Third: </strong>Credit for the concept goes to the Geek Daily blog.  We really should have realized this one ourselves!  But as is so often the case&#8230;we didn&#8217;t.  So thanks, guys!</p>
<p>The very simple solution is to use JavaScript to dynamically add the</p>
<link />tag into the element at runtime. It takes only five lines of JavaScript, and these lines <em>can </em>go anywhere within the body of your HTML:<code>&lt;script language="javascript"&gt;<br />
var ss = document.createElement("link");<br />
ss.type = "text/css";<br />
ss.rel = "stylesheet";<br />
ss.href = "<a href="http://&lt;your-host-here&gt;/your.css">http://&lt;your-host-here&gt;/your.css</a>";<br />
document.getElementsByTagName("head")[0].appendChild(ss);<br />
&lt;/script&gt;</code>This works in every browser we&#8217;ve tested, and you&#8217;re good to go. Standards-compliant CSS on eBay.</p>
<p>Now&#8230;one other thing to watch out for&#8230;it looks as though eBay pages render in &#8220;quirks&#8221; mode.  (Has nobody told the eBay developers about DOCTYPEs??) Anyway, until they catch up, you&#8217;ll have to watch out for that, and either avoid or workaround the related problems that can raise. </p>
<p>Side Note: evidently if you use &lt;iframe&gt; tags in IE (<em>not </em>the best idea, we say, but we won&#8217;t debate you on it here), there are issues with dynamically assigning a stylsheet reference to the HTML in the iframe; and that&#8217;s what the Geek Daily guys were really talking about.  For the full article, including a possible solution to that issue, see <a href="http://www.geekdaily.net/2007/09/19/javascript-adding-a-stylesheet-to-an-iframe/">the Geek Daily blog entry</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vivmedia.net/?feed=rss2&amp;p=3</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>A &#8220;Thank You&#8221; to the Community At Large</title>
		<link>http://blog.vivmedia.net/?p=1</link>
		<comments>http://blog.vivmedia.net/?p=1#comments</comments>
		<pubDate>Sun, 09 Mar 2008 21:55:37 +0000</pubDate>
		<dc:creator>Mike Viv</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.vivmedia.net/?p=1</guid>
		<description><![CDATA[Welcome to Viv Media&#8217;s informal, stream-of-consciousness, random topic-of-the-moment blog.  We&#8217;re a small, but fiercely determined web, graphics and software development company. We&#8217;ve been in the software business in one shape or form or another for nearly twenty-five years.  Web development and design ventures are somewhat newer, and started as something &#8220;on the side&#8221; for a number of [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to Viv Media&#8217;s informal, stream-of-consciousness, random topic-of-the-moment blog.  We&#8217;re a small, but fiercely determined web, graphics and software development company. We&#8217;ve been in the software business in one shape or form or another for nearly twenty-five years.  Web development and design ventures are somewhat newer, and started as something &#8220;on the side&#8221; for a number of years, with serious commercial activity beginning in 2006.</p>
<p align="left">Our projects are generally private deals, hand-selected, and we&#8217;re not advertising our services commercially here (or anywhere else) at this stage.  However, in the course of our efforts, especially over the last two years, it has become abundantly apparent that the web itself, besides becoming our chosen medium of expression &#8212; and livlihood &#8211; has also become an indispensible resource in doing our jobs. Through the efforts of others before us who decided to contribute bits and pieces of their expertise to the wordlwide community, often via simple forums just such as this, countless hours have been saved by finding a needed technique&#8230;a solution&#8230;an idea&#8230;put up by someone else, just like us, who scratched their heads looking for an answer to a similar problem, or the same one&#8230;and then found it&#8230;and went one step further and decided to share. Even a mere nudge in the right direction that can come from someone else&#8217;s experience is sometimes of inestimable value.</p>
<p align="left">Sure, you can&#8230;and should&#8230;buy books.  But frequently the most up-to-date answers to problems we face, in HTML/DHTML, CSS, JavaScript, Cross-Browser issues, SQL, XML, Scripting languages like PHP, PERL, Python, Graphics editing and design and more, are found not in any book, but right here on the web, contributed by someone else, just like us, who in the course of doing their own work also decided to give something back to this community.</p>
<p align="left">And so this blog is something of the answer to two nagging problems:</p>
<p align="left">(1) What should a small web company doing private projects and joint ventures put on its own web site?</p>
<p align="left">(2) What is a good way to gather together the growing collection of tips and tricks that really work; nasty &#8220;gotcha&#8217;s&#8221; that everybody seems to forget at least once; and other sanity-preserving pieces of collective knowledge and information; and at the same time give thanks and credit to those who have come along before us and been willing to share?</p>
<p align="left">The answer presented itself in the form of this blog. As our own way of saying &#8220;Thank you,&#8221; and also trying to give something back to the online community that has certainly helped us along, rather than merely scribbling newly-found tips, tricks and workarounds into a journal, or typing them into another local file that we may or may not even remember to look at ourselves three months from now, we&#8217;re going to start mentioning them here.   When we find something that works, and works well, we&#8217;ll mention it here and give credit where credit is due.</p>
<p align="left">So if you&#8217;ve stumbled across us, and find anything useful here, do take a moment to let us know.  And if you have anything you&#8217;d like to share, by all means, let us have your comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vivmedia.net/?feed=rss2&amp;p=1</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
