javascript - JQuery not adjusting image src in IE and Firefox, only in chrome -


i've created image gallery works expected in chrome, not work @ in firefox or internet explorer. i've had around @ similar questions don't believe helpful in solving issue.

i've created jfiddle of code:

https://jsfiddle.net/ydmgjzwp/

i'm guessing code causing issue is:

function updatemainimage(){   var selected = imagecontroller.selectedimageobject;   var currentimageobject = imagecontroller.imageobjects[selected];   var newimage = currentimageobject.image;    $(imagecontroller.mainimageimg).attr("src", newimage); } 

in ie , ff main image @ top not load @ all. ought changed, via jquery, first of smaller images, , whichever user selects.

i haven't noticed useful in console logs, again may missing something. can offer appreciated.

replace function

function trimcssurlsyntax(inputstring) {                     var returnstring = inputstring.replace('")', '');                     returnstring = returnstring.replace('url("', '');                     return returnstring;                 } 

Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

html - Outlook 2010 Anchor (url/address/link) -