phoenix90 wrote:
HI there, I am very new to js and some help from experienced javascripters, below you will see a small snippet from my code that shows the pages to my online "BOOK"m what a want to do is just upload the pages from a uploader and the script below pickup the "pages in jpg" automatically. Is this possible??
onlinebook.pages = [
"pages/page-001.jpg",
"pages/page-002.jpg",
"pages/page-003.jpg",
"pages/page-004.jpg",
"pages/page-005.jpg",
"pages/page-006.jpg",
];
Thanks in advance
my js is a bit rusty, but i dont think so.
first of all, the period "." is an operator. unless you are accessing a property, you need to change it.
also the use of square brackets i think is wrong.
try
onlinebook_pages = array (
"pages/page-001.jpg",
"pages/page-002.jpg",
"pages/page-003.jpg",
"pages/page-004.jpg",
"pages/page-005.jpg",
"pages/page-006.jpg",
);
i might be missing a "new" somewhere but not too sure. im mostly into mobile so though i know js i dont really practice it. ive written some mean snippets though. really mean ones
Perfection comes at a cost
I accept liberty!