 |
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

June 7th, 2006, 08:37 AM
|
Registered User
|
|
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

June 7th, 2006, 08:51 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
|
|
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)
|

June 7th, 2006, 09:10 AM
|
Registered User
|
|
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

June 7th, 2006, 09:19 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
|
|
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)
|

June 7th, 2006, 09:26 AM
|
Registered User
|
|
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

June 7th, 2006, 09:39 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
|
|
Can you test with a simple html page in the same folder as CustomerClient-JPSpan.php?
--
Joe ( Microsoft MVP - XML)
|

June 7th, 2006, 09:50 AM
|
Registered User
|
|
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!
|

June 7th, 2006, 11:05 AM
|
Registered User
|
|
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Joe,
Thanks for you guideness and cracking read, sorted the issues out.
|

April 18th, 2014, 01:37 AM
|
Registered User
|
|
Join Date: Apr 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 .
|
|
 |