Wrox Programmer Forums
BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6
This is the forum to discuss the Wrox book Professional Ajax, 2nd Edition by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780470109496
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-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
Old October 2nd, 2014, 10:12 AM
Registered User
Join Date: Oct 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 12 "Stock Widget"

I have attempted to modify the "Stock Widget" example to permit stock symbol entry via a text input form instead of the values being hard coded into the stockproxy.php file. This was accomplished by replacing the $SYMBOLS array with the following code (the text "ge" was retained for testing purposes):

$sticker0 = $_POST["sticker0"];
$sticker1 = $_POST["sticker1"];
$sticker2 = $_POST["sticker2"];
$sticker3 = $_POST["sticker3"];
$sticker4 = $_POST["sticker4"];

$SYMBOLS = array(

This appears to work fine for retrieving the information from Yahoo as indicated by the "echo $json->encode($object_to_serialize);" statement at the end of the stockproxy.php file. However, the table output produced by "default.htm" only includes data for the text data "ge".

Could you please help me understand why the text variables are not understood by the application?

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Session(chp 12) - How to set "stay connected" functionality? DMatt BOOK: Professional PHP6 0 November 22nd, 2013 10:04 AM
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 04:56 AM
Trouble with "Return to Sender" Javascript in CHPT 12 mmeth BOOK: Professional Microsoft Office SharePoint Designer 2007 ISBN: 978-0-470-28761-3 1 September 3rd, 2009 08:20 AM
Page 417 step 12 "Bound to:" field Dan Cern BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 August 24th, 2009 12:15 PM

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