0

Help - newbie!!

Hi there,

I am a newbie to all this stuff I'm afraid. I have a Google Gadget that is a simple url directing to an HTML page on my server. I would like to add this gadget to My Yahoo! page, but I'm afraid I don't understand the instructions. My gadget content is written in HTML, css and JavaScript. I'm not familiar with PHP. I was hoping to find some example of having a URL as the yahoo app - I see from the example of mySocial.php that you need to incorporate a secret key into the php page which generates the content. Do you have any advice for adding my page as a yahoo app ? I don't need access to Yahoo APIs as my web page doesn't currently request any external data.

Can I just have a PHP page that includes my key and contains a URL to my page?

My Google Gadget code is below, if you can offer any advice or links of how to do this stuff I'd really appreciate it.

Thanks

Sunny Carter

<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title='xxxxx" author="Sunny Carter" author_email="sunny.carter' description="Embedded gadget" width="360" height="255" />
<Content type="url" href="http://mydomain.com/gadget/login.html" />
</Module>

by
3 Replies
  • Hi Sunny,

    Yes, you should be able to just specify the url of your application without having to require a PHP layer. Most of the PHP examples are there to access some sort of user data or to make the small view (what will display on places like my.yahoo.com) more dynamic. Here's what you'll need to do:

    1. Go to https://developer.yahoo.com/dashboard/ and create an open application
    2. You can specify the url to your application for the large view, and enter in any html / css / yml you would like for the small view (sorry - no javascript is allowed here)
    3. Under permissions, specify that you only need access to public information

    That should be it. I should note that you may have to do some massaging of your javascript to get it working under Caja. See here: http://developer.yahoo.com/yap/guide/caja-support.html for more information on Caja and what you may need to change.

    If you run into any problems along the way I'd be happy to help you to get the JS (or anything else) working.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network

    QUOTE (sunny_carter @ Dec 5 2008, 10:40 AM) <{POST_SNAPBACK}>
    Hi there,

    I am a newbie to all this stuff I'm afraid. I have a Google Gadget that is a simple url directing to an HTML page on my server. I would like to add this gadget to My Yahoo! page, but I'm afraid I don't understand the instructions. My gadget content is written in HTML, css and JavaScript. I'm not familiar with PHP. I was hoping to find some example of having a URL as the yahoo app - I see from the example of mySocial.php that you need to incorporate a secret key into the php page which generates the content. Do you have any advice for adding my page as a yahoo app ? I don't need access to Yahoo APIs as my web page doesn't currently request any external data.

    Can I just have a PHP page that includes my key and contains a URL to my page?

    My Google Gadget code is below, if you can offer any advice or links of how to do this stuff I'd really appreciate it.

    Thanks

    Sunny Carter

    <?xml version="1.0" encoding="UTF-8"?>
    <Module>
    <ModulePrefs title='xxxxx" author="Sunny Carter" author_email="sunny.carter' description="Embedded gadget" width="360" height="255" />
    <Content type="url" href="http://mydomain.com/gadget/login.html" />
    </Module>
    0
  • Jonathan,

    Thank you very much for your quick response. I've tried out the instructions, but after reading the Caja limitations it turns out that the effort involved for me to make my app work with Caja is too great. It is quite a complicated JavaScript app using multiple included scripts and css pages, and using eval() to evaluate JSON data, and heavy use of the DOM, and I estimate many days work in order to Caja-ify it.

    Thanks very much for your assistance anyway though,

    Kind Regards,

    Sunny
    0
  • I'm sorry to hear that Sunny; Many of us have gone through some similar things while porting our applications as well. If you check back to the platform at around the time of the YUI 3 launch I think you may find it much easier to port your application over using JavaScript.

    - Jon
    0

Recent Posts

in YAP