ListBox Options being displayed on Screen

allanm

New Member
Hello,

I have a webspeed program containing a form in with a HTML list box created by using <select> and <options> Tags. The list box has a number of List Items.
There is a Submit button on the form.
When the user clicks on the Submit button, the program behaviour is not as expected. The page that is returned is a plain page with some text on it. On closer inspection it is found that the text is nothing but the ListBox options (List items).

For eg., If the list box is containing followings List items :
List01
List02
List03
.
.
List10

The following gets displayed on the screen on submission of the form:
List01 List02 List03 List04 . . . List10

The problem is occasional in nature and does not happen everytime the program is executed.

Am I doing something wrong here?
Has anybody faced a similar problem?
Or is this some webspeed bug?

Wud be nice if somebody can help.

Thanks in advance..

-Allan
 
Hi there,

A few questions:

What do you expect?
Which program is called after the submit?
What code do you use?

The problem is that after submit of a form you can go to www.progresstalk.com or any other page ;-)

I suspect you go to the same page and expect something else then what shows up. I think it will make things more clear if you post (part of) the code you are using...

regards,

Casper.
 
"The page that is returned is a plain page with some text on it."

It sounds like a frame problem to me, like you have not specified in what frame the list items are to be displayed. So they end up in a new frame of their own.
 
Thanks Casper / Amrock / gcampbell for replying.

Yes Casper you are right, i am going to the same page on click of the submit button. It is designed that way. However this is happening in a number of programs not just this one. The basic flow of the program(s) are / is as follows:

1. Show a page with List Box and submit button. The List Box is the criteria for a Report.
2. The List box options are populated from a progress DB table.
3. When user clicks on the submit button call the same program again.
4. When called for the second time (subbmited mode) , the program is supposed to display the report data .

Instead of displaying the report data, what displays on screen are the ListBox options as plain HTML text on the screen.

Can this be because of some network error or something?
Or some sort of misconfiguration?

Regards,
Allan
 
Well,
Hi,

It probably isn't a network issue,maybe some bad characters in the report (do you use hml-encode() function for the character fields which are extracted from the DB?)or like Amrock said a frame issue.
Still hard to say if we don't see the code.
Could you sent us the code for the html page?
Do you use frames?
Only the code for the, listbox frames and (if there is) javascript code for submit should be sufficient to see if there's anything wrong with the HTML page.
From there we can look further.

Regards,

casper.
 
Thanks Casper for your valuable inputs,

I will check whether this is related to html-encode.

Regards,
Allan
 
Back
Top