Ricki Ricardo
Posts: 0
Joined: Fri Nov 16, 2012 9:30 am

Tiggr doesn't return valid object

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Tiggr doesn't return valid object

Hello,
The problem may appear if you have two componens named "urlLink"... Please check it.

Ricki Ricardo
Posts: 0
Joined: Fri Nov 16, 2012 9:30 am

Tiggr doesn't return valid object

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Tiggr doesn't return valid object

We can't reproduce it.. Could you share your project with support@tiggzi.com so we can test it?

Ricki Ricardo
Posts: 0
Joined: Fri Nov 16, 2012 9:30 am

Tiggr doesn't return valid object

I did this. Steps. Low Price Search - Drug Name - Lipitor - in console log you can see information.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Tiggr doesn't return valid object

Ok, will test and update when have information.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Tiggr doesn't return valid object

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.

Ricki Ricardo
Posts: 0
Joined: Fri Nov 16, 2012 9:30 am

Tiggr doesn't return valid object

O, thanks. I got it.

Return to “Issues”