Debugging grails/iUI
I am building out a iphone application using grails and the iUI plugin
While trying to test/debug this application, the safari browser was empty on my iphone. Nothing on it. I wanted to view the source, but the safari browser on the iphone does not support this. There are some bookmarklets that one can install, but one did not work, and the other required your server to be available on the net (publicly available). I suspect the one that did not work was only able to render content whereas I am trying to perform some javascript operations that manipulate the dom.
I found out that by just using Safari, and using setting the User-Agent to my iphone using the Developer tools did the trick.
The problem that I discovered, once I could view the generated source was that I had a javascript "onload" call in the body of gsp that was not being emitted from my grails app. The body element comes from the layout, not the individual screens.

Comments
Post new comment