• Subject: Re: Net.Data and javascript
  • From: Sean Porterfield <sporter@xxxxxxxxxxxx>
  • Date: Mon, 29 Jan 2001 17:14:25 -0500
  • Organization: Best Distributing Co.

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
+---

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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].