Wrox Programmer Forums
| 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 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 February 23rd, 2010, 05:35 PM
Registered User
 
Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default flXHR Security Exception with Dig

Hi,

I have worked my way to Chapter 7 with little issues till now. I am getting a flXHR security exception when I try to login to my XMPP account with Dig.

- The code is from the download and is unchanged.
- I have tried two different accounts and both give me the same error.
- My accounts are at chatmask.com and programmer-art.org.

Any idea what the problem might be?

(I am enjoying the book, BTW).

-Grant
 
Old February 24th, 2010, 12:21 AM
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

I'm glad you're enjoying the book!

A first thing to try would be to check that the latest version of the code has the same problem. You can find it at http://github.com/metajack/profxmpp.

The next thing to check is what is the BOSH service URL you are using? Is it http://bosh.metajack.im:5280/xmpp-httpbind? Or is it something else?

Next, remember that flXHR-using code must be run from an http:// URL. It won't work if you run it file file:// URLs due to Flash security policy.

It sounds like a browser or flash security policy violation.

jack.
 
Old February 24th, 2010, 12:35 AM
Registered User
 
Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried your latest code - same problem.

Some more info. I am running Windows 7/IE8 and have the same problem with Firefox. With Firefox, the status says "Connecting to localhost..." and never gets any further.

I am using your BOSH service as you point to it - unchanged.

I am using IIS as my webserver. However, I have the XMPP test site over at port 8080 as my mainline development is on 80. This has not been a problem till chapter 7.

Thanks,
Grant
 
Old April 15th, 2010, 01:09 AM
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

And the test setup on 8080 is the same that you used for all the previous chapters?

A flxhr exception should only happen if you use a file:// URL or you use a BOSH connection manager which is not serving crossdomain.xml.

What version of IE is this?




Similar Threads
Thread Thread Starter Forum Replies Last Post
Security Exception aliusmankhan ASP.NET 2.0 Professional 6 July 21st, 2008 11:21 AM
Security Exception Rubie .NET Framework 1.x 0 April 18th, 2006 01:34 PM
Security exception akibaMaila VB.NET 2002/2003 Basics 3 June 30th, 2005 01:29 PM
Security Exception skyler ASP.NET 1.0 and 1.1 Professional 0 June 24th, 2005 12:47 AM
Security Exception shahchi1 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 April 24th, 2005 07:08 PM





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