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?
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
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.