Article View: adobe.golive.dynamic.content
Article #140Re: calculate question
From: Oliver_Michalak
Date: Sat, 14 Aug 2004 10:27
Date: Sat, 14 Aug 2004 10:27
11 lines
1398 bytes
1398 bytes
As a general recommendation move all you data processing to the server. For that reason most shops offer an 'update basket' feature which calls the page itself to be updated on the server and return the result back to the user. But even if you want to do it on the client side: of course you can write Javascript code to fetch different amount of data to work on. In javascript, you can acess forms and elements inside a form, count them and query the individual values. That way the Javascript will 'adopt'. Or you can let PHP write a Javascript variable to the counter of tickets, like < script > var counter = <?=$number_of_tikets?>; for (var idx=0; idx<counter; idx++) // process form elements here < /script> I have done both with success...
Technical Details
Message-ID:
<3bb579ec.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb579ec.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 11ffd2,e834b5c8ccc1a9d8 X-Google-Attributes: gid11ffd2,public X-Google-Language: ENGLISH,ASCII-7-bit From: Oliver_Michalak@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.golive.dynamic.content Subject: Re: calculate question Message-ID: <3bb579ec.0@webx.la2eafNXanI> Date: Sat, 14 Aug 2004 03:27:26 -0700 References: <3bb579ec.-1@webx.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit