WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

WebBatch
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

WebParamData fails with DIV Tag in TEXTAREA

Keywords:    HTML 3.2  DIV

Question:

I can't seem to pick up the value of TEXTAREA fields with WebParamData or WebConData. Ordinary INPUT fields are recognised OK. Am using IE 4.0 browser with Netscape Enterprise server 2.0.

Any ideas?

Answer:

Change the ACTION= line on your submit button to to the dumpinputdata trick...
        ACTION="http://your.machine.com/webcgi/webbatch.exe?dumpinputdata"
and examine the results. Is the stuff even there? How much data are you trying to accept?

Resolution:

Did that and it appears that the CGI variables aren't being set properly. This appears to be because the form page is nested between div and /div tags. I need the div for a specific reason. However, taking the form fields outside these tags caused the CGI values to be set to what was entered by the user rather thamn the default values.

However, empty fields took on the content of previous fields! To get round the problem, I totally re-designed the form and solved the latter problem by always supplying some kind of default value.

The DIV element, as described in the HTML 3.2 specification, should be used with Style Sheet attributes, to name a section of text as being of a certain style. Thus CSS attributes may be applied to a block of text enclosed by DIV /DIV tags.

There appears to be a strange interaction with forms.

I've abandoned using DIV with forms for the time being.


Article ID:   W12462
Filename:   WebParamData Fails with DIV Tag.txt
File Created: 2010:02:17:11:58:08
Last Updated: 1999:04:15:16:47:24