Since I wasted over an hour tracking down this problem yesterday I
thought I'd send a post to the list in case someone else runs into it.
I was trying to move our OmniFocus web application to iUI and I kept
hitting an error in the iUI javascript block:
getSelectedPage: function()
{
for (var child = document.body.firstChild; child; child =
child.nextSibling)
{
if (child.nodeType == 1 && child.getAttribute
("selected") == "true")
return child;
}
}
Drosera told me that document.body was undefined which seemed crazy
to me. Turns out I had configured rails to send a content-type header
of text/xml by default and apparently browsers (by convention?) don't
add a body object to the document object in this case.
It's all working now and if you're an OmniFocus alpha user you'll be
able to check out the new interface as of this morning's builds.
--
-James
OmniOutliner Product Manager
Software Test Pilot
The Omni Group
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---