I am working on a web part that must display some information in a modal box. Having worked with jQuery UI in the past and appreciating its simplicity and acceptance in the .NET world, I am trying to figure out what is the recommended approach to integrate the library via the web part. There are a lot of articles on the web, but having bounced from one to another in search of succinct instructions, I reached SO somewhat exhausted!
Here are my specific constraints:
- I don't want to add jQuery and jQuery UI to the master page.
- I don't want to use a CEWP to add the libraries to the page, since there are a good number of existing web part pages that will use the web part I am developing.
- Whatever mechanism I use to add the libraries to a page, I want to make sure they don't conflict with an already added jQuery to that page. For instance, if I add two instances of this custom web part, the second one should ideally detect that jQuery has already been added to the page and must not be added again.
- Using Designer is not at all an option (I just brought this up, even though it is most likely not an option).
Hopefully this does not sound too off-topic, but I need to add a jqGrid inside this modal box; I am considering a simpler approach such as using a combination of an SP application page + IFRAME.
I hope someone can give me step by step instructions to get started. That is tantamount to winning the lottery, at this point :-) Thank you!