Auto populate an HTML form with LC server

Hakan@exformedia.se hakan at exformedia.se
Mon Aug 8 00:32:05 EDT 2022


I don’t understand Japanese but to clarify the process. The server side can’t do anything unless you call it in some way. So every time you see something happening in the browser before you submit it is JavaScript running. The libraries mentioned are Ajax libraries (as far as I understand) and should be injected to the web page. 
With JavaScript you can listen to events in a similar way as in Livecode. And when your event of choice happens your JavaScript calls a server API that can then return an answer (which often is some json) that the JavaScript interprets and injects into the fields. 
So, Livecode server (or any other server) can’t pick up anything before you submit, but with JavaScript you can make the call!


> 7 aug. 2022 kl. 14:59 skrev Tim Selander via use-livecode <use-livecode at lists.runrev.com>:
> 
> 一発でした!
> 小島様、ありがとうごあいました。助かりました!
> お久しぶりに「小島健治」というお名前をメールリストに見て、すごく嬉しくなりました。過去、何回も手伝ってくださいましたね。
> 
> ごめんんさい、芸術の世界とまったく縁のない人間ですが、HPを見ると、相変わらず重要なプロジェクトを取り上げていますね。
> 
> では、これからもよろしくお願いいたします。
> 
> セランダー・ティム
> 
> Thank you so much!!
> 
> Tim
> 
> 
> 
>> On 2022.08.07 20:17, Kenji Kojima wrote:
>> Tim,
>> See this
>> https://www.webdesign-fan.com/ajaxzip3
>> and
>> http://www.webdesign-fan-guide.com/ajaxzip3/
>> I believe you can use these on the LC server.
>> Best,
>> --
>> Kenji Kojima / 小島健治
>> http://www.kenjikojima.com/
>>>> On Aug 7, 2022, at 3:29 AM, Tim Selander via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>> wrote:
>>> 
>>> Many web forms in Japan automatically fill in prefecture, town, ward and block when you just put in the zip code. I would like to do that on my web site, and know the api I would use.
>>> 
>>> I assume these sites are using javascript, but can LC server pick up user input before the submit button is clicked?
>>> 
>>> Any help appreciated.
>>> 
>>> Tim Selander
>>> Tokyo, Japan
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list