Hello
I want to make an extension to embed extjs grid. So I need to add css and js link in the head of the page, ie
Then in my deki page, I create a classic table and I add a sort ofCode:<link rel="stylesheet" type="text/css" href="http://wiki/skins/mystuff/extjs/resources/css/ext-all.css" /> <script type="text/javascript" src="http://wiki/skins/mystuff/extjs/adapter/ext/ext-base.js"></script>
where abc is the id of the table. The Javascript then parses the html table and inserts the javascript grid.Code:{{ extjs.insertTable{tablename: "abc"} }}
In fact, I can have several tables in one page. For instance :
So I need the extension to test to import js+css only once.Code:{{ extjs.insertTable{tablename: "abc"} }} {{ extjs.insertTable{tablename: "def"} }} {{ extjs.insertTable{tablename: "ghi"} }}
But how can I adapt my head tag ?
with a kind of test (<eval:if...) of a setted variable (how to)Code:<html xmlns:eval="http://mindtouch.com/2007/dekiscript"> <head> <link rel="stylesheet" type="text/css" href="http://wiki/skins/mystuff/extjs/resources/css/ext-all.css" /> <script type="text/javascript" src="http://wiki/skins/mystuff/extjs/adapter/ext/ext-base.js"></script> </head>
How to write an include_once ?
thanks


Reply With Quote

