Page 1 of 1

Minicart js

PostPosted: Thu Jan 19, 2012 4:03 pm
by ajhauser
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.

Re: Minicart js

PostPosted: Thu Jan 19, 2012 4:08 pm
by loren_d_c
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

Re: Minicart js

PostPosted: Fri Jan 20, 2012 12:21 am
by ajhauser
Good to know - and that sucks - lol

Thank you Loren, very helpful. :)