Man_ Posted April 13, 2013 Share Posted April 13, 2013 Hello friends, I hope someone can help me out, see; I am build my theme and I add the following JS. <script language="javascript"> $(function(){ $('form').jqTransform({imgPath:'{$STORE_URL}/skins/{$SKIN_FOLDER}/images/'}); }); </script> to the HTML and preview and it shows white-blank page, when I remove, everything works well, does anyone know a solution? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 13, 2013 Share Posted April 13, 2013 This looks to be a jQuery statement. If so, it cannot run until the jQuery framework is loaded and started, and that won't happen until last -- after all the images and CSS are loaded. Once the /js/common.js gets loaded and executed, this "starts" the jQuery framework: jQuery(document).ready(function() I suggest you put this in the script.js file found in the skin's /js/ folder. I suppose you are getting a white screen because javascript is crashing hard. Quote Link to comment Share on other sites More sharing options...
Man_ Posted April 13, 2013 Author Share Posted April 13, 2013 Thank you for your reply, BSmither. I added it the the script.js but it didn't work, I think it must be added to the html for it to work and if this is true then it won't work for me... Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 13, 2013 Share Posted April 13, 2013 "It didn't work", or that it still crashed and gave you a white page. We can continue discussing this over at www.cubecartforums.org Quote Link to comment Share on other sites More sharing options...
Man_ Posted April 13, 2013 Author Share Posted April 13, 2013 Hello Smither, It didn't give whitd page, just nothing happens as if should have. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.