Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > BOOK: Professional XMPP Programming with JavaScript and jQuery
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery 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
 
 
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old June 9th, 2010, 06:11 PM
Registered User
 
Join Date: May 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by metajack View Post
The book has a small error about the mimetype needed for crossdomain.xml. It must be application/xml instead of text/xml or it won't work.

Your browser may or may not be able to display that, but Flash should be satisfied if the mimetype is correct.
Oo just that? I found that earlier but I tought that it wasn`t that. There are errors in your great book (most typos in source code) but it`s still nice one :) Thanks for replay!
  #12 (permalink)  
Old July 18th, 2010, 06:10 AM
Registered User
 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Not able to connect to BOSH connection Manager

Hi Jack,

I am following ur book XMPP programming using javascript and jquery. Till yesterday(17 July 2010) every thing was working fine. I was able to connect to jabber.org xmpp server.
But from today (18 july 2010) onwards I am getting a error

"Microsoft JScript runtime error: 15, securityError, A security sandbox error occured with the flXHR request".

Please help me out.

I am using "http://bosh.metajack.im:5280/xmpp-httpbind" as bosh connection manager.

Thanks for such a nice book!

Ashish Jain
  #13 (permalink)  
Old July 25th, 2010, 11:26 AM
Registered User
 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation About chapter 9

I have installed Openfire 3.6.4 to work with Metajack's book.

Sketchcast.js from chapter 9 should be updated in several places.

1) .c('field', {"var": "pubsub#persist_items"})
.c('value').t("1") //instead old .t("true")

2) subid variable should be added to the SketchCast object. When subscriber send iq query to get items from pubsub, there should be subid='value_of_subid' included as items attribute. So here are changes:

// subscription callbacks
subscribed: function (iq) {
SketchCast.subid = $(iq).find('subscription').attr('subid');
$(document).trigger("reception_started");
},

// get missed events
SketchCast.connection.sendIQ(
$iq({to: SketchCast.service, type: "get"})
.c('pubsub', {xmlns: SketchCast.NS_PUBSUB})
.c('items', {node: SketchCast.node,subid:SketchCast.subid}),
SketchCast.on_old_items);

And do not forget subid:null after disconnection and errors.
  #14 (permalink)  
Old July 26th, 2010, 04:57 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

Quote:
Originally Posted by semper View Post
There are errors in your great book (most typos in source code) but it`s still nice one :)
The GitHub repository of the code is kept up to date with all errors people have reported to me. You can find it at http://github.com/metajack/profxmpp
  #15 (permalink)  
Old July 26th, 2010, 04:59 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

Quote:
Originally Posted by ashishjain View Post
"Microsoft JScript runtime error: 15, securityError, A security sandbox error occured with the flXHR request".

Please help me out.

I am using "http://bosh.metajack.im:5280/xmpp-httpbind" as bosh connection manager.
Do you still get this error? My site was briefly down due to physical server maintenance about a week ago, but has since been fixed.

If you still get this error, what is the URL your application runs at? You cannot use the flXHR plugin from file:// URLs, so that would be my first guess.
  #16 (permalink)  
Old August 11th, 2010, 10:00 AM
Registered User
 
Join Date: Aug 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you noticed that the strophe.flxhr.js location has changed? It's now under script/plugins folder, if you extract files according to the instructions in the book.

Correct line:
<script src='../scripts/plugins/strophe.flxhr.js'></script>
  #17 (permalink)  
Old January 13th, 2012, 10:42 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default A security sandbox error occured with the flXHR request

My laptop was recently upgraded to Windows 7 (IIS 7) from Windows XP (IIS6), and Visual Studio was upgraded concurrently form 2008 to 2010. Ever since, whenever I try to run and debug my application I get the following message:

Microsoft JScript runtime error: 15, securityError, A security sandbox error occured with the flXHR request.

I thought it might be something to do with VS 2010, so I re-installed VS 2008. That's having the same problem (but it worked perfectly before the upgrade). At this point I assume the problem has to do with IIS 7. I'm not seeing a whole lot of threads on google related to this, but there are some. None of the solutions have helped however. Does anyone have any ideas on what to check? This is getting pretty frustrating and I'm spinning my wheels way too long now. :-(
  #18 (permalink)  
Old January 13th, 2012, 06:48 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

This can happen if you try and view the page using the flxhr code from a file:// URL instead of an http:// URL. Be sure the url you visit in your browser is a http:// address and it should work fine.

If that doesn't fix it, check that your crossdomain.xml file is correct and has the right mimetype.

If neither of those work, you might try contacting the author of flxhr at flensed.com.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
flXHR issues maverickr BOOK: Professional XMPP Programming with JavaScript and jQuery 6 March 13th, 2014 03:30 PM
flXHR Security Exception with Dig grantcv1 BOOK: Professional XMPP Programming with JavaScript and jQuery 3 April 15th, 2010 01:09 AM
Getting started - Chapter 5 eno BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 1 November 17th, 2009 04:07 PM
Chapter 1 - Getting Started - Adding Connection roscoe BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 6 November 6th, 2006 05:03 AM
Getting started with chapter 12 Indigo11 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 September 2nd, 2004 06:37 PM



All times are GMT -4. The time now is 07:05 PM.


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