Just to give some more information, I just noticed that the HTML that is output (now that I have added the 13 spaces) seems to output the /%openquery%/ variable twice.  As if I had two instances of the variable sitting side by side.  Here is what I see:

<textarea name="openquery" id="openquery" rows="10" cols="80">FIRNAM *EQ 'MATT'FIRNAM *EQ 'MATT'</textarea>

And here is what is in my modified HTML (with the 13 characters added):

<textarea name="openquery" id="openquery" rows="10" cols="80">/%openquery%/             </textarea>

The only other thing that might of significance is that I have another variable named 'openquery' in this HTML file, but it is in a different section and is not experiencing the same problems as the one above.

Thanks again.




[EMAIL PROTECTED]
Sent by: [email protected]

02/07/2006 02:29 PM

Please respond to
[email protected]

To
[email protected]
cc
Subject
[Easy400Group] HTML Variable Problem






I have having a very strange HTML variable problem.  I have some HTML code that looks like the following:


<textarea name="openquery" id="openquery" rows="10" cols="80">/%openquery%/</textarea>


When I update the variable "openquery", it seems to overwrite the closing textarea tag.  By the way, we use IFS files to store our HTML source.  Here is the code in the RPG:


updHtmlVar2('openquery':%addr(allqrydta):%len(allqrydta));


I am using updHtmlVar2 because allqrydta can be over 2700 characters long.  


To keep the program from overwriting </textrarea>, I had to add 13 spaces following the closing '/' of the HTML variable.  That seemed to fix the issue; however, I am not satisfied.  I have not had this sort of problem in the past.  Everything was working fine earlier this morning and it started doing what was described without any major changes.  All I did was modify the HTML of a different section in the same document.  


I would like to know why this is occurring because we have several applications programmed using CGIDEV2 and I would hate to think they could all start experiencing similar problems.  Does anyone have any idea of what could cause the problem above?


Thanks,

Matt


SPONSORED LINKS
How to format a computer hard drive Cobol programmer Iseries 400
How to format a computer How to format your computer How to format computer



YAHOO! GROUPS LINKS






SPONSORED LINKS
How to format a computer hard drive Cobol programmer Iseries 400
How to format a computer How to format your computer How to format computer


YAHOO! GROUPS LINKS




Reply via email to