Discussion refresh browser markup in client side ONLY

  • Wednesday, October 05, 2011 10:03 PM
     
     

    hi dear readers

    when i coding with jQuery framework in some time ,some code not work fine in ie but good  work in other browser

    according to  flowing codes:

        $('#albumButtonsPauseStart').click(function ()
        {
            if ($(this).hasClass('album-buttons-pause-hover'))
            {
                $(this).addClass('album-buttons-start-hover').removeClass('album-buttons-pause-hover');
            }
            else if ($(this).hasClass('album-buttons-start-hover'))
            {
                $(this).removeClass('album-buttons-start-hover').addClass('album-buttons-pause-hover');
            }
        });

    this code change image of "albumButtonsPauseStart" element with change this class but this in ie not good work

    whether exist a solution for client  code refresh in DOM  ?????????!!!!


All Replies

  • Friday, October 07, 2011 7:26 AM
    Moderator
     
     
    Hi Ehsan,

    What do you mean by "not work fine"? works seldom? Or works everytime but not ideal compared with the results in other browsers?
    Well this is not easy to reproduce, I am afraid we have to write much code if we want to.
    So could you post a relatively complete code sinppet for us to reproduce the issue, a whole html page is perfect.
    Our friends here are all willing to help, but make sure your post expresses your issue clearly.
    Thanks for your understanding.

    Have a nice day,
    Leo Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Friday, October 07, 2011 9:37 AM
     
     
    whether exist a solution for client refresh code in on DOM element ?????????
  • Tuesday, October 11, 2011 10:56 AM
    Moderator
     
     
    Your code is exactly operating the DOM elements, the changes made to the layout will be reflected on the page as soon as your .addClass and .removeClass methods are called.
    If you doesn't have any material problem please change your thread type to "discussion", or I will delete your thread later.
    Have a nice day,
    Leo Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.