Page 1 of 1

Element reference before page load

Posted: Wed May 23, 2012 9:20 pm
by Chris2656882

If one refers to a component name in a javascript file that loads before the page is shown (either in a project javascript file or in Device Ready or Load page event), all javascript on the page will fail.

In traditional JQuery, the action would be ignored, but in Tiggzi, the page fails.

I noticed that it only occurs when you refer to an element using the Tiggr shorthand. If one refers to the variable in proper JQuery notation, the script will continue to work.

• Tiggr('field').html('some data');//entire script fails

• $('input[dsid="field"]').html('some data');//script continues to work


Element reference before page load

Posted: Wed May 23, 2012 10:10 pm
by maxkatz

We'll test and fix this as soon as possible...


Element reference before page load

Posted: Thu May 24, 2012 3:32 pm
by maxkatz

Here is a workaround you can use for now:

code
Tiggzi('field') && Tiggzi('field').html('some data');
/code


Element reference before page load

Posted: Thu May 24, 2012 5:37 pm
by Chris2656882

Is there a fundamental difference between Tiggzi('field') and Tiggr('field')? Should I use one over the other?


Element reference before page load

Posted: Thu May 24, 2012 5:40 pm
by maxkatz

Same, Tiggzi(..) has the new name. We will also update Tiggzi to work with the problem you posted here.


Element reference before page load

Posted: Mon Jul 02, 2012 4:53 pm
by maxkatz

Should be fixed.