Array creation problem with Rico.js file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yarra
    New Member
    • Sep 2006
    • 1

    Array creation problem with Rico.js file

    Hi
    I have problem with rico.js file.
    we are using the struts client-side validations. Its working fine.
    Recently i am adding ajax with help of rico.js file. Now my problem is
    started. i am creating the one array instace with new Array() method but
    it is going to rico.js file, this is the problem. How can i solve this
    problem,i might be use the rico.js. if i include the this js, my problem
    is starts.

    Sample Code this problem:-
    -------------------------

    [HTML]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> Problem </TITLE>
    <SCRIPT LANGUAGE="JavaS cript">

    function Test()
    {
    var aa = new Array();
    for(x in aa)
    {
    alert(x);
    }
    }

    </SCRIPT>
    <script src="./js/prototype.js" type="text/javascript"
    >JavaScript</script>
    <script src="./js/rico.js" type="text/javascript" >JavaScript</script>
    </HEAD>

    <BODY>
    <button onclick="Test() ;">Test</button>
    </BODY>
    </HTML>
    [/HTML]

    Please help.
    Yarra
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    The array is empty. That might be the problem.

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      yes ... what would you expect from that code? except that you get all methods alerted that prototype or rico will add to the native array-object?

      kind regards

      Comment

      Working...