|
Mark Walter wrote:
>
> Thanks for your help all.
> Loading the array with the Net.Data looping constructs and not the
>javascript was the ticket.
> For anyone else's info here is the code:
>
> %html(testjscr) {
> @qrytext(texttable)
> @DTW_TB_ROWS(texttable,rws)
>
> <script language="javascript">
> textarr = new Array()
> var idx = 1
> </script>
> %while(x <= rws) {
> @DTW_TB_GETV(texttable,x,"1",var)
> @DTW_CONCAT("""",var,var)
> @DTW_CONCAT(var,"""",var)
> @DTW_ADD(x,"1",x)
> <script language="javascript">
> textarr[idx] = $(var)
> idx++
> </script>
> %}
I would think the while loop would be better without the <script
language="javascript"> and </script> and then just put one </script>
after the while loop. (Oh, and remove the </script> before the while
loop.)
%html(testjscr) {
@qrytext(texttable)
@DTW_TB_ROWS(texttable,rws)
<script language="javascript">
textarr = new Array()
var idx = 1
%while(x <= rws) {
@DTW_TB_GETV(texttable,x,"1",var)
@DTW_CONCAT("""",var,var)
@DTW_CONCAT(var,"""",var)
@DTW_ADD(x,"1",x)
textarr[idx] = $(var)
idx++
%}
</script>
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.