Load Page ONCE Then Loop?

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
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
jfj3rd
Posts: 43
Joined: Thu Dec 17, 2009 5:23 pm
Location: Riverside CA
Contact:

Load Page ONCE Then Loop?

Post by jfj3rd » Tue Jun 22, 2010 4:58 pm

Hello everyone,

I'm having trouble trying to figure out how to get Tab 2 to open only once & stay open. It keeps getting sucked into the loop process which I don't want to happen.

Can anyone point me in the right direction?

Code: Select all

VERSION BUILD=6650406 RECORDER=FX
SET !REPLAYSPEED FAST
SET !EXTRACT_TEST_POPUP NO
SET !ERRORIGNORE YES

' --- This is the tab I want to remain consistently open and never updated
 
TAB OPEN
TAB T=2
URL GOTO=http://www.domain.com...


' --- Specify input file (if !COL variables are used, IIM automatically assume a CSV format of the input file
'CSV = Comma Separated Values in each line of the file
CMDLINE !DATASOURCE C:\Documents...\Desktop\40.csv
'Number of columns in the CSV file. This must be accurate!
SET !DATASOURCE_COLUMNS 1
'Start at line 1 to skip the header in the file
SET !LOOP 2
'Increase the current position in the file with each loop 
SET !DATASOURCE_LINE {{!LOOP}}

' --- Go to new CRMID ---
TAB T=1 
URL GOTO=http://...ID={{!COL1}}

' --- Grab Site Type from CRM ---
TAG POS=1 TYPE=TD ATTR=TXT:Site<SP>Type<SP>   
TAG POS=R1 TYPE=SELECT FORM=NAME:Form1 ATTR=ID:ddlSiteTypeID EXTRACT=TXT

' ---- Add to Text Area ----

TAB T=2
TAG POS=1 TYPE=TEXTAREA ATTR=NAME:S1 CONTENT={{!COL1}},<SP>{{!EXTRACT}}<BR>
SET !EXTRACT NULL

--

Warmest Wishes,

John F. Jones III
Tom, Tech Support
Posts: 3513
Joined: Mon May 31, 2010 4:59 pm

Re: Load Page ONCE Then Loop?

Post by Tom, Tech Support » Tue Jul 13, 2010 11:45 am

Hi John,

You'll need to split this up into two different macros and then tie it all together with a bit of javascript.
Regards,

Tom, iMacros Support
Post Reply