How to send HTML to webGadget from PB

Share your advanced PureBasic knowledge/code with the community.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

How to send HTML to webGadget from PB

Post by BackupUser »

Code updated for 5.20+

Restored from previous forum. Originally posted by naw.

Ok - its a bit of a cheat :wink:

Use inline javascript Like This:

Code: Select all

url$="javascript:document.write('Hello World'); document.close()"

; set when creating the web gadget
webgadget(1,10,10,200,200,url$)

; or reset it later...
setgadgettext(1,url$)