By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,568 Members | 1,196 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,568 IT Pros & Developers. It's quick & easy.

Array creation problem with Rico.js file

P: 1
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="JavaScript">

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
Sep 7 '06 #1
Share this Question
Share on Google+
2 Replies


acoder
Expert Mod 15k+
P: 16,027
The array is empty. That might be the problem.
May 6 '08 #2

gits
Expert Mod 5K+
P: 5,343
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
May 6 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.