I have a JQuery desktop like application that I have been working on. When a navigation link is clicked, it opens a new dialog. That part all works great. What I am having issues with is creating the icons in my toolbar for each dialog. The structure should look like this:
<Div id="minimize-footer>
<div id="category1>
<a href>Dialog Title </>
<a href>Dialog Title </>
</div>
<div id="category2>
<a href>Dialog Title </>
<a href>Dialog Title </>
</div>
and so on. The code should check if the category div exists and if it doesn't, create it and add the link. If it exists, I need to just add it to the already existing category div. I'm not sure why the code I'm using is not working. I have a fiddle created that I have been messing around with and would love a little direction in what I'm trying to do.
Thanks,
I have modified it so the buttons are being created, but it's not adding to the same category div, it's just adding a new one each time. Also instead of add the category to the div id, it just says object. This is what it's doing, I have updated the fiddle link to:
<div id="minimize-footer" class="dialog-700 ui-corner-all ui-button" title="Click to restore dialog">
<div id="[object" object]="">
<a>Title Dialog</a>
</div>
<div id="[object" object]="">
<a>Title Dialog</a>
</div>
<div id="[object" object]="">
<a>Title Dialog</a>
</div>
<div id="[object" object]="">
<a>Title Dialog</a>
</div>
</div>
Uncaught ReferenceError: uiDialog is not defined