简体   繁体   English

iMacros是否支持javascript或任何其他脚本?

[英]Do iMacros support javascript or any other script?

There is a webpage which is having one textbox for every day.I am using iMacros firefox plugin to fill all textboxes. 有一个网页每天都有一个文本框。我正在使用iMacros firefox插件填充所有文本框。 As of now, my macro fills all textboxes from monday to friday with a desired value, and then it submits the page. 截至目前,我的宏使用所需的值填充从星期一到星期五的所有文本框,然后提交页面。 The webpage is designed like, if it is not friday today then it displays the error and will not let you submit. 该网页的设计类似于,如果今天不是星期五,那么它将显示错误,并且不会让您提交。 But if somehow i could get what day is today and then somehow fill the text box of only that day and submit the page then it will work. 但是,如果我能以某种方式得到今天的星期几,然后以某种方式填写仅那天的文本框并提交页面,那么它将起作用。 I think this can be done if iMacros support javascript or any other scripting language. 我认为,如果iMacros支持javascript或任何其他脚本语言,则可以完成此操作。

So first thing do it supports any scripting language at all? 那么,第一件事它是否完全支持任何脚本语言? If yes then please help me how to do this, or please share any tutorial for this. 如果是的话,请帮助我该怎么做,或者请分享任何教程。

Yes, iMacros can run javascript in Firefox. 是的,iMacros可以在Firefox中运行JavaScript。 If the javascript file is in the macros folder you are going to see it listed in the macros list and can run it directly in the browser by double clicking. 如果javascript文件在macros文件夹中,您将在macros列表中看到它,并且可以通过双击直接在浏览器中运行它。

This javascript running in iMacros is somehow different, because it supports calls to the iMacros macro player through iimPlay(). 在iMacros中运行的此javascript有所不同,因为它支持通过iimPlay()调用iMacros宏播放器。 Have a look at this link and also the samples installed with the iMacros Addon. 请查看此链接以及随iMacros Addon一起安装的示例。

There is also an active iMacros user forum where you find several tips around iMacros. 还有一个活跃的iMacros用户论坛 ,您可以在其中找到有关iMacros的一些技巧。

Regards, 问候,

Marcia 马西亚

It goes beyond just javascript, you can use jQuery even node.js. 它不仅限于javascript,还可以使用jQuery,甚至可以使用node.js。 Just take a look at the imacros forum. 只需看看imacros论坛即可。

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

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