JQueryUI Dialogs ... Seperate javascript file in each?

Posted by matt2kjones, 02-12-2011, 02:32 PM
Hey guys, I'm writing a webapp for a project of ours. It does ajax calls to download and display "web applications". These web applications then use JQueryUI to display widgets and so on. Each web app is stored in a div... then each dialog and such the webapp has... is a child object of that parent div. Now... here is my problem... I want javascript and css to be private to each web application aka... div. How can I do this? I think the only way is to do it with an iframe. Put all the html, javascript and css which makes up the webapp into an iframe... then it is private to just that iframe. Any other ideas?

Posted by jeremyhaber, 02-13-2011, 03:05 PM
This is somewhat possible. It's all in the way you program it. You shouldn't need iframes for this. I have recently taken a turn in the way I do javascript. Complex projects will now use a core-sandbox-module system. Essentially it is the javascript equivalent to OOP. As shown in this tutorial: http://net.tutsplus.com/tutorials/ja...-architecture/ As well for a bit of a better understanding of OOP in javascript: http://net.tutsplus.com/tutorials/ja...ed-javascript/ What this all does is allows you to build specific parts of your application in javascript without relying on other aspects of your code. This allows you to include that module on any page you want without it breaking! Hope that helps.

Hjalp dette svar dig?

 Print denne artikel

Læs også

Would this be Secure?

Posted by aldo, 01-09-2008, 03:19 AMI currently only use cookies for my user systems, I see...

Content not loading from cache in iframe / frameset

Posted by DevMonkey, 02-16-2011, 03:52 PMOk, trust me, I have a legit reason to be using iframes...

Merchant account

Posted by cass, 09-03-2002, 06:00 AMHi, Just joined to get advise on a merchant account for my...

php help

Posted by BattleMasterGaara, 02-06-2011, 10:44 PMWhat code do i use just to switch the content of...

Where can I find a working PHP SMS text script?

Posted by lexington, 01-13-2011, 04:56 AMI found this site which works in sending text messages...