Page 1 of 1
problem of javascript--fill in color
Posted: Mon Apr 21, 2014 11:47 am
by Justice Chan
problem of javascript--fill in color
Posted: Mon Apr 21, 2014 1:07 pm
by Kateryna Grynko
Hi,
Sorry, not sure what you mean by photo background and how you are about to change it. If you haven't implemented it yet - this may be helpful: http://stackoverflow.com/questions/20...
You can set any property using Appery function: preAppery('componentname').css('color', 'blue');/preSame as above, just without using Appery function (straight jQuery): pre$('div[dsid="componentname"]').css('color', 'blue');/preorpre$("[dsid=componentname]").css('color', 'blue');/pre
Where componentname is a name of the component.
problem of javascript--fill in color
Posted: Mon Apr 21, 2014 1:13 pm
by Justice Chan
ok how about if i want to check the number of scan? For example, Scan first time fill the top of the image. seconnd time fill the down image. Thank You so much!!
problem of javascript--fill in color
Posted: Mon Apr 21, 2014 1:40 pm
by Kateryna Grynko
You could create a localStorage counter variable and increment its value on service Success event, for example. Please note, it's stored as string - you will need to parse it. Not too elegant, but should work.
problem of javascript--fill in color
Posted: Mon Apr 21, 2014 1:46 pm
by Justice Chan
I try this but it doesn't work. Anyway.Thank for the reply^^
problem of javascript--fill in color
Posted: Mon Apr 21, 2014 1:58 pm
by Kateryna Grynko
Where do you run this code? What is checkcolor() and checkcolor1()?
What do you see in browser console (F12) ?
problem of javascript--fill in color
Posted: Mon Apr 21, 2014 2:02 pm
by Justice Chan
checkcolor() and checkcolor1() are the function in javascript. Since it is the barcode scannar, i cannot test in the browser.
When the user scan one time, the color will be filled in the top of image. Second time, the color will be filled in the down of image.
problem of javascript--fill in color
Posted: Mon Apr 21, 2014 2:41 pm
by Kateryna Grynko
Please try the suggested code to access components.
https://getsatisfaction.com/apperyio/...