在静态HTMLtemplate中将表单内容注入div并进行渲染。 [英] Inject form content into div in a static HTMLtemplate and render.

查看:116
本文介绍了在静态HTMLtemplate中将表单内容注入div并进行渲染。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是存储在物理位置的模板。

This is the template stored in a physical location.

<html>
<head>
//logo and some content
</head>
<Body>
<div id ="MainContent">
</div>
<div id ="MyContent">
</div>
<div id ="Footer">
</Body>
<html>



我必须使用某些表单内容呈现此模板在MyContent中(这将是另一个带有提交按钮和控件的表单)。此外,我需要对此表单进行服务器控制。


I have to render this template with some form content inside MyContent (This will be another form with submit button and controls). Also i need to have server control over this form.

<div id="MyContent">
</div>



这是我想要的。


This is want exactly i am looking for.

推荐答案

你可以通过使用JSRender

来做更多通过这个链接

http://www.jsviews.com/#jsrender [ ^ ]

希望这有助于
You can do it by using JSRender
for more go through this link
http://www.jsviews.com/#jsrender[^]
Hope this helps


这篇关于在静态HTMLtemplate中将表单内容注入div并进行渲染。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆