Problem loading custom widgets

11 views
Skip to first unread message

Pk

unread,
Jan 11, 2011, 2:07:13 AM1/11/11
to porcupine-users
Hi,

I was trying to load the custom widgets through Quix and I followed
the steps here http://wiki.innoscript.org/index.php/Developers/HowToIncludeQuiXCustomWidgetsAndStylesheets

I was trying out the Quix ruler application http://innoscript.org/quix-ruler/

I tried to just load it in the querperformer application, so that when
you click on "New Query" the newquery.quix had the following

<a:stylesheet xmlns:a="http://www.innoscript.org/quix" name="ruler"
src="queryperformer/ruler.css" />
<a:module xmlns:a="http://www.innoscript.org/quix" name="Ruler"
src="queryperformer/ruler.js" />

<window xmlns="http://www.innoscript.org/quix"
width="480" height="300" status="true"
resizable="true" close="true" minimize="true" maximize="true">
<wbody>
<vbox spacing="0" width="100%" height="100%">
<toolbar height="34" />
<a:custom classname="Ruler"/>
</vbox>
</wbody>
</window>


This does not load in the application window. I debugged using firebug
and I get an error. But it seems like the QUIX syntax to load the
stylesheet and module is failing.
<a:stylesheet xmlns:a="http://www.innoscript.org/quix" name="ruler"
src="queryperformer/ruler.css" />
<a:module xmlns:a="http://www.innoscript.org/quix" name="Ruler"
src="queryperformer/ruler.js" />

Any hints or something that I am doing wrong?

tkouts

unread,
Jan 12, 2011, 5:41:44 PM1/12/11
to porcupine-users
Hi,

It seems that this is not a valid XML markup since there is not a root
document element and the namespaces are incorrect.
Apart from this the documentation page is quite old. The newer QuiX
versions do not require the name space declaration for every XML node.
Just declare the name space on the root document element (<window
xmlns="http://www.innoscript.org/quix"...).
The newquery.quix should be:

<window xmlns="http://www.innoscript.org/quix"
width="480" height="300" status="true"
resizable="true" close="true" minimize="true" maximize="true">

<stylesheet name="ruler" src="queryperformer/ruler.css" />
<module name="Ruler" src="queryperformer/ruler.js" />

<wbody>
<vbox spacing="0" width="100%" height="100%">
<toolbar height="34" />
<custom classname="Ruler"/>
</vbox>
</wbody>
</window>

I hope this will help.

Regards,
Tassos Koutsovassilis

On Jan 11, 9:07 am, Pk <pkatp...@gmail.com> wrote:
> Hi,
>
> I was trying to load the custom widgets through Quix and I followed
> the steps herehttp://wiki.innoscript.org/index.php/Developers/HowToIncludeQuiXCusto...
>
> I was trying out the Quix ruler applicationhttp://innoscript.org/quix-ruler/
Reply all
Reply to author
Forward
0 new messages