C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » JavaScript »

Change Image name dynamically


Posted Date: 31 Oct 2009      Posted By: Sridhar      Member Level: Bronze     Points: 1   Responses: 2



Hi All,
I want to change image name dynamically using image object.I am using below code it is working fine in ie8 but it is not working in ie7.Any suggestions.Below is my sample code.

Here iam passing imageobject as parameter

function rename(imgobj)
{
Imgobj.name="test"
}





Responses

Author: Programmer    01 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Compare the ViewSource of the aspx page in ie7 and ie8.These must be some difference between the two.


Author: Manindra Upadhyay    03 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

using this code to change the image
Imgobj.src="../images/test.jpg"



Post Reply
You must Sign In to post a response.
Next : How to asign href (anchor tag) in java script in a loop.
Previous : How to show a value of dropdow in javscript
Return to Discussion Forum
Post New Message
Category: JavaScript

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use