Author Topic: accessing javascript widgets in asp.net  (Read 559 times)

fredwhit

  • Newbie
  • *
  • Posts: 7
accessing javascript widgets in asp.net
« on: July 25, 2010, 06:12:07 PM »
Hello:

I have  been trying without success to access a widget value in asp.net.  I've read some of the threads on a PHP server for this type purpose.  I've also searched the net on passing javascript variables into asp.net via a hidden field.. I've been able to do that with generic variables but not with a "GetWidgetValue".

Any example code appreciated.  i am using VB.net under ASP.


fredwhit

  • Newbie
  • *
  • Posts: 7
Re: accessing javascript widgets in asp.net
« Reply #1 on: July 25, 2010, 07:04:43 PM »
I found the static API at

http://www.iobridge.net/wiki/api/static-widget-api

but when i paste in my widget id it returns "offline" which it clearly is not.  This API would be great if i knew specifically how to get the value from a widget set up to count pulses.

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 669
    • ioBridge Support
Re: accessing javascript widgets in asp.net
« Reply #2 on: July 26, 2010, 02:22:03 AM »
You definitely want to use the Static Widget API...so you are on the right track.

Do you want to send the widgetID so I can check?

Here is the widgetID for our server temperature: WZoiS5bwIdNi

Here's the corresponding URL: http://www.iobridge.com/widgets/static/id=WZoiS5bwIdNi

Make sure not to include the brackets...This returns the server temp.
ioBridge Support
Community Team