Development
: K-Meleon Forum
K-Meleon development related discussions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JamesD] [quote=siria] Quote InjectJS now return the result of the script (when applicable) How?? I mean, which macro syntax? Have tried some experimenting, but know nearly nothing about JS, so no luck this way ;-) For example for getting some variable returned for further use in a macro. [/quote] In e-mail with desga2, he thinks it might be thus. [quote]$_Result = InjectJS(<JavaScript> [, location]); [/quote] We are not sure if included yet in the alpha code. I have gotten a book on Javascript, but I have no idea how long it will take me to learn enough to actually test the concept. Another big question is whether the statement is modal. In other words can I inject a form object and wait for user response. I am afrad that is too much to hope for. For those who understand C++, here is the code for the new version. [code] 973 Value injectJS(FunctionData* data) 974 { 975 checkArgs(__FUNCTION__, data, 1, 2); 976 977 int bTopWindow; 978 979 if (strcmp(data->getstr(2), "frame")==0) 980 bTopWindow = 0; 981 else if (strcmp(data->getstr(2), "alltabs")==0) 982 bTopWindow = 2; 983 else 984 bTopWindow = 1; 985 986 char result[256]; 987 kPlugin.kFuncs->InjectJS2(data->getstr(1), bTopWindow, result, 256, data->c.hWnd); 988 return result; 989 } [/code][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development