0

YUI on YAP

Hi All,

I am working on a Yahoo! App and want to utilize YUI Features available, however, I haven't figured out a way to include the YUI Libraries in my App as yet. I was of the opinion that the Libraries will be a part of the App by default but seems its not true in my case.

I have tried including the Libraries in my Code but it fails with an error that external files are not allowed, which makes perfect sense as inclusion of external Javascript and CSS isn't allowed.

I have also tried to include the Javascript in the Gadget XML but I am not sure where to put exactly. I am not sure if I have done it correctly and at the correct place, following is a snippet for reference:

CODE
 <Content type="html" view="YahooSmallView, default">
<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.1/build/yahoo/yahoo.js&2.8.1/build/dom/dom.js&2.8.1/build/event/event.js"></script>
</Content>

<Content type="html" view="YahooFullView, canvas" href="http://www.myapp.com">
<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.1/build/yahoo/yahoo.js&2.8.1/build/dom/dom.js&2.8.1/build/event/event.js"></script>
</Content>

A Firebug Screenshot is following:

.

I have a feeling that this might be available as a feature and I might have to do something similar but I am not sure:

CODE
<Require feature="yui-2.8" />

Can anyone in the community please provide some help with this issue?

Thanks and Regards,

Muhammad Haseeb Khan

by
2 Replies
  • Issue resolved. Included the following Javascript Files from YUI:

    CODE
    <script type="text/javascript" src="http://yui.yahooapis.com/2.8.0/build/yahoo/yahoo.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.8.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.8.0/build/element/element-min.js"></script>

    Thanks.

    - Haseeb
    0
  • QUOTE (Haseeb @ Jun 7 2010, 05:12 AM) <{POST_SNAPBACK}>
    Issue resolved. Included the following Javascript Files from YUI:

    CODE
    <script type="text/javascript" src="http://yui.yahooapis.com/2.8.0/build/yahoo/yahoo.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.8.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.8.0/build/element/element-min.js"></script>

    Thanks.

    - Haseeb

    Hello Haseed

    This problem was occurred to me too, although I use your code to include js file to gadget file.
    So can you give me some idea? i just want to use tabview in YUI on YAP.
    0

Recent Posts

in YAP