0

Placemaker

Hi I am looking for some help with Placemaker as I am brand new to RSS and MAPS and Geo Information

I am trying to put a RSS feed to Placemaker for the result output to a Map?
Below is what I am doing is this wrong?


http://wherein.yahooapis.com/v1/document

documentURL=http://www.google.com/alerts/feeds/03413850423032271991/876457352076090172
documentType=text/rss
outputType=rss
appid=TzsGgsnV34EFNF.0oLfSxs1fj6GaSVj6jSELjVZNol6azMx6_4e35_kMWybzF79gtDsUG3OqI4
n4XNKJtw--

Any help would be much appreciated as the output from Placemaker RSS would then go in a pipe that shows fishing information onto a map.

and I just can not understand the documentation but that might be just me.

Thank you
Billy

4 Replies
  • QUOTE (World Fishing @ Sep 14 2009, 12:29 PM) <{POST_SNAPBACK}>
    Hi I am looking for some help with Placemaker as I am brand new to RSS and MAPS and Geo Information

    I am trying to put a RSS feed to Placemaker for the result output to a Map?
    Below is what I am doing is this wrong?


    http://wherein.yahooapis.com/v1/document

    documentUR=http://www.google.com/alerts/feeds/03413850423032271991/876457352076090172
    documentType=text/rss
    outputType=rss
    appid=TzsGgsnV34EFNF.0oLfSxs1fj6GaSVj6jSELjVZNol6azMx6_4e35_kMWybzF79gtDsUG3OqI4
    n4XNKJtw--

    Any help would be much appreciated as the output from Placemaker RSS would then go in a pipe that shows fishing information onto a map.

    and I just can not understand the documentation but that might be just me.

    Thank you
    Billy


    Your request must be presented as a HTTP POST request. This means you need to use JavaScript or another language (such as PHP) that allows you to send such requests. In JavaScript, the following code should work:

    CODE
    var documentURL = 'http://www.google.com/alerts/feeds/03413850423032271991/876457352076090172';
    var documentType = 'text/rss';
    var outputType = 'rss';
    var appid = 'TzsGgsnV34EFNF.0oLfSxs1fj6GaSVj6jSELjVZNol6azMx6_4e35_kMWybzF79gtDsUG3OqI4
    n4XNKJtw--';
    var passData = 'documentURL='+escape(documentURL)+'&documentType='+escape(documentType)+'&outputType='+escape(outputType)+'&appid='+escape(appid);
    var AJAX = null;
    if (window.XMLHttpRequest) {
    AJAX = new XMLHttpRequest();
    } else {
    AJAX = new ActiveXObject("Microsoft.XMLHTTP");
    }
    if (AJAX == null) {
    alert("Your browser doesn't support AJAX.");
    return false
    } else {
    AJAX.open("POST", "http://wherein.yahooapis.com/v1/document", true);
    AJAX.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    AJAX.onreadystatechange = function() {
    if (AJAX.readyState == 4 || AJAX.readyState == "complete") {
    callback(AJAX.responseText, AJAX.status);
    }
    }
    AJAX.send(passData);
    }

    This will insert your paramters into the body of a POST request, send it to Placemaker, and call your function called 'callback' with the response text and status

    Eddie Babcock
    Yahoo! Geo Technologies
    0
  • QUOTE (Eddie B @ Sep 21 2009, 03:47 PM) <{POST_SNAPBACK}>
    Your request must be presented as a HTTP POST request. This means you need to use JavaScript or another language (such as PHP) that allows you to send such requests. In JavaScript, the following code should work:

    CODE
    var documentURL = 'http://www.google.com/alerts/feeds/03413850423032271991/876457352076090172';
    var documentType = 'text/rss';
    var outputType = 'rss';
    var appid = 'TzsGgsnV34EFNF.0oLfSxs1fj6GaSVj6jSELjVZNol6azMx6_4e35_kMWybzF79gtDsUG3OqI4
    n4XNKJtw--';
    var passData = 'documentURL='+escape(documentURL)+'&documentType='+escape(documentType)+'&outputType='+escape(outputType)+'&appid='+escape(appid);
    var AJAX = null;
    if (window.XMLHttpRequest) {
    AJAX = new XMLHttpRequest();
    } else {
    AJAX = new ActiveXObject("Microsoft.XMLHTTP");
    }
    if (AJAX == null) {
    alert("Your browser doesn't support AJAX.");
    return false
    } else {
    AJAX.open("POST", "http://wherein.yahooapis.com/v1/document", true);
    AJAX.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    AJAX.onreadystatechange = function() {
    if (AJAX.readyState == 4 || AJAX.readyState == "complete") {
    callback(AJAX.responseText, AJAX.status);
    }
    }
    AJAX.send(passData);
    }

    This will insert your paramters into the body of a POST request, send it to Placemaker, and call your function called 'callback' with the response text and status

    Eddie Babcock
    Yahoo! Geo Technologies


    Thank you for the above help! But I think I might be getting in over my head but just so I do not fall at the first hurdle what do I do with the above code?
    Thank you
    Billy
    0
  • I am trying to use javascript and open the url.
    But I dont see anything happening. It doesnt print any alert messages after this line
    AJAX.open("POST,"http://wherein.apis.com/v1/document",true);
    ....

    I dont understand whats wrong here. My guess is it doesnt open the link , as I dont see any alert messages popped up after this line.
    Please help

    Thanks,
    Sangy
    0
  • QUOTE (U S S @ Oct 29 2009, 12:12 PM) <{POST_SNAPBACK}>
    I am trying to use javascript and open the url.
    But I dont see anything happening. It doesnt print any alert messages after this line
    AJAX.open("POST,"http://wherein.apis.com/v1/document",true);
    ....

    I dont understand whats wrong here. My guess is it doesnt open the link , as I dont see any alert messages popped up after this line.
    Please help

    Thanks,
    Sangy


    The domain name in your example is incorrect. It should be "wherein.yahooapis.com". If correcting the domain name doesn't make your script work, provide a longer code fragment.

    Eddie Babcock
    Yahoo! Geo Technologies
    0
This forum is locked.

Recent Posts

in Placemaker General Discussion