Right here goes,
Currently i am developing html and javascript within an Oracle development application called Portal. The Portal currently selects out information from the database, via some new "<ORACLE>" tags, and builds up HTML pages to present to the users.
Within this portal you can obviously create HTML pages and Java Script for your own purposes. Which is what i have done.
At the moment, my page consists of running data along the screen in the form of some snazzy JavaScript. A requirement has arisen to supply the text (for this javascript) from the database. Now, the "ORACLE" tags do not work within java script, only in the HTML. This is not much of a problem as i have created a FORM with hidden fields to pass into the javascript.
My problem is regard to setting these parameters to pass into the Java. The 'clever' "ORACLE" tags actually select out the information from the datbase (great!), but then formats the selected data into an HTML table, rendering my form.record useless. An example of which can be seen below...
<form id="hiddenOracleForm">
<input type="hidden" name="recordset1" value="
<TABLE border="0" cellspacing=0 cellpadding=2>
<TR>
<TH ALIGN="LEFT" style="background-color:#C0C0A0"> </TH>
</TR>
<TR style="background-color: #E0E0D0">
<TD ALIGN="LEFT" valign="TOP" WIDTH="0">This is information taken from the portal database</TD>
</TR>
<TR style="background-color: #E0E0D0">
<TD ALIGN="LEFT" valign="TOP" WIDTH="0">This is row two from the table</TD>
</TR>
</TABLE>
">
</form>
You can see, that my form "hiddenOracleForm".recordset1.value is actually set to "<-TABLE border=" etc.........When i actually what the two sentences in the table, "This is inform....." and "This is row two......"
I some how need to set my form attributes to the table rows. Is there anyway of doing this when the number of rows in the table could also vary between one and ten!?!?!?
I hope i have explained myself well enough to warrant an expert responce.
Thanks Nunners
Currently i am developing html and javascript within an Oracle development application called Portal. The Portal currently selects out information from the database, via some new "<ORACLE>" tags, and builds up HTML pages to present to the users.
Within this portal you can obviously create HTML pages and Java Script for your own purposes. Which is what i have done.
At the moment, my page consists of running data along the screen in the form of some snazzy JavaScript. A requirement has arisen to supply the text (for this javascript) from the database. Now, the "ORACLE" tags do not work within java script, only in the HTML. This is not much of a problem as i have created a FORM with hidden fields to pass into the javascript.
My problem is regard to setting these parameters to pass into the Java. The 'clever' "ORACLE" tags actually select out the information from the datbase (great!), but then formats the selected data into an HTML table, rendering my form.record useless. An example of which can be seen below...
<form id="hiddenOracleForm">
<input type="hidden" name="recordset1" value="
<TABLE border="0" cellspacing=0 cellpadding=2>
<TR>
<TH ALIGN="LEFT" style="background-color:#C0C0A0"> </TH>
</TR>
<TR style="background-color: #E0E0D0">
<TD ALIGN="LEFT" valign="TOP" WIDTH="0">This is information taken from the portal database</TD>
</TR>
<TR style="background-color: #E0E0D0">
<TD ALIGN="LEFT" valign="TOP" WIDTH="0">This is row two from the table</TD>
</TR>
</TABLE>
">
</form>
You can see, that my form "hiddenOracleForm".recordset1.value is actually set to "<-TABLE border=" etc.........When i actually what the two sentences in the table, "This is inform....." and "This is row two......"
I some how need to set my form attributes to the table rows. Is there anyway of doing this when the number of rows in the table could also vary between one and ten!?!?!?
I hope i have explained myself well enough to warrant an expert responce.
Thanks Nunners