Hi Deborah,

To get the most out of the _javascript_ EVDB API, you should be fairly comfortable writing _javascript_ code. One of the main purposes of _javascript_ is to modify the HTML document dynamically, that means adding or removing pieces of HTML.

I mocked up two working examples based on your search criteria. You should be able to open either of these in your browser to see them working.

The first (sample-basic.html) uses standard document manipulation functions such as document.getElementById and document.createElement to manipulate the HTML document.

The second (sample-jquery.html) is slightly more advanced in that it uses the latest and greatest in _javascript_ technology, jQuery, which is an engine for easily and robustly manipulating the HTML document. (http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery)

Each example does the same thing: it queries Eventful and displays the results as links in a list.

Let me know if you have any other questions,

John Tantalo
Eventful, Inc.

Title: Sample search

Events

    Title: Sample search

    Events


      On Mar 14, 2009, at 11:48 AM, Deborah Brown wrote:

      Hi there,

      I don’t have much programming experience (I’m better at modifying something to do what I want).  I saved the _javascript_ EVDB_API library and put it in the header of a web page (.php), filling in my key and search terms:

      <script type=text/_javascript_>            var oArgs = { app_key: 67JG4Nn7nRnhwxJD, q: "tag:secondlife  tag:mature  (tag:"dublin" || tag:"dublin 2" || tag:"dublin 3")", page_size: 25 }; EVDB.API.call("/events/search", oArgs, function(oData) [...]

      And closed it off with </script>

      What do I put in the page to place the output where I want it to go?  I want the output to list the events (with maybe the date and time) within that calendar day (I’m not sure I NEED to do this, but I’d like to know how if possible).  The event title should be a hyperlink to the event record on eventful.com.

      And did I err in how I handled the EVDB_API library?  I looked through the mailing list archives and in the documentation pages on the site but didn’t see my questions answered.  It’s probably so elementary that it wasn’t needed.

      Many thanks in advance!

      Deb

      Reply via email to