This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to change the src attribute of embed tag

 
shah rhukh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.......
I am new to JSP. I have to change the src attribute of embed tag.

<embed src="path" width="981" height="444" align="middle" access=94 fit = "100%" mousemode="pan" alt="" name="Image" > </embed>

Please help me........
Thanks in advance....
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I'm missing something. If this is a JSP page, then it should be easy to change it so that the src attribute contains whatever you want it to contain.

Or are you saying that the current value of the attribute causes problems, and you don't know what to put there? Then you should TellTheDetails of what exactly is happening.
 
shah rhukh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
I think I'm missing something. If this is a JSP page, then it should be easy to change it so that the src attribute contains whatever you want it to contain.

Or are you saying that the current value of the attribute causes problems, and you don't know what to put there? Then you should TellTheDetails of what exactly is happening.


actually here i have two drop downs. one is populated using bean and the 2nd is populated as per the first. in first drop down i hv folder name and in 2nd i hv file name, i achived this using AJAX i got the file name in 2nd drop down now i m trying to change the image as per selection of drop downs for this also i used AJAX i passed foldername and file name to the another jsp page where i select the path of file and append folder name and file name after that i use
document.getElementById('tifimage').innerHTML = results_image;
here tifimage is id of table td
please help me..........
 
Vallidevi Appana
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try this JS code..



If the following is not working, then change embed tag to Image tag and try the above code.

Hope this helps you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic