The document display part is described directly using JavaScript scripting

Source: Internet
Author: User

Measurement rapid development platform, in the use of document display parts or document editing parts, you can easily implement HTML script to show the data, since it is the style of HTML, the various scripting syntax of HTML can be used.
For example, here is the template:

<div><font face= > Song Body<a href= "Javascript:sayhello (); >Direct Links </A></FONT></DIV>
<div><font face= ></FONT> </DIV>
<div><font face= Arial > Login name: <input id=username name=username></font></div>
<div><font face= arial > Password: <input id=password name=password></font></div>
<div><font face= > Song Body<input onclick=submitvalue ()Type=button value= Submit ></FONT></DIV>

<script type=text/javascript>
function SayHello () {
alert ("Hello World");
}

function Submitvalue ()
{
var uname = document.all.username.value;
var upass = document.all.password.value;
alert ("Username:" +uname+ "Password:" +upass);
}
</SCRIPT>

Use effect:
650) this.width=650; "id=" aimg_826 "src=" http://bbs.delit.cn/data/attachment/forum/201512/29/ 165056tskzbk7snx5bcz7o.png.thumb.jpg "alt=" 165056tskzbk7snx5bcz7o.png.thumb.jpg "/>

very easy to use, measuring the rapid development platform, both CS platform, BS support is also very good.
The above section is HTML directly using a variety of script scenarios, new features: Directly using script to measure the rapid development platform of the form, as well as parameter passing. This way the BS mode and CS mode are all open.
Template:
<div>&nbsp;<a href= "javascript:window.external.OpenSmartForm (' b9043a0a-a2a0-4efd-847f-143b111f62f4 ')"> Open form without parameters </A></DIV>
<div>&nbsp;<a href= "javascript:window.external.OpenSmartForm1 (' b9043a0a-a2a0-4efd-847f-143b111f62f4 ', ' parameter 1 ')the >1 parameter opens the form </A></DIV>
<div>&nbsp;<a href= "javascript:window.external.OpenSmartForm2 (' b9043a0a-a2a0-4efd-847f-143b111f62f4 ', ' parameter 1 ', ' parameter 2 ')the >2 parameter opens the form </A></DIV>
<DIV>&nbsp;</DIV>
<div>&nbsp;<a href= "Javascript:window.external.OpenSmartFormInMDI (' b9043a0a-a2a0-4efd-847f-143b111f62f4 ')"> Open Subform without parameters </A></DIV>
<div>&nbsp;<a href= "javascript:window.external.OpenSmartFormInMDI1 (' b9043a0a-a2a0-4efd-847f-143b111f62f4 ', ' parameter 1 ')the >1 parameter opens the subform </A></DIV>
<div>&nbsp;<a href= "javascript:window.external.OpenSmartFormInMDI2 (' b9043a0a-a2a0-4efd-847f-143b111f62f4 ', ' parameter 1 ', ' parameter 2 ')the >2 parameter opens the subform </A></DIV>
<DIV>&nbsp;</DIV>
<p><font face= ></font><font face= song body > Calling public Function:</font></p>
<div>&nbsp;<a href= "javascript:window.external.Call1 (' opensmartform ', ' b9043a0a-a2a0-4efd-847f-143b111f62f4 ')"> Invoke public Functions </A></DIV>
<div>&nbsp;</div><font face= ></FONT> song Body

650) this.width=650; "id=" aimg_828 "src=" http://bbs.delit.cn/data/attachment/forum/201512/30/ 141717ms0qhzf9f8fhzc10.jpg.thumb.jpg "alt=" 141717ms0qhzf9f8fhzc10.jpg.thumb.jpg "/>
this is perfect. If a user needs a very beautiful interface, similar to the function of the page effect, then you can use the document editing parts or document display parts, make good interface function and data display, and click work Processing.
This feature needs to be used in the latest version of V15.0.5.

Original address: http://bbs.delit.cn/thread-545-1-1.html

Reprint please specify the source:

Author: metric Technology http://www.delit.cn

The document display part is described directly using JavaScript scripting

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.