473,748 Members | 2,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Load a list of images in an Array on the server dynamically

Hi,
we have the following problem:

in our application v1.0 we have static html pages (+ some javascript).
With a CMS (a Content Management System) some "mortal" people can add
or expand the available images for the start site. The site loads
randomly an image or a Flash animation (if the flash plugin is
present) through a javascript and each time the start site loades and
displays only 1 different picture. At the moment the name of these
files are hardcoded (with relative paths) in a javascript and filled
in an array.

We have Java and some Javascript experience.

The wish: the "mortal" can add pics/flash animation with the CMS in a
specific folder.

The problem: we must be able to display the new pics/flash without
hard coding, this means, somehow the javascript must fill an array
wich contains the name of all images/flash, dynamically. The script
has to read the directory where these files are located and fill them
in the array.

The BIG problem: users do no have to download the jre if they don't
want it (this is a business requirement).

How can we fill the array dynamically with javascript? Ithink we
should solve this problem on the server-side.

If we have to do it with an applet and the read back the files in the
script, then we also must solve it on the server.

One requirement more: must work on Netscape 6.0 + 7.1 and IE 5.5 + 6.0
No CGI, VBScript, PHP or ASP, because we have not the necessary
know-how for it.

Any suggestion/help will be VERY VERY appreciated..
Haa a good day everybody

John
Jul 23 '05 #1
1 2917
za**@freesurf.c h (John) wrote in message news:<9d******* *************** ***@posting.goo gle.com>...
Hi,
we have the following problem:

in our application v1.0 we have static html pages (+ some javascript).
With a CMS (a Content Management System) some "mortal" people can add
or expand the available images for the start site. The site loads
randomly an image or a Flash animation (if the flash plugin is
present) through a javascript and each time the start site loades and
displays only 1 different picture. At the moment the name of these
files are hardcoded (with relative paths) in a javascript and filled
in an array.

We have Java and some Javascript experience.

The wish: the "mortal" can add pics/flash animation with the CMS in a
specific folder.

The problem: we must be able to display the new pics/flash without
hard coding, this means, somehow the javascript must fill an array
wich contains the name of all images/flash, dynamically. The script
has to read the directory where these files are located and fill them
in the array.

The BIG problem: users do no have to download the jre if they don't
want it (this is a business requirement).

How can we fill the array dynamically with javascript? Ithink we
should solve this problem on the server-side.

If we have to do it with an applet and the read back the files in the
script, then we also must solve it on the server.

One requirement more: must work on Netscape 6.0 + 7.1 and IE 5.5 + 6.0
No CGI, VBScript, PHP or ASP, because we have not the necessary
know-how for it.

Any suggestion/help will be VERY VERY appreciated..
Haa a good day everybody

John


It's a server-side issue to manage the List (or array).

All your available image/Flash files must be easily identified (such
as located in their own folder as you suggest). Get a List of the
applicable files and store it in the Application context so it's
immediately available to any http request that needs it (instead of
having to rebuild the List all the time).

When a mortal uploads a new image/Flash rebuild the List. Create a
Servlet which accepts the uploaded image/Flash file, stores it, and
rebuilds the List.

Since you can't use static html files to build the client-side
javascript, you'll need to look into using JSP or some other template
technology in order to create the dynamic javascript.

Andrew
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3284
by: Mike Blackett | last post by:
Hi all, I have several folders of images. Inside each folder is a JS file defining an array of the images with a description of each image. When a user selects a 'gallery'/folder on my site, I want to be able to load in this JS file and create the HTML page of the images and descriptions. Before you say "use a database...", I can't due to the hosting company.
9
3710
by: Frank Carr | last post by:
I'm trying to load a matching image when a link is clicked. The following test page works OK (the pictures load when their link is clicked) in IE6 but it does not work in Mozilla 1.5. ---------------------------------------------------------------------------- ------------------ <html> <head> <title>Test Page</title> </head>
1
2225
by: antishok | last post by:
Hi, I'm writing a page which has a somewhat similar folder tree to that of the windows explorer, where each folder is made of a <SPAN> tag consisting of the folder image (closed or open) and the folder name. When certain actions are performed by the user, more folders (spans) are dynamically added using javascript function appendChild(). I add a new folder span to a container span which holds the whole tree.
6
2058
by: hitendra15 | last post by:
Hi I have created web user control which has Repeater control and Linkbutton in ItemTemplate of repeater control, following is the code for this control On first load it runs fine but when page gets post back it gives following error Failed to load viewstate. The control tree into which viewstate is
9
7041
by: netasp | last post by:
hi all, how can I populate one aspx form when page is loading based on page ID? for example: loading page A (to search for VB code) would display labels and texboxes, dropdown lists all related to VB, plus the address bar would show something like this: www.somethinghere?id=3 and if you change number 3 from the address bar to (for example) 34 or 71 you would get different page with the same formatting like I.e: www.somethinghere?id=34...
4
3289
by: Aquosus | last post by:
I would like to know how to load images from a file using JavaScript. path = = root/images/kitchens/web all files are jpeg I would like to be able to loop through the file and capture all the file names then concat the path name infront of the file into an array. Could someone show me what I need to know please?
2
1522
by: Jeff Allan | last post by:
Hello, I am trying to load an external HTML page into a DIV tag with .NET 05 and I can't figure it out. Any suggestions? My Scenario: - Gridview populated with list of available files - I can get the external page to load in a new window just fine - I would like the detail to show on the same page, below the list. - I can't use the detail control and dynamically create the page as these
0
3267
by: mrjaxon | last post by:
Basically the issue is, when the XSL style sheet is loaded by URI it is cool but when the exact same style sheet loaded by it's contents the load fails (for this particular style sheet). Because our sheets are kept in a DB, loading by content is preferable. Content based load code: Stream xslStream = new MemoryStream(xslString); XmlReader xslTextReader = XmlReader.Create(xslStream); compliedXsl.Load(xslTextReader);
4
8417
hemantbasva
by: hemantbasva | last post by:
We have designed an aspx page having five ajax tab in it. the data of first four are designed on page whereas for the fifth tab it renders a user control named MYDOMAIN. in the tab container's even onactivetabindexchanged we have called a method loadtabpanel() which is defined in javascript in same page.the problem is it sometime give the message load tab panel undefined. this error does not come regularly. it comes in usercontrol rendering . i...
0
8995
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9558
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9378
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9331
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6798
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6077
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.