Wrox Programmer Forums
| 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 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 March 29th, 2009, 12:36 AM
Authorized User
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Pre and Post line 150 about six(6) lines each

function _splitMultipart($boundary, $text) {
$parts = array();
$tmp = array();


foreach($text as $line) {
line 150 -> if (strstr($line,"--$boundary")) {
$parts[]=$tmp;
$tmp=array();
} else $tmp[]=$line;
}
for($i=0;$i<count($parts);$i++)
$parts[$i] = explode("\n",trim(implode("\n",$parts[$i])));
 
Old March 29th, 2009, 12:39 AM
Authorized User
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default This error is fixed by increasing the memory_limit located in php.ini

This error is fixed by increasing the memory_limit located in php.ini

Increasing now will post outcome.
 
Old March 29th, 2009, 12:53 AM
Authorized User
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default vInfo.parseJSON is not a function

when trying to go back to the inbox from within a message I get the following error:


vInfo.parseJSON is not a function

Last edited by skydiver; March 30th, 2009 at 12:22 PM.. Reason: removing myself from this conversation
 
Old March 29th, 2009, 01:24 AM
Authorized User
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default sData.parseJSON is not a function

While trying to send an email

sData.parseJSON is not a function
 
Old March 29th, 2009, 04:32 PM
nzakas's Avatar
Wrox Author
 
Join Date: Dec 2004
Location: Peabody, MA, USA.
Posts: 217
Thanks: 0
Thanked 5 Times in 5 Posts
Default

It looks like the wrong version of json.js has been included. Please replace it with the version provided here: http://www.json.org/json.js

I'll make sure these fixes make it into the ZIP file. Thanks for your patience in figuring this out!
__________________
Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/
 
Old March 30th, 2009, 11:58 AM
Authorized User
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default The problem was NOT solved!

The problem was NOT solved!

AjaxMail doesn't work ?!
 
Old March 30th, 2009, 12:04 PM
Authorized User
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default This is very time consuming and not that useful

I was going to write a Flex component using this code and then resubmit it so everyone could use it to send/receive pop3/smtp from within Flex itself, but I since have moved on and am going to just use the Zend mail class.

Thanks for the time!
Skydiver

Last edited by skydiver; March 30th, 2009 at 12:24 PM.. Reason: removing myself from this conversation
 
Old March 30th, 2009, 02:27 PM
nzakas's Avatar
Wrox Author
 
Join Date: Dec 2004
Location: Peabody, MA, USA.
Posts: 217
Thanks: 0
Thanked 5 Times in 5 Posts
Default

I'm sorry you've been frustrated by the problems. It seems like we were getting close. Can you confirm if updating json.js solved anything? It would benefit other readers to know. Thanks!
__________________
Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/
 
Old March 30th, 2009, 02:32 PM
Authorized User
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sure give me a little time to download and install it

will give it a shot
 
Old March 30th, 2009, 04:23 PM
jmcpeak's Avatar
Wrox Author
Points: 467, Level: 7
Points: 467, Level: 7 Points: 467, Level: 7 Points: 467, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , Texas, USA.
Posts: 87
Thanks: 0
Thanked 18 Times in 17 Posts
Default

I replaced the JSON code (PHP and JavaScript) and everything works fine for me.

My specs:

PHP 4.4.9 (fresh install)
MySQL: 5.1 (fresh install with using OLD_PASSWORD() to work with PHP 4)
IIS 5.1

I can send, receive, and delete mail without errors.




Similar Threads
Thread Thread Starter Forum Replies Last Post
AjaxMail doesn't work ?! fly BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 13 March 31st, 2009 01:36 AM
AjaxMail looking for developers nzakas BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 August 25th, 2006 09:56 PM
What Setting r required for AjaxMail Earth BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 August 23rd, 2006 02:06 AM
AjaxMail Problem In function sendMail czarft BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 August 19th, 2006 04:14 PM
CH 09 AjaxMail SQL coders4hire BOOK: Professional Ajax ISBN: 978-0-471-77778-6 2 June 22nd, 2006 08:03 PM





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