maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

STRING MAPPED FROM LOCALSTORAGE

Try using jQuery directly to get the value...

Michael Klauss
Posts: 0
Joined: Thu Mar 15, 2012 3:55 pm

STRING MAPPED FROM LOCALSTORAGE

Hi Max,

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

I ́m trying

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

alert(nomeUnidSaudeLocal.val());

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

STRING MAPPED FROM LOCALSTORAGE

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

Michael Klauss
Posts: 0
Joined: Thu Mar 15, 2012 3:55 pm

STRING MAPPED FROM LOCALSTORAGE

Hi Max,

I ́m using a label.

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

alert(nomeUnidSaudeLocal.val());

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

Michael Klauss
Posts: 0
Joined: Thu Mar 15, 2012 3:55 pm

STRING MAPPED FROM LOCALSTORAGE

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

STRING MAPPED FROM LOCALSTORAGE

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

Michael Klauss
Posts: 0
Joined: Thu Mar 15, 2012 3:55 pm

STRING MAPPED FROM LOCALSTORAGE

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); "

Michael Klauss
Posts: 0
Joined: Thu Mar 15, 2012 3:55 pm

STRING MAPPED FROM LOCALSTORAGE

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!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

STRING MAPPED FROM LOCALSTORAGE

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

STRING MAPPED FROM LOCALSTORAGE

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-...

Return to “Issues”