Can't get nopcart.js to work

Get help with nopcart intergration with MS FrontPage and related issues

Moderators: Koibito, Rosey

Can't get nopcart.js to work

Postby davidpcm » Tue Oct 03, 2006 1:44 pm

I tested the javascript using frontpage, it work perfectly, however when I upload to my server, the nopcart.js did not work (function). I deliberately need help...

Following is the code from product:

...
<SCRIPT language="JavaScript" SRC="../language-en.js"> </SCRIPT>
<SCRIPT language="JavaScript" SRC="../nopcart.js"></SCRIPT>
....

I assumed the above is correct.

David
davidpcm
 
Posts: 2
Joined: Tue Oct 03, 2006 1:36 pm

Re: Can't get nopcart.js to work

Postby Koibito » Tue Oct 03, 2006 2:30 pm

davidpcm wrote:...
<SCRIPT language="JavaScript" SRC="../language-en.js"> </SCRIPT>
<SCRIPT language="JavaScript" SRC="../nopcart.js"></SCRIPT>
....

I assumed the above is correct.


Wel, it depends. If you uploaded everything to the same directory/folder, it should be like this:

Code: Select all
<script type="text/javascript" src="language-en.js"></script>
<script type="text/javascript" src="nopcart.js"></script>
John
Koibito
Site Admin / Guru
 
Posts: 918
Joined: Sun May 28, 2006 1:59 am
Location: New Jersey, USA

Postby davidpcm » Tue Oct 03, 2006 2:41 pm

Yes, I place everything inside the folder.

I follow your advice and make the amendment, still the script is not functioning. However, when I copy out all the code from nopcart.js and language-en.js into my product html, it works. Please advice...
davidpcm
 
Posts: 2
Joined: Tue Oct 03, 2006 1:36 pm

Postby Koibito » Tue Oct 03, 2006 4:31 pm

Could you post a URL?
John
Koibito
Site Admin / Guru
 
Posts: 918
Joined: Sun May 28, 2006 1:59 am
Location: New Jersey, USA

Postby Randy » Tue Oct 03, 2006 9:07 pm

Make sure you set the line endings option in frontpage to UNIX.

There are a few other settings that need changed as well, such as telling FrontPage that you will change the code, not to try and guess what you want to do and change the code for you.

There is an entire section of the forum dedicated to solving problems caused by FrontPage.

Randy
Randy
Guru
 
Posts: 1511
Joined: Tue Apr 22, 2003 12:21 pm
Location: Thunder Bay, Ontario

NopCart/FrontPage problems

Postby Rosey » Wed Oct 04, 2006 2:36 pm

One could assume that there are more
changes and modifications to the original
code than are known at this point in the
conversation.

Maybe starting at the beginning again
would be best. Upload or publish the
un-modified cart code and such,
to determine if the problem is local
or server-side.
Peace
Ro-Z
Rosey
Guru
 
Posts: 166
Joined: Mon Jun 30, 2003 2:37 am
Location: Japan


Return to Help: FrontPage & NOPCart

Who is online

Users browsing this forum: No registered users and 1 guest

cron