Page 2 of 3

STRING MAPPED FROM LOCALSTORAGE

Posted: Mon Mar 26, 2012 4:34 pm
by maxkatz

Try using jQuery directly to get the value...


STRING MAPPED FROM LOCALSTORAGE

Posted: Mon Mar 26, 2012 4:45 pm
by Michael Klauss

Hi Max,

Can you write the jquery code for me, please?!

I ́m trying

var nomeUnidSaudeLocal = $('input[dsid="labelNomeItemUnidadeSaude"]');

alert(nomeUnidSaudeLocal.val());


STRING MAPPED FROM LOCALSTORAGE

Posted: Mon Mar 26, 2012 4:51 pm
by maxkatz

It looks right... are you using input or label component to display the value..?


STRING MAPPED FROM LOCALSTORAGE

Posted: Mon Mar 26, 2012 4:54 pm
by Michael Klauss

Hi Max,

I ́m using a label.

var nomeUnidSaudeLocal = $('label[dsid="labelNomeItemUnidadeSaude"]');

alert(nomeUnidSaudeLocal.val());

But...the alert is showing the message: "undefined"


STRING MAPPED FROM LOCALSTORAGE

Posted: Mon Mar 26, 2012 4:58 pm
by Michael Klauss

Please Max

The deadline for me to finish this project is running out!

I really need your help!

I can not die on the beach ... missing very little.


STRING MAPPED FROM LOCALSTORAGE

Posted: Mon Mar 26, 2012 5:02 pm
by maxkatz

It should be 'div', not 'label'.


STRING MAPPED FROM LOCALSTORAGE

Posted: Mon Mar 26, 2012 5:07 pm
by Michael Klauss

Didn ́t work.

var nomeUnidSaudeLocal = $('div[dsid="labelNomeItemUnidadeSaude"]');

alert(nomeUnidSaudeLocal.val());

Print blank...

I ́m trying do it...because ...your comment ...

" I'll test this again, it might be a bug. Instead of using of Using Set Local Storage Variable action, save the variable in local storage directly using setItem(key, value) and then get the value using getItem(key); "


STRING MAPPED FROM LOCALSTORAGE

Posted: Mon Mar 26, 2012 5:20 pm
by Michael Klauss

I don ́t know what can i have to do!!!!!!!!!!!!

This is the last call of my service! To get details about each element!

The most important call...!!!

Please....i need a lot your help!


STRING MAPPED FROM LOCALSTORAGE

Posted: Mon Mar 26, 2012 5:21 pm
by maxkatz

Once you save a value into Local Storage, check to make sure it's there with Chrome Developer Tools. This is just pure jQuery, nothing to do with Tiggzi builder.


STRING MAPPED FROM LOCALSTORAGE

Posted: Tue Mar 27, 2012 12:48 am
by maxkatz

I tried your example. I saved directly into Local Storage and then used Set Local Storage variable. In both cases everything worked:
http://tiggzi.com/view/a9802297-fd7b-...