Page 1 of 1
Tiggr doesn't return valid object
Posted: Thu Jan 24, 2013 10:03 am
by Ricki Ricardo
I have a trouble. Few days ago my app work perfectly, but today it crashed. I tried to solve problem and found that Tiggr('urlLnk') can't find a rel="nofollow".
I wrote this code for debug
for (var i = 0; i < $('[dsid=urlLnk]').length; i += 1) {
console.log('$dsid - Tiggr', $('[dsid=urlLnk]'), Tiggr('urlLnk'));
}
and got next result
$dsid - Tiggr
a class=""linkClass" name=""urlLnk"" rel="nofollow".../a
a class=""linkClass" name=""urlLnk"" rel="nofollow"...
$dsid - Tiggr
a class=""linkClass" name=""urlLnk"" rel="nofollow"https://www.goodrx.com/atorvastatin?grx_ref=mobile
undefined
I think when I try get object via tiggr(selector) Tiggr found first object and returned it. But first finded object is tmpl and doesn't have need data for me.
Could you help me? May be I wrote something wrong.
/a/a/a
Tiggr doesn't return valid object
Posted: Thu Jan 24, 2013 11:36 am
by Kateryna Grynko
Hello,
The problem may appear if you have two componens named "urlLink"... Please check it.
Tiggr doesn't return valid object
Posted: Thu Jan 24, 2013 11:48 am
by Ricki Ricardo
I created one component. But in page exists two components in two tables. I map data from rest.
1) table id="j_5" class="mobilegrid mobilegrid1" dsid="resultsGrid" name="resultsGrid" cellpadding="0" cellspacing="0" style="display: none;" _tmpl="true"
2) table id="j_5_0" class="mobilegrid mobilegrid1" dsid="resultsGrid_0" name="resultsGrid" cellpadding="0" cellspacing="0" style="display: table;" dsrefid="resultsGrid" idx="0"
In each table exists component with name urlLink.
Tiggr doesn't return valid object
Posted: Thu Jan 24, 2013 1:39 pm
by Kateryna Grynko
We can't reproduce it.. Could you share your project with support@tiggzi.com so we can test it?
Tiggr doesn't return valid object
Posted: Thu Jan 24, 2013 1:43 pm
by Ricki Ricardo
I did this. Steps. Low Price Search - Drug Name - Lipitor - in console log you can see information.
Tiggr doesn't return valid object
Posted: Thu Jan 24, 2013 1:47 pm
by Kateryna Grynko
Ok, will test and update when have information.
Tiggr doesn't return valid object
Posted: Thu Jan 24, 2013 2:42 pm
by Kateryna Grynko
You use our Tiggr function, that always returns one item. This can't be changed.
So there is a difference between this code search:code$('[dsid=urlLnk]')/code
and our function:codeTiggr('urlLnk')/code
You can use $('[dsid=urlLnk]') because Tiggr function can't be used with mapping.
Tiggr doesn't return valid object
Posted: Fri Jan 25, 2013 8:00 am
by Ricki Ricardo