• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to change the src attribute of embed tag

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..........
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Everybody's invited. Except this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic