Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing URL to a Web Widget
#1
Is it possible to pass a name to a Web Widget?  I was trying to clean up some templates, and one thing that would help would be if I could pass a webserver URL to a template that only contains a Web Widget.  This would allow just one template .vs. 9 templates all with different URLs.

I placed this: http://cqcserver/%(GVar:GraphName)  into the URL for the Web Widget (With the variable GraphName containing the name), but couldn't get it to work.  Is this possible?
Reply
#2
That won't work. But, you can do that in the OnPreload of the parent widget. Build up the URL and you can set it on the web widget there on the fly. Doing it in the preload means that it doesn't try to load and then load again, it just gets stored on the web widget as the initial URL to load.
Dean Roddey
Explorans limites defectum
Reply
#3
(10-03-2018, 09:35 AM)Dean Roddey Wrote: That won't work. But, you can do that in the OnPreload of the parent widget. Build up the URL and you can set it on the web widget there on the fly. Doing it in the preload means that it doesn't try to load and then load again, it just gets stored on the web widget as the initial URL to load.

That worked, I was using a Static Web Image widget, so I used the SetImage() to adjust the URL.  Thanks for your quick reply.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Possible Bug in Web Browser Widget or SetURL kblagron 8 452 04-29-2020, 06:58 PM
Last Post: kblagron
  I cant enter parameters for sizing into the webcam widget. I get errors about invalid ghurty 2 173 04-29-2020, 04:01 PM
Last Post: Dean Roddey
  Check Box widget on WebRIVA vs Interface Viewer bryanb 1 149 04-23-2020, 06:15 AM
Last Post: bryanb
  Widget: Web Browser simplextech 4 640 01-12-2020, 12:47 PM
Last Post: simplextech
  Increment web image widget NishanF 5 738 10-24-2019, 08:16 AM
Last Post: Dean Roddey
  Web Camera Widget Questions znelbok 4 1,080 01-03-2019, 03:27 PM
Last Post: sic0048
  Widget table doesn't update Attributes tab rbroders 6 1,974 09-11-2018, 07:52 PM
Last Post: Dean Roddey
  Has there been changes to Slider Widget? pjgregory 11 4,943 03-10-2018, 10:32 AM
Last Post: Dean Roddey
  IFTT and HTTP Trigger parameter passing setup Shaky 5 3,436 03-09-2018, 10:20 PM
Last Post: Dean Roddey
  Interface Template editor widget view gone? rbroders 3 1,881 02-03-2018, 07:22 PM
Last Post: rbroders

Forum Jump:


Users browsing this thread: 1 Guest(s)