Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How to expand properties and events in AJAX WebShop

Reply
Thread Tools

How to expand properties and events in AJAX WebShop

 
 
kingstar
Guest
Posts: n/a
 
      12-28-2006
How to expand properties and events in AJAX WebShop
Hater

AJAX WebShop has the similar way to develop applications in B/S with
Delphi in C/S. And it's very interesting that AJAX WebShop supports
expanding properties and events by yourself and it's very easy to do
that.

First, find the XML files in the directory of JCL and each xml file is
corresponding to a component which you can find on the interface of
AJAX WebShop. Then find UIControl.xml, its content is below:
<?xml version="1.0" encoding="gb2312"?>
<class classname="UIControl" visible="true" iscontainer="false"
extends="JCLControl">
<imports>
<import>jcl/Control.js</import>
</imports>
<private>
</private>
<protect>
</protect>
<public>
</public>
<published>
<properties>
<property name="align" type="String" editor="SelectEditor">
<options>
<option value="center"/>
<option value="left"/>
<option value="right"/>
<option value="justify"/>
</options>
</property>
<property name="disabled" type="boolean" editor="SelectEditor">
<options>
<option value="true"/>
<option value="false"/>
</options>
</property>
<property name="innerHTML" type="String">
</property>
<property name="className" type="String">
</property>
<property name="PopupMenu" type="PopupMenu"
editor="ObjectEditor">
</property>
<property name="style" type="style" editor="TreeEditor">
<properties>
<property name="backgroundColor" type="String"
editor="ColorEditor">
</property>
<property name="backgroundImage" type="String">
</property>
<property name="borderColor" type="String"
editor="ColorEditor">
</property>
<property name="borderStyle" type="String"
editor="SelectEditor">
<options>
<option value="none"/>
<option value="dotted"/>
<option value="dashed"/>
<option value="solid"/>
<option value="double"/>
<option value="groove"/>
<option value="ridge"/>
<option value="inset"/>
<option value="window-inset"/>
<option value="outset"/>
</options>
</property>
<property name="borderWidth" type="String" >
</property>
<property name="borderLeft" type="String" >
</property>
<property name="borderTop" type="String" >
</property>
<property name="borderRight" type="String" >
</property>
<property name="borderBottom" type="String" >
</property>
<property name="cursor" type="String" editor="SelectEditor">
<options>
<option value="all-scroll"/>
<option value="auto"/>
<option value="col-resize"/>
<option value="crosshair"/>
<option value="default"/>
<option value="hand"/>
<option value="help"/>
<option value="move"/>
<option value="no-drop"/>
<option value="not-allowed"/>
<option value="pointer"/>
<option value="progress"/>
<option value="row-resize"/>
<option value="text"/>
<option value="url(uri)"/>
<option value="vertical-text"/>
<option value="wait"/>
<option value="*-resize"/>
</options>
</property>
<property name="display" type="String" editor="SelectEditor">
<options>
<option value="block"/>
<option value="none"/>
<option value="inline"/>
<option value="inline-block"/>
<option value="table-header-group"/>
<option value="table-footer-group"/>
</options>
</property>
<property name="color" type="String" editor="ColorEditor" >
</property>
<property name="fontFamily" type="String" >
</property>
<property name="fontSize" type="String" >
</property>
<property name="fontStyle" type="String"
editor="SelectEditor">
<options>
<option value="normal"/>
<option value="italic"/>
<option value="oblique"/>
</options>
</property>
<property name="paddingTop" type="String">
</property>
<property name="paddingLeft" type="String">
</property>
<property name="paddingRight" type="String">
</property>
<property name="paddingBottom" type="String">
</property>
<property name="position" type="String" default="absolute"
editor="SelectEditor">
<options>
<option value="static"/>
<option value="absolute"/>
<option value="relative"/>
</options>
</property>
<property name="textAlign" type="String"
editor="SelectEditor">
<options>
<option value="left"/>
<option value="right"/>
<option value="center"/>
<option value="justify"/>
</options>
</property>
<property name="visibility" type="String"
editor="SelectEditor">
<options>
<option value="inherit"/>
<option value="visible"/>
<option value="hidden"/>
</options>
</property>
<property name="wordWrap" type="String" editor="SelectEditor">
<options>
<option value="normal"/>
<option value="break-word"/>
</options>
</property>
<property name="zIndex" type="Variant" >
</property> </properties>
</property>
<property name="tabIndex" type="Integer">
</property>
<property name="title" type="String">
</property>
</properties>
<methods>
</methods>
<events>
<event name="onblur">
<params>
</params>
</event>
<event name="onclick">
<params>
</params>
</event>
<event name="ondblclick">
<params>
</params>
</event>
<event name="onfocus">
<params>
</params>
</event>
<event name="onkeydown">
<params>
</params>
</event>
<event name="onkeypress">
<params>
</params>
</event>
<event name="onkeyup">
<params>
</params>
</event>
<event name="onmousedown">
<params>
</params>
</event>
<event name="onmouseenter">
<params>
</params>
</event>
<event name="onmouseleave">
<params>
</params>
</event>
<event name="onmousemove">
<params>
</params>
</event>
<event name="onmouseout">
<params>
</params>
</event>
<event name="onmouseover">
<params>
</params>
</event>
<event name="onmouseup">
<params>
</params>
</event>
<event name="onmousewheel">
<params>
</params>
</event>
</events>
</published>
</class>
After the code, I believe that you have understand how to do it. Right,
just add the codes below and we will get a new event named
"onresize" after restart AJAX WebShop.
<event name="onresize">
<params>
</params>
</event>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
JoyiStar AJAX WebShop 3 Beta2 Free downloads list: kingstar Javascript 1 02-02-2007 09:07 AM
AJAX IDE and AJAX TOOL--The Release of JoyiStar AJAX WebShop 3 Beta minnie Java 1 12-13-2006 06:29 AM
Python Webshop? Lars Heuer Python 0 10-26-2004 03:59 PM
Our New Webshop.. Bit of advertising :) Rob @ Compuk Computer Information 2 10-04-2004 08:23 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57