URL GOTO JAVASCRIPT

Discussions and Tech Support specific to the iMacros for Chrome extension.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
thomaskost
Posts: 5
Joined: Thu Dec 30, 2010 6:09 am

URL GOTO JAVASCRIPT

Post by thomaskost » Fri Jan 14, 2011 11:07 am

Code: Select all

.appendChild(a)})();]
This is a bookmark a use a lot why doesnt it work from in macro.
padib_pqa
Posts: 11
Joined: Mon Jan 10, 2011 1:53 pm

Re: URL GOTO JAVASCRIPT

Post by padib_pqa » Fri Jan 14, 2011 3:04 pm

I think you meant

Code: Select all

URL GOTO=javascript:(function(){var a=document.createElement("script");a.type="text/javascript";a.src="http://joshmiller.com/JGrabAllGifts.js?"+Math.random();document.getElementsByTagName("head")[0].appendChild(a)})();
When I try it, I get:
SyntaxError: wrong format of URL command at line 5
I added a basic google search just to make sure everything is working fine. My code is:

Code: Select all

VERSION BUILD=3020924 RECORDER=CR
URL GOTO=http://www.google.ca/
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT=hi
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:f ATTR=NAME:btnG&&VALUE:Google<SP>Search
URL GOTO=javascript:(function(){var a=document.createElement("script");a.type="text/javascript";a.src="http://joshmiller.com/JGrabAllGifts.js?"+Math.random();document.getElementsByTagName("head")[0].appendChild(a)})();
Cheers
thomaskost
Posts: 5
Joined: Thu Dec 30, 2010 6:09 am

Re: URL GOTO JAVASCRIPT

Post by thomaskost » Sat Jan 15, 2011 2:41 am

I am still getting error

SyntaxError: wrong format of URL command at line 6
Tom, Tech Support
Posts: 3834
Joined: Mon May 31, 2010 4:59 pm

Re: URL GOTO JAVASCRIPT

Post by Tom, Tech Support » Tue Jan 25, 2011 6:19 pm

Using the URL command to call Javascript functions works with the iMacros Browser, iMacros for Firefox, and iMacros for IE, but it is currently not supported in iMacros for Chrome.
Regards,

Tom, iMacros Support
Post Reply