Thank you for your reply, and it was a very genial solution, but I got the
same result. Maybe I didn't use it correctly. Let me explain what exactly is
going on. this script <script src="http://source.asp?id=1> generates an
array named content and it fills this array with content[0]= text0,
content[1]=text1 etc.
on my page I have the following code
<script src="http://source.asp?id=1>
<script> Content1 = content
some codes to treat the content1.
</script>
<script src="http://source.asp?id=2>
<script> Content2 = content
some codes to treat the content2.
</script>
but Content1 is filled by the result of the last call and I'm loosing the
first array of data. Thanks again for any other ideas.
"HikksNotAtHome" <hi************@aol.com> wrote in message
news:20***************************@mb-m26.aol.com...
In article <u8*****************@nwrddc03.gnilink.net>, "Emmanuel Soheyli"
<vz******@verizon.net> writes:
I get information from an outside site by the following code:
<script src="http://www.outside.com/page.asp?id=1"></script>
It generates array 'content with all necessaries information. The problem
isI need several type of information (id=2,3, etc.), and it always generate
the same array content (as name) with different contents .how can I
changethe name of the array to other things in order to get different arrays.
Anyhelp would be greatly appreciated.
Assuming you are wanting to make repeated calls to the same asp page to
get different results back?
Simply set a new array = to the existing array
myArray = new Array()
//definitions for myArray
myArray2 = myArray;
//myArray2 is now a complete copy of myArray
Hope this helps.
--
Randy
All code posted is dependent upon the viewing browser
supporting the methods called, and Javascript being enabled.