语言

Menu
Sites
Language
How to pass variables between different windows?

I was wondering what is the best way of passing variables bewteen different windows/ pages? 

Is it possible to pass a starting value to the  using php like this <a href="../rotaryevent/index.php?var=50">OK</a>

and then get the variable like this:

    <progress class="ui-circle-progress" id="circleprogress" max="100" value="<?php echo $var ?>"></progress>

Tried this but didn't work. Guess there are better ways of doing it. any help would be very much appreciated.

 

查看选择的答案

响应

6 回复
Mark as answer
daniel kim

Hi,

I would suggest you to check this link which has explained about web storage.

   https://developer.tizen.org/development/tutorials/web-application/w3chtml5supplementary-features/storage/web-storage

Regards

Maximilian Steiner

Thank you very much for your answer. 

AVSukhov

Hello,

You can use global variable, web staorage (local or sessuon), widget preferences...

Depends on the use case.

Maximilian Steiner

Is there a way to store the data from the wearable in a permanent database (e.g. mysql) ?

I found this article but it is not suitable for wearables: https://developer.tizen.org/development/tutorials/web-application/w3chtml5supplementary-features/storage/web-sql-database

Is it only possible when connecting the wearable app with a mobile app (integrated app) ?

 

Marco Buettner

Tizen supports WebSQL (depracted) and indexedDB (recommended), on both mobile and wearables

https://developer.mozilla.org/de/docs/IndexedDB

AVSukhov

Hello,

You can use Indexed DB:

https://developer.tizen.org/development/tutorials/web-application/w3chtml5supplementary-features/storage/indexed-database