0

Unknown error

Hi!

Im actually planing some menu items.

After adding following code:
CODE
<button class="yui-button" onMouseOver ="style.cursor='pointer'" 							
onClick="Admin_Daten('2')"
style="width:90%;">Nickname</button><br>


i got following error:
CODE
Fehler: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]"  nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"  location: "JS frame :: http://mysite/Skripte/YUI/build/connection/connection-min.js :: anonymous :: line 7"  data: no]
Quelldatei: http://mysite/Skripte/YUI/build/connection/connection-min.js
Zeile: 7


Following structur in my side:
index with all html content and yui-includes
some on scripts like my Admin.js for this special site.

i have include following yui-scripts:
CODE
	<!--#### YUI-Scripte einbinden ####-->
<!--Grundlagen für YUI-->
<script type="text/javascript" src="Skripte/YUI/build/yahoo/yahoo-min.js"></script>
<script type="text/javascript" src="Skripte/YUI/build/event/event-min.js"></script>
<script type="text/javascript" src="Skripte/YUI/build/element/element-beta-min.js"></script>
<!--Drag & Drop Funktionen und Resize Optionen, Container-->
<script type="text/javascript" src="Skripte/YUI/build/utilities/utilities.js"></script>
<script type="text/javascript" src="Skripte/YUI/build/button/button-min.js"></script>
<script type="text/javascript" src="Skripte/YUI/build/container/container-min.js"></script>
<script type="text/javascript" src="Skripte/YUI/build/menu/menu-min.js"></script>

<!--Connection Manager für Serveranfragen und Antwort-->
<script type="text/javascript" src="Skripte/YUI/build/connection/connection-min.js"></script>

<!-- Rich-Text Editor-->
<script src="Skripte/YUI/build/editor/simpleeditor-min.js"></script>

<!--JSON-->
<script type="text/javascript" src="Skripte/YUI/build/json/json-min.js"></script>


The error only occours on this site, i used the same button code on other sites, but ther isnt any error!
Pls help:<

Thx to you

2 Replies
  • Hi christian,

    Are you referring to creating an application through YAP at developer.yahoo.com/dashboard? If that's what you're trying to do, YUI libraries (and other major JS libraries such as prototype, dojo, etc.) are not currently supported under caja. As well, external script source includes are not allowed either. Please see http://developer.yahoo.com/yap/guide/what-...imitations.html for documentation on caja.

    When we were building out or porting applications that used yui libraries we rebuilt them as server side code in PHP, used minimal javascript that we were sure passed the parser, and converted some of the hybrid JS/Flash components to flash using the ASTRA libraries. Our teams here at Yahoo!, Google, and the other JS library owners are currently working diligently to get this functionality white listed in caja, but at the current time this will cause you errors such as that.

    If that's not the issue, could you please provide additional information on how you're using the libraries?

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network
    0
  • Hey,

    The best place for this question is going to be the YDN-Javascript Yahoo Group. They have been supporting your YUI question since there has been a YUI.

    I'd suggest reposting there where more people are going to be looking at your question including the YUI team.

    Thanks,

    Tom
    Yahoo! Developer Network
    0

Recent Posts

in General Discussion at YDN