I am learning webgl now. When i tried to use texture, nothing was working for me.
I just copied the code from the following link to my machine and tried, but the texture was not working.

https://cvs.khronos.org/svn/repos/regis ... itBox.html

I also copied the code from some other website and tried. At that time also it was not working for me. I checked the image size all the time. It was power of 2.(like 256x256.. 512x512...)

Could you please tell me what is going wrong here?

Thanks in advance,