Sign in to follow this  
abdfahim

paletteColors without hash in front

Recommended Posts

Hi,

 

Is there any problem if I list the color codes without hashtag, e.g. like below? I have tested in Chrome, and it was working properly. The reason is, if I want to use xmlURL method and like to send paletteColors optionally, I can't use a # in color list as HTTP just ignore anything after # in the URL (as default behavior).

 

Ofcourse I can do some workaround in php, but just want to know whether there is any possible issue if I supply color codes without hash.

 

paletteColors = "123456,34AB21,64AC99"

 

Edited by abdfahim

Share this post


Link to post
Share on other sites

Hi,

 

Each HTML color code contains symbol "#" and 6 letters or numbers.

 

These numbers are in hexadecimal numeral system. For example "FF" in hexadecimal represents number 255 in Decimal.

 

So, providing '#' before color code is a good habit to avoid confusion.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this