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
  URL vs WebURL in Camera Widget gReatAutomation 1 483 12-31-2020, 08:36 AM
Last Post: Dean Roddey
  Camera Widget - URL, WebURL and Viewing While Not on Local network gReatAutomation 5 952 10-26-2020, 03:47 PM
Last Post: Dean Roddey
  Widget color and states bryanb 10 1,793 08-14-2020, 03:29 PM
Last Post: Dean Roddey
  Possible Bug in Web Browser Widget or SetURL kblagron 8 1,760 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 788 04-29-2020, 04:01 PM
Last Post: Dean Roddey
  Check Box widget on WebRIVA vs Interface Viewer bryanb 1 692 04-23-2020, 06:15 AM
Last Post: bryanb
  Widget: Web Browser simplextech 4 1,614 01-12-2020, 12:47 PM
Last Post: simplextech
  Increment web image widget NishanF 5 1,639 10-24-2019, 08:16 AM
Last Post: Dean Roddey
  Web Camera Widget Questions znelbok 4 1,890 01-03-2019, 03:27 PM
Last Post: sic0048
  Widget table doesn't update Attributes tab rbroders 6 2,829 09-11-2018, 07:52 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)