Our new heifer, Kali is a "doll"

http://www.himalayanacademy.com/blog/wp-content/uploads/2017/07/kali-the-calf/kali-real-close.JPG

playing around with a silly brainstorm… "in app blog thingy"

on mouseUp
set the imageSource of last char of fld "app-news" to 
"http://www.himalayanacademy.com/blog/wp-content/uploads/2017/07/kali-the-calf/kali-real-close.JPG";
end mouseUp


does nothing.. but , create an image, set loc -3000 get It's ID  and this does 
work

on mouseUp
set the filename of img "app-news-img-1" to 
"http://www.himalayanacademy.com/blog/wp-content/uploads/2017/07/kali-the-calf/kali-real-close.JPG";
set the imageSource of last char of fld "app-news" to 1005
end mouseUp

needs some rect math on the image size to fit (wish we had engine level resize 
image-preserve-ratio pWidth, pHeight, different subject)

OR

I am working too hard and will probably just use the browser widget

BUT

I think there are contexts/use cases for  having remote images appear in line 
in fields

this also doesn't work

create field "news-html"

fill with

<p> Welcome to Planet Earth, Kali!</p>
<img 
src="http://www.himalayanacademy.com/blog/wp-content/uploads/2017/07/kali-the-calf/kali-real-close.JPG";
 /"
<p>What a gift!</p>


on mouseUp
set the htmltext of fld "app-news" to fld "news-html"
end mouseUp

we get

Welcome to Planet Earth, Kali
What a gift!

but no image.

am I missing anything or is this all just as expected: what we get…

BR

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to