Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

local webview not displaying CSS while enclosed in scrollview

i want to create a scrollview that shows all my pages. i am using the below code but it is displaying an unformatted html page.
And yes, the local url displays correctly (with css) when i view it ouside of the scrollview. Thanks for any help.

var webView1 = Ti.UI.createWebView({
left:3100,
width:500
});

webView1.url='/webviews/local_webview.html';

scrollingview.add(webView1);
— asked August 2nd 2010 by sean oreilly
  • css
  • local
  • scrollview
  • url
  • webview
0 Comments

1 Answer

  • i 'think' that for iPhone, your local_webview.html need to have absolute references in the format app://Resources/webviews/…..

    Android works differently…I'm currently researching the Android part because I need it for an App.

    HTH,

    R

    — answered August 2nd 2010 by Ricardo Alcocer
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.