<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Volusion 5 &#8211; Custom Javascript DOM Tip</title>
	<atom:link href="http://lexipixel.com/wordpress/ecommerce/volusion-5-custom-javascript-dom-tip-1/feed" rel="self" type="application/rss+xml" />
	<link>http://lexipixel.com/wordpress/ecommerce/volusion-5-custom-javascript-dom-tip-1</link>
	<description>Web Developer / Web Designer Info</description>
	<lastBuildDate>Sat, 17 Jul 2010 14:24:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Randy Harris</title>
		<link>http://lexipixel.com/wordpress/ecommerce/volusion-5-custom-javascript-dom-tip-1/comment-page-1#comment-285</link>
		<dc:creator>Randy Harris</dc:creator>
		<pubDate>Tue, 23 Feb 2010 09:06:52 +0000</pubDate>
		<guid isPermaLink="false">http://lexipixel.com/wordpress/?p=171#comment-285</guid>
		<description>1).  Yes, good catch -- I was using some code and cut and pasted &quot;&lt;em&gt;ProductDisplay.asp&lt;/em&gt;&quot;... it should say &lt;em&gt;ProductDetails.asp&lt;/em&gt;.

2). Not sure where else you tried to insert the &lt;em&gt;hook&lt;/em&gt;, but the javascript will only work once on a page, (if you have multiple divs to update, you would need to loop through them -- and/or have separate javascripts if the divs needed different customizations).  Also, the div uses a (CSS) id, and you are only supposed to have one element for an id, (for multiple divs with shared attributes you&#039;d use a class, not an id).  So, make sure you only have (1) div to test on a product page (using this code), and make sure the div id matches the javascript reference.</description>
		<content:encoded><![CDATA[<p>1).  Yes, good catch &#8212; I was using some code and cut and pasted &#8220;<em>ProductDisplay.asp</em>&#8220;&#8230; it should say <em>ProductDetails.asp</em>.</p>
<p>2). Not sure where else you tried to insert the <em>hook</em>, but the javascript will only work once on a page, (if you have multiple divs to update, you would need to loop through them &#8212; and/or have separate javascripts if the divs needed different customizations).  Also, the div uses a (CSS) id, and you are only supposed to have one element for an id, (for multiple divs with shared attributes you&#8217;d use a class, not an id).  So, make sure you only have (1) div to test on a product page (using this code), and make sure the div id matches the javascript reference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Bruckner</title>
		<link>http://lexipixel.com/wordpress/ecommerce/volusion-5-custom-javascript-dom-tip-1/comment-page-1#comment-284</link>
		<dc:creator>Chris Bruckner</dc:creator>
		<pubDate>Tue, 23 Feb 2010 08:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://lexipixel.com/wordpress/?p=171#comment-284</guid>
		<description>Really helpful info Randy.  Can you please clarify a couple things for me?

1) In Step 3 above, you say, &quot;a page with ProductDisplay.asp in the URL.&quot;  Is this correct or should it say, &quot;a page with ProductDetails.asp in the URL.&quot;

2) You mentioned using the ProductDescription_AbovePricing field for the DOM hook.  When I insert my (DIV) in Step 1 above as described, it works.  If I use another field, it doesn&#039;t work.  Can you please explain how the code in Step 3 is associated with the ProductDescription_AbovePricing field?

Thanks for your continued assistance,
Chris b.</description>
		<content:encoded><![CDATA[<p>Really helpful info Randy.  Can you please clarify a couple things for me?</p>
<p>1) In Step 3 above, you say, &#8220;a page with ProductDisplay.asp in the URL.&#8221;  Is this correct or should it say, &#8220;a page with ProductDetails.asp in the URL.&#8221;</p>
<p>2) You mentioned using the ProductDescription_AbovePricing field for the DOM hook.  When I insert my (DIV) in Step 1 above as described, it works.  If I use another field, it doesn&#8217;t work.  Can you please explain how the code in Step 3 is associated with the ProductDescription_AbovePricing field?</p>
<p>Thanks for your continued assistance,<br />
Chris b.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randy Harris</title>
		<link>http://lexipixel.com/wordpress/ecommerce/volusion-5-custom-javascript-dom-tip-1/comment-page-1#comment-272</link>
		<dc:creator>Randy Harris</dc:creator>
		<pubDate>Tue, 12 Jan 2010 10:34:42 +0000</pubDate>
		<guid isPermaLink="false">http://lexipixel.com/wordpress/?p=171#comment-272</guid>
		<description>I would try a very basic replace, e.g.-

if(location.href.indexOf(‘ProductDetails.asp’) ) {
document.getElementById(“AdobeRebate”).innerHTML=&quot;THIS IS A TEST&quot;;
}

If that works, then try the more complex strings -- chances are you have a problem with a quote or other character that needs to be escaped, or your editor has inserted LF/CR or other code that is not visible but messing up the string.</description>
		<content:encoded><![CDATA[<p>I would try a very basic replace, e.g.-</p>
<p>if(location.href.indexOf(‘ProductDetails.asp’) ) {<br />
document.getElementById(“AdobeRebate”).innerHTML=&#8221;THIS IS A TEST&#8221;;<br />
}</p>
<p>If that works, then try the more complex strings &#8212; chances are you have a problem with a quote or other character that needs to be escaped, or your editor has inserted LF/CR or other code that is not visible but messing up the string.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TLe</title>
		<link>http://lexipixel.com/wordpress/ecommerce/volusion-5-custom-javascript-dom-tip-1/comment-page-1#comment-271</link>
		<dc:creator>TLe</dc:creator>
		<pubDate>Tue, 12 Jan 2010 01:39:06 +0000</pubDate>
		<guid isPermaLink="false">http://lexipixel.com/wordpress/?p=171#comment-271</guid>
		<description>Hello, I’m trying to use multiple DOM on my site and when I do, It says Done, but with error on page at the bottom of IE8. Also in the code where you have != -1, when I take it off thats when it works but still with errors.

The code I have is:

if(location.href.indexOf(&#039;ProductDetails.asp&#039;) ) {
 document.getElementById(&quot;AdobeRebate&quot;).innerHTML=&#039;&lt;B&gt;Rebate Offer: $20.00 Price After Rebate: $96.99 You Save: $53.00 After MIR &lt;/b&gt; Expires: 10/31/2010 &lt;a href=&quot;/v/rebates/adobereb.pdf&quot; rel=&quot;nofollow&quot;&gt;Click Here for Rebate Info&lt;/a&gt;&#039;;
}

if(location.href.indexOf(&#039;ProductDetails.asp&#039;) ) {
 document.getElementById(&#039;bundle&#039;).innerHTML=&#039;Bundle Deals (click image to view description)&#039;;
}
</description>
		<content:encoded><![CDATA[<p>Hello, I’m trying to use multiple DOM on my site and when I do, It says Done, but with error on page at the bottom of IE8. Also in the code where you have != -1, when I take it off thats when it works but still with errors.</p>
<p>The code I have is:</p>
<p>if(location.href.indexOf(&#8216;ProductDetails.asp&#8217;) ) {<br />
 document.getElementById(&#8220;AdobeRebate&#8221;).innerHTML=&#8217;&lt;B&gt;Rebate Offer: $20.00 Price After Rebate: $96.99 You Save: $53.00 After MIR &lt;/b&gt; Expires: 10/31/2010 &lt;a href=&#8221;/v/rebates/adobereb.pdf&#8221; rel=&#8221;nofollow&#8221;&gt;Click Here for Rebate Info&lt;/a&gt;&#8217;;<br />
}</p>
<p>if(location.href.indexOf(&#8216;ProductDetails.asp&#8217;) ) {<br />
 document.getElementById(&#8216;bundle&#8217;).innerHTML=&#8217;Bundle Deals (click image to view description)&#8217;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://lexipixel.com/wordpress/ecommerce/volusion-5-custom-javascript-dom-tip-1/comment-page-1#comment-260</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Thu, 05 Nov 2009 18:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://lexipixel.com/wordpress/?p=171#comment-260</guid>
		<description>Thanks for posting this explanation. I&#039;ve been hunting for the .asp&#039;s (ProductDisplay.asp, etc.) for a while now, but now I know they are black-boxed by volusion and you have to use the DOM.

-Tim</description>
		<content:encoded><![CDATA[<p>Thanks for posting this explanation. I&#8217;ve been hunting for the .asp&#8217;s (ProductDisplay.asp, etc.) for a while now, but now I know they are black-boxed by volusion and you have to use the DOM.</p>
<p>-Tim</p>
]]></content:encoded>
	</item>
</channel>
</rss>
