Hi,
I have been working on this for a while and can not figure out how to do it. This is the story to explain what I am doing:
I use Actinic website software and I am currently using a javascript function to take an array of section names etc and create a menu. This is quite large and I am moving to php as Actinic has php inside and creates the html before uploading. Actinic creates a javascript file. This file is referenced by another js file that creates the menu by running a few nested ifs to create individual IDs that can be manipulated later by another js file.
I have no idea how I can take this file and create a php array. Everything else is ready to go, I just need the array! The js file is located in my local folder and that is where I will reference it. I am also only going to create an array with two vars (sName & sUrl).
There is a copy js file with the array here: http://www.madmash.com/acatalog/Act_section_tre e.js
The js file that uses the array is here if it helps?:
http://www.madmash.com/acatalog/replaceo_menu.j s
Can anyone help?
Thanks,
Paul.
I have been working on this for a while and can not figure out how to do it. This is the story to explain what I am doing:
I use Actinic website software and I am currently using a javascript function to take an array of section names etc and create a menu. This is quite large and I am moving to php as Actinic has php inside and creates the html before uploading. Actinic creates a javascript file. This file is referenced by another js file that creates the menu by running a few nested ifs to create individual IDs that can be manipulated later by another js file.
I have no idea how I can take this file and create a php array. Everything else is ready to go, I just need the array! The js file is located in my local folder and that is where I will reference it. I am also only going to create an array with two vars (sName & sUrl).
There is a copy js file with the array here: http://www.madmash.com/acatalog/Act_section_tre e.js
The js file that uses the array is here if it helps?:
http://www.madmash.com/acatalog/replaceo_menu.j s
Can anyone help?
Thanks,
Paul.
Comment