Wrox Programmer Forums
|
BOOK: Professional Web 2.0 Programming
This is the forum to discuss the Wrox book Professional Web 2.0 Programming by Eric van der Vlist, Danny Ayers, Erik Bruchez, Joe Fawcett, Alessandro Vernet; ISBN: 9780470087886
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Web 2.0 Programming 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
 
Old December 8th, 2006, 12:05 PM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to holmestm Send a message via MSN to holmestm
Default Getting Started

If like me you are not a PHP developer it might help to know that there is a single download called WAMP http://www.wampserver.com that installs Apache and PHP with SQLite under Windows.

I had problems with various different php.ini files conflicting, and had to learn how to use PEAR to install the Config package. So far I've learned more about PHP than Web 2.0

Also it appears that 'watch' is a reserved word in the XML DOM implementation on my version of Firefox 2.0 - Once I replaced it with '_watch' in various js, php and Relax-NG files things began to work nicely - after 2 days I've got version 1 of Buzzwatch 2.0 to work :D

 
Old December 16th, 2006, 05:14 AM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Congratulations for getting BuzzWatch up and running :) !!!

Would you mind sharing more of what you've done to get it working in your environment? I am pretty sure other readers will have the same issues and that could save us all a lot of time!

Thanks,

Eric

 
Old December 18th, 2006, 06:32 AM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to holmestm Send a message via MSN to holmestm
Default

I installed WAMP, but had problems because I'd also tried to install Apache and PHP5 separately but ran into issues trying to get them to work together. I then installed WAMP but ran into trouble because I didn't first uninstall the separate Apache and PHP installs.

What I learned was that PHP looks for it's configuration file, PHP.INI by looking in the windows directry, the default directory (which in this case would be Apache's default directory not PHPs) or the directory defined by the environment variable PHPRC.

I also had trouble extending the WAMP version of PHP to include the Cache_Lite module that is required by Buzzwatch but that was a WAMP specific problem and I solved that by replacing the version of PEAR that comes with WAMP with the latest version.

I'm no PHP expert so am not going to post a definitive guide to setting this up. If I were going to set this up on a new machine I would start with WAMP or possibly XAMPPLITE since this gets you past the problem of configuring Apache to integrate PHP - and both these distributions include the SQLite database.

I was disappointed that Apache and PHP weren't easier to get started with, and these concerns were compounded with some of the dependencies in the opening chapter (PHP libxml2 requiring Relax-NG for instance).

I found chapter 1 very difficult to work through, despite having a reasonable amount of Javascript knowledge. Somethings that I think might help others are:

1. Read through the chapter first before trying to get things running, at least to the point where it says 'now install version 2'
2. The database starts unpopulated so you won't get the same behaviour as the illustrations. You won't be able to do replicate anything in the chapter until you've got to the point where you've defined and saved your own share quotes (it would have been nice to include a default SQLite database so that we could hit the ground running!)
3. The YUI interfaces don't work particularly well on my version of Firefox 2.0 - although the examples on the Yahoo site do work as expected. I'm not sure why but I have to move my mouse around different menu options to get the drop downs to trigger.
[Edit: fixed by changing menuBar.js thus:
Code:
  var oMenuBar = new YAHOO.widget.MenuBar(
    "menubar", 
    { fixedcenter: false, autosubmenudisplay:true, showdelay:250, hidedelay:750, lazyload:true }
  );
  oMenuBar.render();
  ]
4. There can be a short delay before your PHP server can fetch data from the Yahoo web services first time so be patient if you think nothing is happening.
5. Using the Firefox Firebug extension is useful for stepping through the Javascript calls - but be sure to use the latest version as it can crash the browser occasionally.
6. Print out the controller.js file and refer to that rather than the extracts in the book - especially useful with respect to the various callback objects, as the this.callback object is referenced (page 17) but not shown.
7. You are expected to click on the page background where it says '[title]' and '[description]' whereby then you will be able to edit those values for the current stock
8. Use the URL prefix 'http://uk.ichart.yahoo.com/v?s=' in yahoo_chart.php if you want to see UK (LSE) charts as well as US.
9. Don't forget the note about having to change 'watch' to '_watch' to get around problem with Firefox 2.0 in original post.
 
Old December 18th, 2006, 08:17 AM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to holmestm Send a message via MSN to holmestm
Default

Yup it's as I thought - watch is now a property of the prototype "Object". The way ObjTree works is to create an object from the XML so tag names become properties of that object. You can try it directly here: http://www.kawa.net/works/js/xml/objtree-try-e.html. simple solution: replace the word watch with something that isn't a property name of the prototype Object e.g. "_watch"

Yet another polluted namespace problem!

Tim.
 
Old December 18th, 2006, 12:26 PM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to holmestm Send a message via MSN to holmestm
Default

Look and feel: the css and related image files referenced as 'yui-container-css' are not supplied, nor are they part of the yui download. I finally managed to find them embedded in a release 7.2.3 of WebGui (http://www.plainblack.com/getwebgui). Now my buzzwatch matches the illustrations!

This appears to be because the code in the book was developed against an oler version of the Yahoo YUI framework and these files are no longer distributed in the current version.

Life would be much easier of the code downloads included these files!

 
Old March 24th, 2007, 10:28 AM
Registered User
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I couldn't find yui-container-css in the package you mentioned. Can you be more specific as to where it is located. That WebGUI is a big perl module.

I too sure wish they would have packaged up the files needed to run the software they are showing. Either that or have links to the files on this site to the corrected versions.

 
Old April 30th, 2007, 04:16 AM
Registered User
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello
 I just purchased the book and I am trying to run buzzwatch ver.1.
I am having two problems now:

1) I am getting this error:
File does not exist: C:/wamp/www/buzzwatch/XML, referer: http://localhost/buzzwatch/index.html
2) Same as the previous posts I could not find yui-container-css

Could somebody help in this ??
Thank you.

 
Old May 12th, 2007, 05:30 PM
Registered User
 
Join Date: May 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by bobototo



1) I am getting this error:
File does not exist: C:/wamp/www/buzzwatch/XML, referer: http://localhost/buzzwatch/index.html

Could somebody help in this ??
Thank you.

I can help with this one.

You need to download the JavaScript for XML.ObjTree from here:
http://www.kawa.net/works/js/xml/objtree-e.html

This is related to, but not part of, the JKL.ParseXML library mentioned in the book.

I'm starting a new topic on the second one.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started ColinWatt BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6 1 November 7th, 2008 02:08 AM
Getting Started CocoKrish BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 February 5th, 2008 10:09 AM
Getting Started? seananderson Reporting Services 0 August 3rd, 2007 07:45 AM
Getting Started st3ve Javascript How-To 1 February 3rd, 2005 08:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.