Just put the jQuery code plus any other plugin code you need plus your own
'document ready' code all into one file!


Banta wrote:
> 
> 
> Hi,
>  I'm working on a calendar widget and want to make it possible for
> people to embed it on their websites...
> 
> My goal is to keep the embed line as simple as possible, something
> along these lines:
> 
> <script src="www.mywebserver.com/webservices/?
> userid=123&style=123&etc=123" />
> 
> Now, my question is: How do i do this in the best possible way if i
> want to use Jquery.
> Seeing as most Jquery scripts usually have at least 2 lines: 1 for
> jquery, 1 for a plugin, how do i get this down to 1 line ?
> 
> It seems people have been using the document.write("<script src=".."><
> \/script>") method alot.
> But is that really the best way to do it ? And how browser compatible
> is that solution anyway ?
> 
> - Regards,
>  Banta.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Bootstrapping-Jquery%2C-Or%3A-How-to-Create-a-1-line-javascript-widget-for-external-websites...-tf3700836s15494.html#a10352983
Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to