简体   繁体   English

向服务器发送请求

[英]Post request to server

I know that it is very funny and foolish. 我知道这很有趣也很愚蠢。 But tell me that 但告诉我

Is their anyway to write the javascript code in script tab of Firebug, That will invoke serverside action. 他们无论如何都要在Firebug的脚本选项卡中编写javascript代码,这将调用服务器端操作。

** **

Simply tell, Can I write the serverside javacsript code in Firebug script tab? 简单地说,我可以在Firebug脚本选项卡中编写服务器端javacsript代码吗?

** **

No, you cannot execute SSJS code in Firebug script tab. 不,您无法在Firebug脚本选项卡中执行SSJS代码。 But you could use the "executeOnServer"-Function to invoke a serverside action. 但是您可以使用“executeOnServer”函数来调用服务器端操作。

See here for more details: 有关详细信息,请参见此处

http://xpages.info/XPagesHome.nsf/Entry.xsp?documentId=88065536729EA065852578CB0066ADEC http://xpages.info/XPagesHome.nsf/Entry.xsp?documentId=88065536729EA065852578CB0066ADEC

EDIT: 编辑:

If you have added this CSJS-function to your XPage, you can invoke a event on the server by executing this code in the firebug console 如果您已将此CSJS函数添加到XPage,则可以通过在firebug控制台中执行此代码来调用服务器上的事件

executeOnServer('eventhandler1a');

This would invoke event eventhandler1a on the server. 这将调用服务器上的事件eventhandler1a

Hope this helps 希望这可以帮助
Sven 斯文

You should look into Medusa project on OpenNTF. 您应该在OpenNTF上查看Medusa项目。 It is discontinued now, but I think peek into sources could be helpful to you. 它现在停止了,但我认为查看来源可能对您有所帮助。

http://www.openntf.org/internal/home.nsf/project.xsp?action=openDocument&name=Medusa http://www.openntf.org/internal/home.nsf/project.xsp?action=openDocument&name=Medusa

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM