Multiple ResponseData for a script - WeOnlyDo Discussion board

Multiple ResponseData for a script (General questions)

by dromine, Friday, October 02, 2009, 22:07 (5530 days ago)

It is possible to have the ResponseData sent multiple lines of html code? I'm trying to populate a selectable listbox on a webpage from an INI file. I can get the data to loop through the file, only the last record found in file is being published to the webpage. Here's the code I'm working with:

[code]
Dim Li, LiUser As Integer
LiUser = TotalSections(App.Path & userINI)

If ScriptData = ListUser Then
For Li = 1 To LiUser
ResponseData = <option> + ReadIniValue(App.Path & userINI, user & Li, name ) + </option>
Next Li
End If[/code]

Re: Multiple ResponseData for a script

by woddrazen, Friday, October 02, 2009, 22:13 (5530 days ago) @ dromine

Hi,


Yes you can. Why don't you put all data inside ResponseData. You are only adding one line.

Something like this:
[code]ResponseData = ResponseData + something....[/code]
Let us know how it goes.


Regards,
Drazen

Re: Multiple ResponseData for a script

by dromine, Friday, October 02, 2009, 22:21 (5530 days ago) @ woddrazen

Hi,


Yes you can. Why don't you put all data inside ResponseData. You are only adding one line.

Something like this:
[code]ResponseData = ResponseData + something....[/code]
Let us know how it goes.


Regards,
Drazen

[:happy:] That was exactly what I needed. I wouldn't have thought to do that on my own. Thank you so much. [:happy:]