Page 1 of 1

Tiggr ('component')

Posted: Tue Aug 14, 2012 7:48 am
by Joseph Yeung

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!


Tiggr ('component')

Posted: Tue Aug 14, 2012 6:06 pm
by maxkatz

What exactly doesn't work?

Are you getting any errors?

Is your list named 'platformsList'?


Tiggr ('component')

Posted: Wed Aug 15, 2012 2:23 am
by Joseph Yeung

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


Tiggr ('component')

Posted: Wed Aug 15, 2012 2:36 am
by Joseph Yeung

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.


Tiggr ('component')

Posted: Wed Aug 15, 2012 3:50 am
by maxkatz

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