Minicart js

Questions and answers about ShopSite Custom Templates

Minicart js

Postby ajhauser » Thu Jan 19, 2012 4:03 pm

Ok, so I have the minicart all set up the way I need it - ny only question is why the javascript shows up when I view the source, instead of what the javascript is "writing" to the code?

http://brotherscountrysupply.com/store/index.html

Perhaps if I place the JS in an external file and link it up it would show the "written" code, or would I have to make a bunch of changes to the code then?

Hope that's clear - thank you.
Website Design, Website Development, eCommerce and Hosting
ajhauser
 
Posts: 84
Joined: Tue Dec 06, 2011 4:18 pm
Location: Earlville - the land of Earls

Re: Minicart js

Postby loren_d_c » Thu Jan 19, 2012 4:08 pm

It wouldn't matter if you put it in an external .js file, JavaScript code always displays as the raw JavaScript code when you view the page source in a browser.

-Loren
loren_d_c
 
Posts: 2569
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Minicart js

Postby ajhauser » Fri Jan 20, 2012 12:21 am

Good to know - and that sucks - lol

Thank you Loren, very helpful. :)
Website Design, Website Development, eCommerce and Hosting
ajhauser
 
Posts: 84
Joined: Tue Dec 06, 2011 4:18 pm
Location: Earlville - the land of Earls


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 7 guests