Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: JavaScript 24-Hour Trainer
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: JavaScript 24-Hour Trainer
This is the forum to discuss the Wrox book JavaScript 24-Hour Trainer Jeremy McPeak; ISBN: 978-0-470-64783-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: JavaScript 24-Hour Trainer section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 12th, 2012, 06:33 PM
Registered User
Points: 22, Level: 1
Points: 22, Level: 1 Points: 22, Level: 1 Points: 22, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Lesson 35 - Scripts aren't Working on my server

Hello,
I am using Dreamweaver CS5 and I have my own server with rackspace. I cant seem to get the code to work on this chapter (all the other chapters have worked fine until now). The Html loads, but no input is returned when hit submit.
It as if the scripts are not attached or something. I copied and pasted all the code and uploaded. It still wont work.

One thing I have noticed is that in Dreamweaver you can choose ASP JavaScript or (regular) JavaScript. I always use the nonASP JavaScript. Does this have an effect or no?

i would post the link so that you can view the source code but am not to sure that is a good idea security wise. :)

Any ideas?

Thanks for your time

Last edited by ZanderFly; March 12th, 2012 at 06:44 PM.
Reply With Quote
  #2 (permalink)  
Old March 12th, 2012, 07:34 PM
jmcpeak's Avatar
Wrox Author
Points: 361, Level: 6
Points: 361, Level: 6 Points: 361, Level: 6 Points: 361, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , Texas, USA.
Posts: 77
Thanks: 0
Thanked 12 Times in 12 Posts
Default

Howdy, Zanderfly.

First, yes, you are correct by choosing non ASP JavaScript.

As to your particular problem, I'm afraid I can't offer any help without a link. Unless your server is insecure, there's no harm in posting a link.
Reply With Quote
  #3 (permalink)  
Old March 13th, 2012, 02:39 PM
Registered User
Points: 22, Level: 1
Points: 22, Level: 1 Points: 22, Level: 1 Points: 22, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hey Jeremy,

Thanks for responding to my question. Here is the link to my example on my server.

http://www.webbocrats.com/lesson35/l..._example01.htm

hope this helps
Reply With Quote
  #4 (permalink)  
Old March 13th, 2012, 02:53 PM
jmcpeak's Avatar
Wrox Author
Points: 361, Level: 6
Points: 361, Level: 6 Points: 361, Level: 6 Points: 361, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , Texas, USA.
Posts: 77
Thanks: 0
Thanked 12 Times in 12 Posts
Default

Howdy, Zanderfly.

The PHP is failing on the call to json_encode(). The exact error is:

HTML Code:
<b>Fatal error</b>:  Call to undefined function:  json_encode() in <b>/var/www/vhosts/webbocrats.com/httpdocs/lesson35/car_dealership.php</b> on line <b>74</b><br />

The json_encode() function was added in PHP 5.2.0. So if you have an earlier version of PHP running on your server, you'll need to include another PHP file that parses JSON.
Reply With Quote
  #5 (permalink)  
Old March 15th, 2012, 05:32 PM
Registered User
Points: 22, Level: 1
Points: 22, Level: 1 Points: 22, Level: 1 Points: 22, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok. So i was doing it right then. Good. Thanks for your help man.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 1 p 35 step 6 Frodo BOOK: Beginning Building Mobile Application Development in the Cloud 1 April 14th, 2013 12:16 AM
Lesson 35 jlbrown BOOK: Microsoft Access 2010 24-Hour Trainer 4 February 4th, 2012 07:13 PM
Page 35 Errata LongJohnSilver BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1 2 January 9th, 2009 08:26 AM
ASP.NET Server Controls and Client-Side Scripts LoneStar1 BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 5 March 15th, 2006 04:51 PM
My scripts are not working, why? urbanTaz Beginning PHP 5 August 26th, 2004 04:57 AM



All times are GMT -4. The time now is 01:00 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.