Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Swathi 87 posts 281 karma points
    Nov 18, 2015 @ 11:36
    Swathi
    0

    Calling an Jquery Function in anchor tag

    Hi,

    My home page consists of an Live radio streamer , The requirement is to stop the streamer from breaking when any subpage is navigated. To avoid refresh of the player, I’m trying to replace ‘RenderBody()’ function on master with Jquery method.

    How do I call a Jquery Function in the anchor tag?

    Ref:

    < a href="#" onclick=" fnHome ()" /> --->> Doesn’t work

    < script type="text/javascript"> function fnHome() { $.get('@Url.Action("HomePage", "K100Surface")', function (result) { $('#bodyContent').html(result); }); }

    s cript>

    Or is there any other way to stop the player from refreshing?

    Swati

Please Sign in or register to post replies

Write your reply to:

Draft