Hi,

how can I find out, if the current request from a IUI app was
requested by a normal link without target attribute or a link with
target="_self" ?

I'd like to use the same URLs on the server and normally use
request.xhr? in Rails or Sinatra. So I'd like to add the layout if
it's a "classic" request and omit it, if it's a new transition
request.

The Rails/Sinatra method "request.xhr?" does not return true for links
touched/clicked in IUI as expected. The implementation of
"request.xhr?" usually is:

env["HTTP_X_REQUESTED_WITH"] == "XMLHttpRequest"

The HTTP_X_REQUESTED_WITH header seems to be missing in requests
coming from a normal link in iUI 0.3.

Which header do I need to check to see which way the current page is
loaded?

Thanks for helping,
Benjamin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to