Note that there are some explanatory texts on larger screens.

plurals
  1. POAJAX injected PartialView apply Jquery ( ASP.NET AJAX JQUERY HTML)
    primarykey
    data
    text
    <p>If anyone can help me with this it would be awesome. I'm creating a web app that uses AJAX to inject a partial view into my my main page. I'm using jquery .accoridon to be able to toggle these AJAX loaded views(div) when they are in the main view. However, this is not working. Prior to using AJAX the accordion was working fine.</p> <p>I have tried using the .on .live .delegate to the jquery function but, still no luck.</p> <p>Below is the section the section of my page where content is to be loaded into the accordion</p> <pre><code> &lt;script&gt; $(function () { $("#accordion").delegate.accordion({ collapsible: true }); }); &lt;/script&gt; &lt;div id="accordion"&gt; &lt;div id="replace2"&gt; &lt;div id="replace1"&gt; &lt;!-- This is where content is loaded too via ajax, it's needed so the #accordian div is not reaplced --&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>The next part is an example of how im adding my first bit of ajax content</p> <pre><code>@Ajax.ActionLink("Create New", "create_new", new AjaxOptions { UpdateTargetId="replace1", InsertionMode= InsertionMode.Replace, HttpMethod = "GET" }) </code></pre> <p>and this is how im updating my second bit of ajax content</p> <pre><code> @Ajax.ActionLink("Create New", "create_new", new AjaxOptions { UpdateTargetId="replace2", InsertionMode= InsertionMode.Replace, HttpMethod = "GET" }) </code></pre> <p>Does anybody have anythoughts how I can load this content into a workign jquery accordion?</p> <p>Thanks, Mark</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload