File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Is Dyanmic arrays possible in JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Is Dyanmic arrays possible in JavaScript" Watch "Is Dyanmic arrays possible in JavaScript" New topic
Author

Is Dyanmic arrays possible in JavaScript

Chandhrasekar Saravanan
Ranch Hand

Joined: Jun 16, 2002
Posts: 57
Hi,
I have decided to create something like this. i have 2 frames top and bottom frame. i have 2 buttons in my bottom frame. "Grab", "DisplayALL'. the on_click event of the "Grab" button initially grabs the address of the top frame and whenever DisplayAll button is clicked all the addresses grabbed should be displayed. i have decided to go on with arrays. so whenever i click the grab button i will store that value in an array and whenever the DisplayAll button is clicked i should display the contents of the array. so i am wondering how to do this
Thanks
Regards
Chandhrasekar Saravanan
sunitha reghu
Ranch Hand

Joined: Dec 12, 2002
Posts: 937
address of the top frame means wat?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
<script>
var Counter=0;
var Places = new Array();
function AddPlace(){
Places[Counter] = parent.topframe.document.location.href;
Counter++;
}
function ShowPlaces(){
OutT="The Places You have been:\n";
for(i=0;i<Places.length;i++){
OutT+=Places[i]+"\n";
}
alert(OutT);
}
Every Post you make sounds like you are sping on people. They have software for this!!
Eric
 
 
subject: Is Dyanmic arrays possible in JavaScript
 
Threads others viewed
Break out of frameset
Pro Jakarta Struts, Second Edition : Reader Question
Break out of frameset
tabbing in Netscape
jsp frames
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture