Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9008479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:56:49+00:00 2026-06-16T01:56:49+00:00

I’m working on a scraper just to take data out of 3 select boxes

  • 0

I’m working on a scraper just to take data out of 3 select boxes in a third-party website running on ASP.NET, but the problem here is that they are cascading (not sure if this is how it’s called). So what appears in the second select input depends on what’s selected in the first one, and I want to get all the possibilities so I can store them.

My problem:

I’m having a hard time figuring how to trigger the change (or whatever) event so it updates the second input. How can I do it?

I’m using casperjs to do this btw, but it doesn’t matter, I just need a way to do it programmatically from the frontend javascript.

So, if it works in the chrome console it will work for me.

The form is in this page http://www.tuti.pt/contrat/net/default.aspx and the inputs I’m talking about are the ‘Distrito’ and ‘Concelho’.

Sorry for the long read but I think I couldn’t hide more details.

What I’ve tried?

The usual thing, I really thought .click() would work but not, it didn’t so it should be some asp.net special event.

Then I’ve placed a break and it seems this particular peace of stack seems interesting to find what I need.

Sys.Extended.UI.CascadingDropDownBehavior._clearItems (default.aspx:13)
Sys.Extended.UI.CascadingDropDownBehavior._setOptions (default.aspx:13)
Sys.Extended.UI.CascadingDropDownBehavior._onParentChange (default.aspx:13)
w.createDelegate (ScriptResource.axd:2)
w.addHandler.b.query.each.g (ScriptResource.axd:2)

If someone has knowledge on this I would appreciate to have some help on it.

I just saw there seems to be a method that could be what I’m looking for: raiseSelectionChanged(eventArgs). I just don’t know in what object should I call it and what args should I pass :s

This last info took from http://www.asp.net/ajaxlibrary/act_CascadingDropdown.ashx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:56:50+00:00Added an answer on June 16, 2026 at 1:56 am

    So, still not found how to trigger the event, actually now I doubt it’s even possible… Maybe if there is a way to get the object Sys.Extended.UI.CascadingDropDownBehavior responsible for that select input, but I have no idea how to do that.

    My solution for now is to use the Web Service used by that ‘library?’ to update the inputs. I found the url for it inspecting he object in Chrome console. Just created a break point for when the second input is changed and when changing the first select it stops there. Then I inspected the CascadingDropDownBehavior object that was in the locals, and found the web service url in _serviceMethod 😀

    Update:

    Ok, so at the end I just programmed a lil ruby script to fetch from the API/WS wich was pretty simple and easy, since there seems be no way to trigger the events from the javascript browser runtime.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I used javascript for loading a picture on my website depending on which small
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to select an H1 element which is the second-child in its group
I know there's a lot of other questions out there that deal with this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want to construct a data frame in an Rcpp function, but when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.