简体   繁体   中英

Imacros (javascript) getting variable value from custom input dialog

I am trying to find a way to create custom user input dialog with imacros (javascript).

However while the dialog itself could be done, say,

with javascript

or jQuery

No luck in getting the variable to be used "outside". It keeps saying variable is not defined, or illegal syntax (see i am trying to alert "a" variable outside)

Is there any way to get around this issue, attaining the goal? Or i am doing it wrong?

PS: I am using imacros 8.9.7 run in Firefox 56, Windows 7 (classic mode)

Still posting as an/"the" Answer a Link to one Post of mine that you "accepted" at "the" Answer/Solution to your Qt @OP in the parallel Thread you opened on the 'iMacros' Forum...:

I won't quote its/(my) Content as it's pretty Verbose with several Links to other Threads on the iMacros Forum and its Content doesn't really fit for the "simplistic" Q/A Principle from SOF which doesn't/never works for Qt's, or only for ueber-simplistic Qt's from Users too lazy to read 2 Pages from the Wiki/Documentation...

=> For Users interested, this is a very clever/interesting Qt/Scenario, check the parallel Thread on the iMacros Forum for "more Info"...


(@ SOF Mods, I post my Answers/Solutions on the iMacros Forum, (has been around before SOF), as (I make sure) no Content gets deleted there (Mod there sinds 2015, with 9000+ Posts / 1500+ Solutions), while all new Threads/Qt's about all get deleted "here" every Friday with just one '-1' from anybody...) (Counter has been at ~1450 for at least 3 years... (for 'iMacros' Qt's...))

  • @OP, if you can accept my Answer, to prevent Deletion of the whole Thread...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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