Problem solve Get help with specific problems with your technologies, process and projects.

Ordering pictures on a page from a Web-based DB, redux

Hi. With reference to Ordering pictures on a page from a Web-based DB, I have many images that are linked to one document. How can I accomplish the paging control? Is it possible to do it within the computed value?
It's a complex question. Since you can't predict how many documents you need to get nine images, just using a view like I suggested before won't be enough.

I suggest using DHTML to do the displaying. Your JavaScript code can calculate the HTML for the set of images you want to display at the same time, and you can add navigation controls that recalculate the HTML to show a different set of images. To get the data that the JavaScript code will need to do its work, you'll need to pull data from the view and get it into a form that JavaScript can use. Ideally, you want to generate something like this:

var imageData = new Array( 
Then your JavaScript code can use Array.length to find out how many pictures there are and use the contents of the array to generate the HTML for pictures, say, #9 thru 17 or whatever you are displaying. The question is: How do you get the view data into the JavaScript code?

Click here for the rest of the answer.

Do you have comments on this Ask the Expert Q&A? Let us know.

Dig Deeper on JavaScript for Lotus Notes Domino

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...