JavaScript Dynamic dependent drop down list box

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
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
James Blake
Posts: 13
Joined: Tue Oct 18, 2011 11:29 pm

JavaScript Dynamic dependent drop down list box

Post by James Blake » Tue Oct 18, 2011 11:54 pm

Hi to All

I'm having trouble in Selecting a Value from JavaScript Dynamic dependent drop down list box
Here goes the URL
http://freeclassifiednow.com/index.php? ... d=add_form

The problem is that The City Drop down list is generated dynamically based on our country Selection. I've tried everything but it isn't working on This City Drop down list.
For the time being I have added a Prompt to ask user to select the City but that way is so error prone

I'll be highly Grateful if someone could help me
Here is my macro Code

Code: Select all

VERSION BUILD=6900210     
TAB T=1     
TAB CLOSEALLOTHERS 
SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO
SET !DATASOURCE 786ShortADadd_formSites.csv
SET !DATASOURCE_COLUMNS 1
SET !LOOP 1
URL GOTO={{!COL1}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:title CONTENT=
TAG POS=1 TYPE=TD ATTR=TXT:<SP>Please<SP>choose<SP>oneJob<SP>OfferedJob<SP>Wanted<SP>   
TAG POS=1 TYPE=SELECT FORM=NAME:f ATTR=NAME:jobtype CONTENT=1 
TAG POS=1 TYPE=SELECT FORM=NAME:f ATTR=NAME:type CONTENT=2
TAG POS=1 TYPE=SELECT FORM=NAME:f ATTR=NAME:type CONTENT=$Job<SP>Offered 
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:price CONTENT=N/A 
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:company CONTENT=http://www.aiousoft.com 
TAG POS=1 TYPE=SELECT FORM=NAME:f ATTR=NAME:country CONTENT=$India
FRAME F=3     
PROMPT Hi!<BR>Please<SP>Select<SP>the<SP>City<SP>Manually<SP>From<SP>The<SP>City<SP>DropDownList.<SP><BR>Its<SP>a<SP>Sort<SP>of<SP>Captcha.<BR>Press<SP>Ok<SP>here<SP><BR>Then<SP>Select<SP>City<SP>from<SP>the<SP>DropDownList<SP><BR>Once<SP>Ok<SP>Is<SP>Pressed<SP>,<SP><SP>Software<SP>Will<SP>Wait<SP>for<SP>7<SP>Seconds<SP>for<SP>Your<SP>Selection<SP>of<SP>City<SP>from<SP>the<SP>Dropdownlist<SP>
WAIT SECONDS=7
'TAG POS=1 TYPE=SELECT FORM=NAME:NoFormName ATTR=ID:tcity CONTENT=*<SP>* 
FRAME F=0 


Waiting anxiously for reply
Hannes, Tech Support

Re: JavaScript Dynamic dependent drop down list box

Post by Hannes, Tech Support » Fri Oct 21, 2011 8:38 am

Using the latest 7.50 release, I recorded the following macro that replays just fine:

Code: Select all

VERSION BUILD=7501723
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://freeclassifiednow.com/index.php?ct=job23&md=add_form
TAG POS=1 TYPE=SELECT FORM=NAME:f ATTR=NAME:country CONTENT=%France
FRAME F=5
TAG POS=1 TYPE=SELECT ATTR=ID:tcity CONTENT=%Paris
James Blake
Posts: 13
Joined: Tue Oct 18, 2011 11:29 pm

Thanks a lot Hannes

Post by James Blake » Sat Oct 22, 2011 10:51 pm

Hi

I don't know how to thank you

You guys are as Brilliant as Your Software

Thanks again

May God Bless you and Your team

Bye
Post Reply