This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to change the src attribute of embed tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to change the src attribute of embed tag" Watch "How to change the src attribute of embed tag" New topic
Author

How to change the src attribute of embed tag

shah rhukh
Greenhorn

Joined: Oct 08, 2007
Posts: 9
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
Marshal

Joined: Mar 22, 2005
Posts: 41627
    
  55
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.


Ping & DNS - my free Android networking tools app
shah rhukh
Greenhorn

Joined: Oct 08, 2007
Posts: 9
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

Joined: Jun 30, 2006
Posts: 25
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to change the src attribute of embed tag