jdanthinne / tiBrowser

In-app browser widget for Titanium
MIT License
23 stars 6 forks source link

Send parameters to the html file? #4

Closed brunogenaro closed 8 years ago

brunogenaro commented 8 years ago

Is there any way to send parameters to the HTML file from the controller?

It looks like Titanium has a method evalJS for the webView object. How can I adapt it to work properly on tiBrowser?

brunogenaro commented 8 years ago

Just created this functionality. I've opened a Pull request, fell free to review and give your feedback.

jdanthinne commented 8 years ago

Wouldn't it be safer to test if the loadExternalData javascript function exists before launching it?

brunogenaro commented 8 years ago

You are right! Just added the conditional. Thanks

jdanthinne commented 8 years ago

Seems ok for me. Just merged.