Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution in javascript
Message
 
To
15/03/2002 14:12:19
Antonio Lopes (Online)
BookMARC
Coimbra, Portugal
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00633553
Message ID:
00633726
Views:
17
>>Anyone know how to do macro substitution in javascript?
>>
>>I've got a webpage at http://www.shelbynet.com/javascripttest.htm that should give a clue as to what I'm trying to accomplish.
>
>If I got the clue right, then I think you should produce the form elements through a loop. Basically:
>
>< script language="Javascript" >
>for (var iloop = 1; iloop < 6; iloop++){
>  document.write([ form elements, iloop value can be used to create dx variables ]);
>  ...
>}
>< /script >
>
>But to keep this thread on topic, you could let VFP build the html document prior to upload it (reading the various selectable options from a table, for instance).

Thanks, the page is going to be dynamically rendered by VFP so that n number of witnesses are going to be subpoenaed and the page will have n number of rows with the addresses and the picklist so javascript is going to be the fastest way to do this without having another trip to the server. I'll give your suggestion a try. I'm a novice at javascript, just borrowing code from here and there and occasionally writing a function when I have to.

Thanks,

John
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Reply
Map
View

Click here to load this message in the networking platform