Page 1 of 1

How do I get the different font color from parse?

Posted: Tue Jul 10, 2012 10:11 am
by yllaw

How do I get the different font color from parse?

I created chat application and i found useful using your example http://help.gotiggr.com/getting-start... as my chat app and add some color for the font to be able distinguish who leave a message, but my problem is I only get one color from top Row of the parse
here the sample image : Image

and here the image for mobile app : Image

and here my added code for the font color :

var colorHEX = localStorage.getItem('save_color');
Tiggr('text2').css({'color':'#' + colorHEX});

I put this code in Load event in Run Custom JavaScript

thanks in avance!


How do I get the different font color from parse?

Posted: Tue Jul 10, 2012 1:00 pm
by maxkatz

What REST command do you use to get the colors? You remove the private keys form the command.


How do I get the different font color from parse?

Posted: Wed Jul 11, 2012 5:47 am
by yllaw

I use "get" in my REST command here the sample image:
Image

I'm sorry I have no idea about the private keys form?


How do I get the different font color from parse?

Posted: Wed Jul 11, 2012 6:32 am
by maxkatz

If the collection name is 'Test', you should be getting the entire collection. Can you post a picture of service test?


How do I get the different font color from parse?

Posted: Wed Jul 11, 2012 7:46 am
by yllaw

How do I get the different font color from parse?

Posted: Wed Jul 11, 2012 11:44 am
by maxkatz

Based on the screen shot, you are getting all the objects (colors) in the collection.


How do I get the different font color from parse?

Posted: Thu Jul 12, 2012 5:58 am
by yllaw

yes sir I'm getting all the objects, but what I want is my font color to be equal to the HEX color value came from parse, my problem is I'm just getting one color value and it looks like that 1 color only apply to all the text messages

here the sample image that I like my font to be exact HEX color value that i get from parse:

Image

I get my HEX color value from Parse Test Classes, column bgcolor:

Image


How do I get the different font color from parse?

Posted: Thu Jul 12, 2012 12:35 pm
by maxkatz

You would need to set the label color during mapping. You can try this. Add a hidden label, map the color to it. Then in JavaScript for the hidden label, find the actual label component and set its color.

http://help.tiggzi.com/documentation/...