PDA

View Full Version : Ext.Direct Standalone



luisbug
14 Oct 2009, 3:38 PM
Hi,

I'm developing a project with ExtJS on the backoffice and JQuery for front-office more polished interface.
I'm using Ext.Direct do transfer data in the administration and would like to do so on the front-office part of the application too.

I was wondering if there was any way to build a minimum version of ExtJS just do get Ext.Direct working, as the full 600kb is a bit too much, just to use that feature.

Thanks in advance

Luis

evant
14 Oct 2009, 3:55 PM
Have a look inside the pkgs folder.

You'd likely need the Ext core stuff, the Ext.data stuff then Ext.direct.

luisbug
14 Oct 2009, 3:59 PM
Thanks.
I'll try that. :)
That was the first thing i did, but wasn't sure about the dependencies.

luisbug
14 Oct 2009, 4:40 PM
Thanks.
It worked great.
Here are the packages I had to include.


<script src="lib/jquery/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/ext/adapter/jquery/ext-jquery-adapter.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/ext/pkgs/ext-foundation.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/ext/pkgs/cmp-foundation.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/ext/pkgs/data-foundation.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/ext/pkgs/direct.js" type="text/javascript" charset="utf-8"></script>
<script src="../api.php" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript" charset="utf-8">
Ext.Direct.addProvider(App.API);
</script>(I executed a simple test, but aparently everything works fine)