LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-21-2010, 10:09 AM   #1
Neethusha
LQ Newbie
 
Registered: Feb 2010
Posts: 16

Rep: Reputation: 0
Pass array to window.openDialogue


I have an array...n i want to display it as a popup window ...the array elements...as buttons that are clickable...

so can i pass an array to the window as argument..i know we can pass parameter values..but array?and is so how can the individual array elements be accessed inside the window?
 
Old 03-21-2010, 11:00 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,005

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Might help if you told us what language you are using as all of what you have written seems kind of ambiguous without it??
 
Old 03-21-2010, 02:21 PM   #3
Neethusha
LQ Newbie
 
Registered: Feb 2010
Posts: 16

Original Poster
Rep: Reputation: 0
its in javascript...the window.openDialog
 
Old 03-21-2010, 08:38 PM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,005

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Thanks for that. So what have you written / tried so far?
Have you tried google? Seems I had many hits. The one below seemed informative enough
to say probably not as all arguments are wrapped into an array called window.arguments[],
but I guess you could try and see if it creates a multidimensional array if you do (ie window.arguments[0,1])

http://www-archive.mozilla.org/xpfe/...l#jsextensions
 
Old 03-22-2010, 03:44 PM   #5
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Rep: Reputation: 43
Quote:
Originally Posted by Neethusha View Post
I have an array...n i want to display it as a popup window ...the array elements...as buttons that are clickable...

so can i pass an array to the window as argument..i know we can pass parameter values..but array?and is so how can the individual array elements be accessed inside the window?
With more details, we can't tell where you are or where you are coming from. If you are saying you have a raw data array and want that to display in a pop up window, then you need to learn how to create a GUI. One way is with Swing libraries:

http://java.sun.com/docs/books/tutorial/uiswing/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
c++ - pass text file value to array babag Programming 4 04-21-2008 04:40 PM
in C, how do I pass a pointer of an array of structures to a function? randomsel Programming 2 02-04-2008 06:23 PM
Can't pass 2d-array-class-pointer Bariton Programming 3 09-11-2007 08:30 AM
How to pass array to a function in Java so that it returns changed? kornerr Programming 1 09-19-2006 12:16 PM
Cannot pass and return a character array Linh Programming 1 06-12-2003 04:17 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration