GOTO URL = javascript:myscriptfunction not working

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

GOTO URL = javascript:myscriptfunction not working

by Karm on Wed Feb 01, 2017 12:48 pm

Hello guys, i have iMacros version 8.9.7 and Firefox 50.1.0, i have a script for title case, its no longer working, maybe you guys could help, i think it is due to firefox update, i haven update i macro extensions due that it break 90% of my codes and 100% of my automation.
!EXTRACT = JOHN DOE
Code: Select all
GOTO URL = javascript.titleCase({{!EXTRACT}});


JS Code, before it was running pretty good.
Code: Select all
function titleCase(str) {
  if ((str===null) || (str===''))
       return false;
  else
   str = str.toString();

 return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
}
Karm
 
Posts: 2
Joined: Wed Aug 10, 2016 11:11 am

Return to iMacros for Firefox

Who is online

Users browsing this forum: DreamRyderXX, Google [Bot] and 13 guests

-->