XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Code to update core from button press https://www.bbs.xwidget.com/viewtopic.php?f=8&t=2771 |
Page 1 of 1 |
Author: | meme [ March 22nd, 2013, 12:12 am ] |
Post subject: | Code to update core from button press |
What code can be used to update a core from a button press ?, for example webparsercore1.update or accweathercore1.update |
Author: | pepe [ March 22nd, 2013, 1:41 am ] |
Post subject: | Re: Code to update core from button press |
- In WebParseCore and RSSCore it's done with !Refresh (OnClick) - In AccWeatherCore it's !UpdateWeather (OnClick). But don't forget to bind your "button" to your specific core (e.g. accweathercore1). |
Author: | meme [ March 22nd, 2013, 9:45 pm ] |
Post subject: | Re: Code to update core from button press |
Quote: - In WebParseCore and RSSCore it's done with !Refresh (OnClick) - In AccWeatherCore it's !UpdateWeather (OnClick). But don't forget to bind your "button" to your specific core (e.g. accweathercore1). Thank you very much for your reply, that works OK when you want one event to be triggered by one button. What code would I use to trigger these two events from one button example- WebParseCore1.!Refresh; AccWeatherCore1.!UpdateWeather; These do not work and give debug errors. |
Author: | qiancang [ March 22nd, 2013, 11:10 pm ] |
Post subject: | Re: Code to update core from button press |
WebParseCore1.cmd(null,'!Refresh'); AccWeatherCore1.cmd(null,'!UpdateWeather'); |
Author: | meme [ March 22nd, 2013, 11:39 pm ] |
Post subject: | Re: Code to update core from button press |
Thank you qiancang ![]() |
Author: | Jimking [ March 9th, 2016, 3:08 am ] |
Post subject: | Re: Code to update core from button press |
So speaking for the rest of the cores, it will be like this? ramcore1.cmd(null,'!Refresh'); |
Author: | Armando [ May 23rd, 2016, 3:42 pm ] |
Post subject: | Re: Code to update core from button press |
Hi, I also have a question: Code for battery refresh? is this? batterycore1.cmd(null,'!Refresh') Thanks! |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |