Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Ajax ISBN: 978-0-471-77778-6
This is the forum to discuss the Wrox book Professional Ajax by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780471777786
Important: For the new 2nd edition of this book, please post here instead: [url="http://p2p.wrox.com/forum.asp?FORUM_ID=307"]http://p2p.wrox.com/forum.asp?FORUM_ID=307[/url]
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax ISBN: 978-0-471-77778-6 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 June 7th, 2006, 09:37 AM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with Chapter ten JPSpan

I'm running WIndows 200 Server, with php 5.1.4 & apache 2.0.58, as I had issues with the php5apache2.dll and Apache 2.2. But my question is when I try to run the example from the book for CostumerClient-JPSpan I keep getting the error "customer" is undefined within my browser which is ie 6 sp1, could some please advise me as to where I maybe going wrong?

As a last restort I even downloaded the full code example from the wrox website and got the same issue. I think its because the JPSpan is not catching the file.

Thanks

Reply With Quote
  #2 (permalink)  
Old June 7th, 2006, 09:51 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Try typing the URL to the client-side JavaScript file into your browser's address bar. (Can't remember the address, post the HTML of CustomerClient-JPSpan if you can't find it.)
See if the JavaScript is returned.

--

Joe (Microsoft MVP - XML)
Reply With Quote
  #3 (permalink)  
Old June 7th, 2006, 10:10 AM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Joe,

Here is the info out of the htm <script type="text/javascript" src="CustomerServer-JPSpan.php?client"></script>
should this be .js and not .php?

Thanks

Reply With Quote
  #4 (permalink)  
Old June 7th, 2006, 10:19 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

No, that's right, the JPSpan page automatically creates the JavaScript when passed the "client" querystring.
paste CustomerServer-JPSpan.php?client into your browser's address bar and let me know what happens.

--

Joe (Microsoft MVP - XML)
Reply With Quote
  #5 (permalink)  
Old June 7th, 2006, 10:26 AM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Joe,

this is what I get :-
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /CustomerClient-JPSpan.php was not found on this server.</p>

<address>Apache/2.0.58 (Win32) PHP/5.1.4 Server at localhost Port 80</address>
</body></html>

it gives a 404 but the php file is on the server! now I'm confused

Reply With Quote
  #6 (permalink)  
Old June 7th, 2006, 10:39 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Can you test with a simple html page in the same folder as CustomerClient-JPSpan.php?


--

Joe (Microsoft MVP - XML)
Reply With Quote
  #7 (permalink)  
Old June 7th, 2006, 10:50 AM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Joe,

A simple html page works ok, as does a simple php page connecting to the sales.mdb. here is what I get in the browser when I run the CustomerClient-JPSpan page:-

Warning: require_once(../JPSpan/JPSpan.php) [function.require-once]: failed to open stream: No such file or directory in C:\Apache Group\Apache2\htdocs\CustomerServer-JPSpan.php on line 43

Fatal error: require_once() [function.require]: Failed opening required '../JPSpan/JPSpan.php' (include_path='.;C:\php5\pear') in C:\Apache Group\Apache2\htdocs\CustomerServer-JPSpan.php on line 43

Other example files work ok, not sure why this one isnt!



Reply With Quote
  #8 (permalink)  
Old June 7th, 2006, 12:05 PM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Joe,

Thanks for you guideness and cracking read, sorted the issues out.


Reply With Quote
  #9 (permalink)  
Old April 18th, 2014, 02:37 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How did you solve that issue?

hi Creed666,
I am also having the same issue and i am new to PHP and JPSPAN both.
Kidnly give your solution .
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 2 - End of chapter exercises whizzkid1892 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 30th, 2008 01:02 PM
How to maintain history of last ten visited page i vishnu108mishra ASP.NET 2.0 Professional 1 February 29th, 2008 01:27 PM
get first ten records MunishBhatia SQL Server 2005 10 December 17th, 2007 11:39 AM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 10:40 PM



All times are GMT -4. The time now is 12:40 PM.


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