The State Pattern in Flex 2 When to Use Weak References
Sep 12

Lately I’ve been getting emails from people asking me if they can embed Cayri on their virtual airline’s website. So I think it’s about time to post a small tutorial on how to do this. The simplest way to do it is by using an IFRAME tag with HTML. Just stick the following code in any HTML page, and Cayri will show up on your website:

1
<iframe src="http://www.cayri.org/?network=vatsim" frameborder="0" height="500" width="700"></iframe>

If you would like to show IVAO traffic instead of VATSIM traffic, you’ll need to replace ?network=vatsim with ?network=ivao in the src attribute.

8 Responses to “Embedding Cayri on Your Website”

  1. Martin "Hollywood" Says:

    Cools stuff. Just embedded it into my site. Keep em coming !

  2. Valter Says:

    hello!
    nice job on this map, i’m in a process of creating a VA and i would like to know if it is possible to show only the aircrafts of my VA by default on the map, and how it is done.
    thanks
    Valter

  3. John Jones Says:

    What a nice piece of software. I love it. However, I would love to be able to display out own network data as opposed to Vatsim and Ivao. We use a similar protocol with the whazzup interface.

    Is it possible to just show our own data and not have a choice for others like Vatsim. I would really like to know if it can be done at all.
    Regards
    John

  4. dschultz Says:

    @Valter: You can’t do it yet, but it’s not hard for me to add that functionality in. Hopefully this summer, I’ll be able to devote some more time to Cayri.

    @John: Very interesting feature request :-). I’m not sure how easy this would be, since the most recent data for IVAO and VATSIM are stored in a database. However, what are you wanting to display on the map? Is it just aircraft from your VA, or is it ATC too?

  5. John Jones Says:

    Hi, thanks for prompt response.
    I wouild like to display all players connected to our server (aircraft and ATC’s) At the moment we use servinfo as the reporter, which accesses our whazzup.txt file which is updated from our database. The problem with servinfo is that its not an “on site” program as each member has to install it on his PC.
    You may know that Vatsim and Ivao do use Servinfo as well, but I must admit I would prefer a site based interactive display. I believe it could be done with google maps but I would not know where to start. Thanks anyway.
    John

  6. Nedim Says:

    Hi nice job I would like to add our web site it is joomla how can I do.Thanks.

  7. Dan Schultz Says:

    Nedim: I’ve never used Joomla, so it’s hard for me to say how to do this. However, I’m sure there’s a way to insert your own HTML code in Joomla. You’ll need to look at their documentation on how to do this. Once you find out how, just insert the code above.

  8. Nick Says:

    Purely beautiful!!! I would also benefit from a callsign “limit”. maybe it could be put in the url for the iFrame, so the src would read, http://www.cayri.org/?network=vatsim&limit=CALLSIGN HERE

    Then in program add (something to the lines of) if(isset(limit)) ONLY DISPLAY FLIGHTS CONTAINING limit VALUE

    Thats how I would do it (But I am a noob :-) )

    None the less, Beautiful!

Leave a Reply