Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a partial view that has some images that represent the first page different catalogs. When the image is clicked if runs a js.
function RefreshCatalog(id) { $.ajax({ type: "POST", url: '/umbraco/surface/CustomComponentSurface/IBDLaodCatalog', data: { CatIndex : id }, success: function (responce) { $('.turn-flipbook').html(responce); } }); }
Id represents the content id
[HttpPost] public ActionResult IBDLaodCatalog(string CatIndex) { try { IPublishedContent model = Umbraco.Content(CatIndex); return PartialView(PARTIAL_VIEW_COMPONENTS_FOLDER + "IBDFlipBook.cshtml", model); } catch { return null; } }
The Partial view loads however there is a load of javascript (turn.js) that needs run to load the catalog but this dosent run. only that aspects of the view are displayed that are not populated from the scripts.
How do I get around this.
Solved
Placed the turn.js flipbook partial in a Ajax form as well as loading the javascript inside it rather than in the and it worked perfect.
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" button below.
Continue discussion
JS for Partial view dont run when loaded via another script
I have a partial view that has some images that represent the first page different catalogs. When the image is clicked if runs a js.
Id represents the content id
The Partial view loads however there is a load of javascript (turn.js) that needs run to load the catalog but this dosent run. only that aspects of the view are displayed that are not populated from the scripts.
How do I get around this.
Solved
Placed the turn.js flipbook partial in a Ajax form as well as loading the javascript inside it rather than in the and it worked perfect.
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" button below.
Continue discussion