dongyuan2652 2012-04-14 02:12
浏览 55
已采纳

将动态变量插入HTML模板... PHP? ASP? ColdFusion的? MySQL的?

I have looked on this site, googled, and even searched adobe developer central, without luck. As such, I think I might not know the correct terminology to search for, as my question is pretty straight-forward. Thus, if the title was misleading I apologize.

I'd like to learn how to create an HTML template which will then insert variables as needed, specifically, the names of cities and states (for a franchise), where it is appropriate.

[Self-edited after realizing my initial post was way too broad]

How to do this, or perhaps more importantly the terminology I should use in queries so I find relevant information, would be awesome...

On a related note, are all the dynamic scripting languages compatible with all the database technologies (the only book I read on it dealt with PHP and MySQL)?

Thanks everybody.

  • 写回答

1条回答 默认 最新

  • dongli2000 2012-04-14 02:37
    关注

    The "new hotness" in the interwebs is client-side templating (eg in the browser via JavaScript), & either have your data in the HTML or JavaScript & hiddent/unhidden as needed, OR use AJAX/JSON/XML to get new data from the server dynamically.

    Linkedin switched to client-side templating: http://engineering.linkedin.com/frontend/client-side-templating-throwdown-mustache-handlebars-dustjs-and-more

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 用twincat控制!
  • ¥15 请问一下这个运行结果是怎么来的
  • ¥15 单通道放大电路的工作原理
  • ¥30 YOLO检测微调结果p为1
  • ¥20 求快手直播间榜单匿名采集ID用户名简单能学会的
  • ¥15 DS18B20内部ADC模数转换器
  • ¥15 做个有关计算的小程序
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决