Skip to main content
June 12, 2011
Question

URL Requests on document ready state issue

  • June 12, 2011
  • 2 replies
  • 753 views

Hi,

After resolving a long term connection issue with Air and our server by opting for the native air URL objects (see http://forums.adobe.com/message/3727567#3727567), we've hit another problem.

Now we are experiencing an issue when the app initially boots, and attempts a call to the server, the Service Monitor reports the server unavailable, which is incorrect. An immediate manual trigger of the server check after boot tells us that the server is available.

It seems that Air has not yet initialised whatever is needed to make the call to the server. As a result, any initial call to the server during $(document).ready(), gets a Service Unavailable.

Is there anything that we can do to initialize Air's connections on boot so we don't hit this issue?

This topic has been closed for replies.

2 replies

June 14, 2011

We've found that including the Introspector file solves this issue.

Can ANYONE shed light on what is happening. It sounds like something needs to be initialised before any external calls are made.

chris.campbell
Legend
June 14, 2011

I'm asking around.  I'll post back once I find more info.

Chris

chris.campbell
Legend
June 14, 2011

Out of curiousity, where are you calling the monitor call?  Is it in applicationComplete?  creationComplete?  Somewhere else?

Thanks,

Chris

June 14, 2011

Does anyone have a response to this or any suggestions?