Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Passing a JavaScript 3-D Array Into Another Page?

Posted on 2004-09-09
5
Medium Priority
?
304 Views
Last Modified: 2013-12-16
The title says it all. Well, if it's not possible, can I pass the javascript 3-d array into a  Coldfusion variable(array)? The computation must be on the client side so I cant really set the results directly into ColdFusion
0
Comment
Question by:mdoza
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 13

Expert Comment

by:cLFlaVA
ID: 12023034
Have you thought about setting a cookie on the originating page with the three-dimensional array, and then retrieving the cookie on the following page?
0
 

Author Comment

by:mdoza
ID: 12023060
hhmm, I never thought of that. That would suffice my needs but I dont really know how to set a cookie thru javascript, Im a javascript n00b *scratches head*


can you give me a sample?
0
 

Author Comment

by:mdoza
ID: 12023085
btw, back to my original 2nd question, is it not really possible passing the value of a javascript variable to a cf variable?
0
 
LVL 13

Accepted Solution

by:
cLFlaVA earned 300 total points
ID: 12023289
Coldfusion is executed and completed on the server side.  The result of the execution is then sent to the client browser, where html and javascript are written out.  Then, and only then, will javascript code have the ability to function.  As you can see, there is no way, on the current page, that you can communicate between coldfusion and javascript.

You can, however, potentially pass a value in the url to a new (or the same) coldfusion page using javascript.  This way, coldfusion could utilize this variable and do things with it.

You, however, are trying to use a 3-D array, and there is no efficient way you can pass this through the url.

Help on cookies:

http://webmonkey.wired.com/webmonkey/reference/javascript_code_library/wm_ckie_lib/?tw=reference&category=forms_data

Hope this helps...
0
 

Author Comment

by:mdoza
ID: 12023296
I just found out the most of my intended users turn off their browser's cookie capability so CLFLAVA's suggestion wont be necessary.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question