Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
dandev webforumsuser@macromedia.com #1
passing variables to js file
I don't know if this is possible but let's see.
I have a page that generates a javascript array (of pictures) from a database.
..
..
..
<head>
<script type="text/javascript">
var myArray = new Array();
<cfloop index="i" from="0" to="#Evaluate(ArrayLen(picArray)-1)#" step="1">
myArray[<cfoutput>#i#</cfoutput>] = "<cfoutput>#picArray[i+1]#</cfoutput>";
</cfloop>
</script>
</head>
<body>
<script src="test.js" type="text/javascript"></script>
</body>
Now is there a way to use myArray inside test.js?
I was sure I have done it before but for some reason it's not, I might be wrong...
Thanks
dandev webforumsuser@macromedia.com Guest
-
Passing Variables
Hi there, I just managed to install apache2 webserver with php 4.3.8. I'm developing some php files. Previously I used an external webserver but... -
passing variables from a php file into an array
hey guys, i have successfully created a php file that reads and echoes the contents of a directory in the string var1=value2&var2-value2... ... -
Passing ASP Variables
I have a form that submits to a SQL database. The table in SQL uses an identity field for the primary key called "entry". This is so I can get the... -
variables, passing again to another.
if ($psi_shipping_addtnl_info != '') { echo '<< NO USER INPUT >>'; } Im catching a _POST variable from a form, now i wonder im filtering it out... -
Variables not passing from html file to php file
I have the following two files used to insert data into a database. when meinsert.php is executed a blank record is inserted in the database as if... -
dandev webforumsuser@macromedia.com #2
Re: passing variables to js file
forget it it works now ???
Thanks
dandev webforumsuser@macromedia.com Guest



Reply With Quote

