WampServer and Javascript
Posted by: bccliff (67.61.221.---)
Date: May 29, 2008 12:32AM

Broser is JavaScript enabled!

My opening web page has the following two lines.

<script type="text/javascript" src="CartPHP.js"></script>
.
.
.

<a href="#" onclick="AddRevoveItem('Add');return false;">Add to shopping cart</a>

Code is in localhost properly with wampserver running.

When I click on the link to "Add to shopping car" nothing happens! Function called is in CartPHP.js and is expecting a parameter of 'Add". Code is from a textbook I am considering using for a class, so it should work?

Wonder if I need to "set up" something in my wampserver 2.0 as this has happened with several of the books examples. Thanks

cliff

Options: ReplyQuote
Re: WampServer and Javascript
Posted by: yfastud (Moderator)
Date: May 29, 2008 01:59AM

Not enough info. Where do you embed that js? If in html, you don't even need a web server to run it, so there is nothing wrong w/ wamp. Does it store data in db? If yes, then you need to create db before running that script

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.