Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
| Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 31st, 2005, 10:27 PM
lch lch is offline
Authorized User
 
Join Date: Jan 2005
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to pass an array in jsp to other js?

i have 2 files: jsp and js

i want pass an array which in the jsp to another file--> which is a js file

how can i do it ??

can u give me some related link or some source codes as the references???

thx

  #2 (permalink)  
Old February 1st, 2005, 04:13 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

This thread discusses this, it's with ASP rather than JSP but the principle is the same. If this is not what you need please define your requirements more clearly.

http://p2p.wrox.com/topic.asp?TOPIC_ID=11765

--

Joe (Microsoft MVP - XML)
  #3 (permalink)  
Old February 1st, 2005, 10:05 PM
lch lch is offline
Authorized User
 
Join Date: Jan 2005
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thx for ur helping !!!!

http://p2p.wrox.com/topic.asp?TOPIC_ID=25863

will be more clearly for the my topic

my problem still not settle yet !!!

therefore i hope you can give me some advices formy case
thx!!!!


  #4 (permalink)  
Old February 1st, 2005, 11:11 PM
lch lch is offline
Authorized User
 
Join Date: Jan 2005
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

dear joefawcett,

ur link is related to the javascript in the jsp !!!

now , my problem is : i have 2 file : jsp and js

i want pass an array from jsp to a separate file: js

and keep the array in the js !!!!

so ...i am troubled by this problem for 7 days!!!!

i hope someone can give me some advices!!!
http://p2p.wrox.com/topic.asp?TOPIC_ID=25863

is the more clearly one !!!!

my email:lauchunhui@hotmail.com


  #5 (permalink)  
Old April 17th, 2006, 09:02 PM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How to pass array from .jsp filr to .js file?

  #6 (permalink)  
Old April 18th, 2006, 06:56 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii Manoj22!!
Plz visit the link http://p2p.wrox.com/topic.asp?TOPIC_ID=25863
this can help you to sort out the solution.
Idea is same ,i have worked on it and it's working fine while swaping variable'value ,array in jsp/asp/php to js and vice versa.


Cheers :)

vinod


Similar Threads
Thread Thread Starter Forum Replies Last Post
using js to pass selected checkbox values yasinirshad .NET Framework 1.x 0 June 3rd, 2008 02:42 AM
Not able to pass array as an argument to Let Prope Kapil Access VBA 1 January 30th, 2007 09:30 AM
intersecting array values ASP/VB or even js sniffer Classic ASP Professional 0 October 19th, 2005 06:04 PM
passing parameter from js to another jsp page. Regornil JSP Basics 1 August 31st, 2004 08:23 AM
how to pass address of an array to a dll(in c++) iceman1188 General .NET 0 May 30th, 2004 09:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.