DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: javascript SDK requests  (Read 7,148 times)

czb

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 336
    • Plugin Coding Medal
    • Participated in NANY Challenge Once
javascript SDK requests
« on: February 19, 2008, 08:06 AM »
1)To make custom user regex functioning. Is that possible? The other solution would be to put it into advanced plugin settings.
EDIT: I have also found that instead of writing:
Quote
regexstr="^gcal (.*?)=$";
scriptregex=/^gcal (.*?)=$/;
we can use
Quote
regexstr="^gcal (.*?)=$";
scriptregex = new RegExp(regexstr);
EDIT: and further writing
Quote
aliasstr="gcal";
pre_regexstr="^gcal ";
post_regexstr="(.*?)=$";
regexstr=pre_regexstr+post_regexstr;
scriptregex = new RegExp("^.*? "+post_regexstr);
user can set his own custom alias + regex but only the first part of it. So it can be also solution, but it is not the best...
2) When user saves (hits OK) advanced plug-in setting would call some callback function with user settings instead of just saving it

3) To implement all HTML FORM elements such as select, option etc. to advanced plugin settings

4) To logically separate *.js file and *.dll with separate updating etc.

Hopefully it is not toooo complicated to implement the requests :Thmbsup:
My open-source online piano game: https://github.com/musicope/game
« Last Edit: February 19, 2008, 08:38 AM by czechboy »

ecaradec

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 410
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: javascript SDK requests
« Reply #1 on: February 19, 2008, 10:07 PM »
1 is possible. I could add matching group as extra arguments on onRegexSearchMatch. You could then use those and it would make the regex in the preferences active. This is FARR normal way, so I think this is the best option.
2 onOptionsChanged is called when the user press ok. Could you precise what you expect ?
3 would be good. I could also host a webbrowser and let you define options in html...
4 is a lot of work, I'm working on a prototype currently.
- The options of all modules have to be merged in one interface
- FARR does not display results before the plugin is complete (and since there would be more than once ), it would mean before all plugins complete.
Blog & Projects : Blog | Qatapult | SwiffOut | FScript

czb

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 336
    • Plugin Coding Medal
    • Participated in NANY Challenge Once
Re: javascript SDK requests
« Reply #2 on: February 20, 2008, 10:15 AM »
1) Thanks, sounds great :Thmbsup:
2) I missundestood it all... So thanks for explaining ;)
3) I am looking forward ;)
4) Hopefully it will be solvable somehow

Thank you for your answers and I am looking forward seeing new great versions :)
My open-source online piano game: https://github.com/musicope/game

Original address: https://www.donationcoder.com/forum/index.php?topic=12371.0