Oracle 11g表单Javascript事件调用

编程入门 行业动态 更新时间:2024-10-19 04:30:32
Oracle 11g表单Javascript事件调用 - 如何设置配置ID变量(Oracle 11g Forms Javascript Event Calls - How to Set the Configuration ID Variable)

我正在尝试将Oracle Forms与Javascript集成,并使用Oracle的这个文档作为指南:

http://docs.oracle.com/cd/E23943_01/web.1111/e10240/javascript.htm

我遇到第6.2节的问题,它说:

“document.forms_applet.raiseEvent(event_name,payload);

这里假设您已将ID配置变量设置为forms_applet。“

我不知道如何设置ID配置变量。 有谁知道如何做到这一点? Google似乎没有太大的帮助,而且对我来说,Oracle doco太模糊了。

谢谢

I'm trying to integrate Oracle Forms with Javascript and am using this documentation from Oracle as a guide:

http://docs.oracle.com/cd/E23943_01/web.1111/e10240/javascript.htm

I'm having trouble with section 6.2 where it says:

"document.forms_applet.raiseEvent(event_name, payload);

The assumption here is that you have set the ID configuration variable to forms_applet."

I don't know how to set the ID configuration variable. Does anyone know how to do this? Google didn't seem to be very much help and the Oracle doco was too vague for me.

Thanks

最满意答案

我找到了在哪里设置表单的ID。 它位于标签内的applet定义中。

<OBJECT classid="cldis:DAEID" codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#version=1,6,0,12" WIDTH="1000" HEIGHT="800" HSPACE="0" VSPACE="0" ID="forms_applet">

然后在更改ID之后,我可以在我的javascript中执行以下操作:

document.forms_applet.raiseEvent("myEvent", "My string for the event");

I found where to set the ID of the form. It's in the applet definition inside the tag.

<OBJECT classid="cldis:DAEID" codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#version=1,6,0,12" WIDTH="1000" HEIGHT="800" HSPACE="0" VSPACE="0" ID="forms_applet">

Then after changing the ID I can do things in my javascript like:

document.forms_applet.raiseEvent("myEvent", "My string for the event");

更多推荐

本文发布于:2023-08-01 17:26:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1361503.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表单   事件   Oracle   Javascript

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!