Examples

Examples are placed in a examples.zip file in the HaQuery library folder. You need to unzip them to your web projects folder and create a hostname for each example by writing lines in the system hosts file (c:\windows\system32\drivers\etc\hosts) like this:

    127.0.0.1 events

After this you need to write a new virtual host section to you apache config file (usually, PATH_TO_APACHE\conf\extra\httpd-vhosts.conf):

    NameVirtualHost *:80
     
    <VirtualHost *:80>
        ServerName events
        DocumentRoot "c:/work/events/bin"
        ErrorLog "logs/events-error.log"
        CustomLog "logs/events-access.log" common
    </VirtualHost>

Restart apache after editing this file.

Before you can open http://events/ in your browser, you must compile example project. To do this, open events/events.hxproj in your FlashDevelop IDE, ensure correct Haxe SDK selected and press compile button on the toolbar (or F8 key).

version #198, modified 2013-01-29 19:45:23 by yar3333