Discussion Forums  >  WebViews and HTML for Mobile

Replies: 1    Views: 70

WissMAN
Apple Fan
Profile
Posts: 6
Reg: Sep 21, 2011
Dallas
4,210
06/20/12 08:18 AM (13 years ago)

Tips to display a image larger via script?

Hello all, HAving a good time plugging away at my first app! I am working in BT 1.5 for IOS and have added a "Custom HTML - Text" screen in which I am trying to embed a script. This work very well. The graphic displays. My only problem is the size of the graphic that gets embedded. It is small. I would like to increase it by 2x or 3x. Any ideas how to wrap the script so the graphic would be larger? I have included the original script below hoping it may help. <script type="text/javascript">document.write(unescape("%3Cscript src='" + "http://www.iobridge.com/widgets/io.js?8l63akVroLrE' type='text/javascript'%3E%3C/script%3E"));</script> The script pulls from a site called IOBridge.com that creates various gauges and toggle switches to control or monitor things via the web.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/25/12 03:14 AM (13 years ago)
Because you're not embedding an actual graphic (like a .png or .jpg) you'll have trouble using regular html markup to increase or decrease the size of the image. However, if you knew a little more about what the script outputs, you could write another script at the bottom of the HTML that modified the output. Something like, in pseudo code... "after the page loads, use javascript to getElementById(the image) and resize it?"
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.