Joseph Yeung
Posts: 0
Joined: Tue Aug 14, 2012 7:48 am

Tiggr ('component')

Hi,

I was trying out the example of "Manipulating Tiggzi Components with jQuery Mobile" in your documentation.

The following suggested custom code, however, doesn't seem to work
code
var list = Tiggr('platformsList');
var newPlatform = Tiggr('newPlatformField').val();
list&#46;append('<li><a>' + newPlatform + '<&#47;a><&#47;li>')&#46;listview('refresh');
Tiggr('newPlatformField')&#46;val('');
/code
What was it that I was missing? Anything concerned with the use "Tiggr" tag?

Many thanks in advance!

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

Tiggr ('component')

What exactly doesn't work?

Are you getting any errors?

Is your list named 'platformsList'?

Joseph Yeung
Posts: 0
Joined: Tue Aug 14, 2012 7:48 am

Tiggr ('component')

Hi, Max

Thank you for replying quite promptly.

The Console showed no error.
I made input and clicked add button, b ut nothing happened.
I named it 'platformList' (without 's' in the middle), but coded accordingly.

Josef

Joseph Yeung
Posts: 0
Joined: Tue Aug 14, 2012 7:48 am

Tiggr ('component')

Hi,

I've solved it, although I don't know how, i.e.I may not be able to reproduce the error and fix.

I copied code verbatim and re-created a list called "platformsList". This time everything worked.

Anyway, the code you provided is alright.

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

Tiggr ('component')

Might have been a spelling issue somewhere... glad it's working.

Return to “Issues”