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 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 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 October 2nd, 2014, 10:12 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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(
"$sticker0",
"$sticker1",
"$sticker2",
"$sticker3",
"$sticker4",
'ge',);

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?
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
PHP Session(chp 12) - How to set "stay connected" functionality? DMatt BOOK: Professional PHP6 0 November 22nd, 2013 09: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



All times are GMT -4. The time now is 04:43 PM.


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