tag:blogger.com,1999:blog-10412725.post114602912042403781..comments2023-12-20T11:59:27.606+05:30Comments on Vivek live and kickin': require_once, #include in JavaScriptVJhttp://www.blogger.com/profile/16622503044343820788noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-10412725.post-1146205188786352232006-04-28T11:49:00.000+05:302006-04-28T11:49:00.000+05:30Note that using this function requires that the in...Note that using this function requires that the included file be fully loaded before any of the code within that file can be executed (as scripts are downloaded asynchronously). If you require the code to be executed immediately after the include statement, you can use the XMLHttpRequest object, setting the async flag to false.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-10412725.post-1146075744863234082006-04-26T23:52:00.000+05:302006-04-26T23:52:00.000+05:30I like the idea of a "require once" functionality ...I like the idea of a "require once" functionality where it could check if the script has been loaded already (which is great for lazy coders like me).<BR/><BR/>The following pages have similar solutions (including a way to "unload" the script which is necessary if you are writing a web app that sticks around for a while).<BR/><BR/>http://simon.incutio.com/archive/2005/12/16/json<BR/>http://www.theurer.cc/blog/2005/12/15/web-services-json-dump-your-proxy/Patrickhttps://www.blogger.com/profile/16810601215795687043noreply@blogger.com