Load field into mobile browser control
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Load field into mobile browser control
Is there any way to load a field's content into a mobile browser control? (short of writing it out as a file and loading that)?
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
- Location: McKenna, WA
Re: Load field into mobile browser control
What's in the field and why do you need to load it into a browser?
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
Re: Load field into mobile browser control
Hi yeldarb,
if you use a browser widget, you can set its "htmltext" property to the htmltext of your field.
No idea if this is supported with "mobilecontrolset..."
Best
Klaus
if you use a browser widget, you can set its "htmltext" property to the htmltext of your field.
No idea if this is supported with "mobilecontrolset..."
Best
Klaus
Re: Load field into mobile browser control
The field contains the raw html, which includes (among other things) a styled bar chart that requires the mobile browser control to render (I tried just the field but it doesn't read and render CSS). If there's a way to render the CSS in a field that might work (though it wouldn't have the nice native "bounce" effect).
Re: Load field into mobile browser control
Wow, great! I wasn't even aware of the browser widget.
So I just tested on iOS, simulator and device, and it looks great but internal hyperlinks don't seem to be working.
So I just tested on iOS, simulator and device, and it looks great but internal hyperlinks don't seem to be working.
Re: Load field into mobile browser control
The LC "htmltext" property does unfortunatley not support CSS and only a very limited subset of HTML.
Re: Load field into mobile browser control
Using the browser widget and a stylesheet in the html document I'm able to get a nicely styled bar graph:
However, I'm running into two other issues:
1. I get an error "cannot export char U+0000 in nul-terminated string buffer" It doesn't seem to be related to the actual text in the field, I've removed all the text and just used some dummy text.
2. Links to anchors in the page don't work (they work in the mobile widget).
Re: Load field into mobile browser control
Maybe I was not clear enough, the internal htmltext property (of fields!) does not support all the good stuff. The browser widget is another beast, of course.