Talgat Karylgashov

Greenhorn
+ Follow
since Oct 12, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Talgat Karylgashov

Thanks, guys!
I've solved the problem.
It's in the javascript's behavior. If I put the <div id="counter_0_1"></div> used to show the counter befor the javascript's code it works. And doesn't work if I put the <div> after the javascript. Weird...
Sorry if I wasted your time. It has taught me to compare working and non-working code carefully before posting to a forum.
12 years ago
JSP
Bear, thanks for your answer, but the JspFaq doesn't help me.
If you look at my first post you will see that I tried to use context path and the javascript code in my .jsp is below.

But anyway I can't see this two .png images when I start my web project and open the .jsp.
12 years ago
JSP
Hi. This is my javascript function which works in the .html.

I need to make it work in the .jsp (javascript can be placed into .jsp). If I place 'numeric_up_blackbg5.png' and 'marker.png' images in the same folder where the .jsp is located it doesn't work (I do not see the counter).
.jsp is the main page of my web project.
12 years ago
JSP
I need to do a dynamic counter on the JSP. "Dynamic" means by javascript. I use some script which manipulates PNG images to show the counter. Pathes to this PNG images must be defined explicitly in the javascript code. So, in the simple HTML (if I place script into <head/> tags, then define relative pathes to images) it works. But if I move it to my JSP, images a not shown.
Maybe I should use servlet which will transfer an array of bytes of PNGs or something like that?..
12 years ago
JSP
Hi, everybody!
I need help.
My task is to point to a .png file in a javascript. If I do this in the .html using relative path to the .png which is located in the /images folder everything is OK, but in the .jsp the javascript function can't find the image. I tried to use relative path, then tried to use
but javascript can't find image at all.

Thanks in advance.
12 years ago
JSP