Posted on 2010-08-24
Classic ASP VBScript
IE7, Chrome, Firefox
WIN XP Pro
I am using a DHTML Fade Slideshow script from the net.
It works perfectly when static.
I altered it by adding a recordset and then a Repeat Region around the information string for the slideshow images, and entered dynamic data for the parameters.
= Worked fine... In Chrome and Firefox.
IE7 has a problem with the trailing comma. Chrome and Firefox appear to not care about it.
So... my question is... how do I get the comma to NOT display on the last record?
Here is the snippet:
<%while NOT rsHomeimages.EOF%>
You will notice the comma at the end of the parameter string because it is an array.
Again - Chrome and Firefox do not care that a trailing comma is at the end.
IE7 will not display the images unless the last record removes the comma.
I have tried <%if NOT rs.EOF then%>,<%end if%>, but.... same problem.
Surely there must be a way to only display the comma while it is not the last record.
Your help is most appreciated.