app crashes when adding webview to window
I'm trying to add a webview to a window that has 2 tableviews on it (1 hidden).
Everything works great up until i
window.add(webview)
Then the app spits up and dies.
Here's the related code and the trace of the spectacular crash. I've done this before, not sure what I could be doing wrong. Any ideas?
http://gist.github.com/397607
tia,
dan
2 Answers
-
Looks like you didn't specify a URL to the web view - this is a required parameter, and could likely be the source of your crash.
-
nah the url is there. confirmed the value with Ti.API.info(). See the gist link. Sorry shoulda made that more prominent.
// event data var index = e.index; var rowdata = e.rowData; //Ti.API.info("event selected: " + rowdata.link); eventpage.url = rowdata.link; masterWindow.add(eventpage);