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

  • Home
  • SEARCH
  • 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 6138371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:51:45+00:00 2026-05-23T17:51:45+00:00

I have a problem with the Mootools get method and IE8. This is the

  • 0

I have a problem with the Mootools get method and IE8. This is the thing.

I have a select combo that loads dynamically the options with a Request.HTML

HTML:

<select name="model" id="model" class="customSelectModel">
    <option>Modelo</option>
</select>

Javascript:

var req = new Request.HTML({
        method: 'get',
        url: loadModels,
        data: "model="+model,
        update: $('model'),
}).send();

Also, the select has a custom style, with this: http://vault.hanover.edu/~stilson/simpleselectstyle/

The problem is when I load the content of model, IE throw me an error:

Object doesn’t support this property or method.

I don’t know why, but

span.addEvent('change',function(){
     span.set('text',this.options[this.options.selectedIndex].get('text'));
});

does not work with IE8 (as usually, it works perfectly with the other browsers) . I’m using Mootools 1.3.2

Any ideas? Thanks a lot.

  • 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-05-23T17:51:46+00:00Added an answer on May 23, 2026 at 5:51 pm

    you cannot update <select> elements content via innerHTML in a cross-browser fashion, which the update: $("model") will try to do.

    I would suggest refactoring via an onComplete: function() {} where you:

    • delete all child elements of model
    • iterate through options elements sent via HTML and inject them into the model
    • call whatever method your custom styling provides (if it has any) to freshen object members for model and fireEvent("change") to highlight your new selected choice for scripting, if you need it.

    for your second question.

    this.options.get("value") returns selected value.

    if its a multiple select, it can have more than 1 value.

    mootools provides selectel.getSelected() which returns an array of options you can iterate to get text from. hence:

    selectel.getSelected().get("text") will return ["sometext"] or ["sometext1", "sometext2"] on a multiple select.

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

Sidebar

Related Questions

I have this class method in a mootools class: getData : function(){ var r
I have problem with this method in NLog library: NLog.Targets.Wrappers.AsyncTargetWrapper.ProcessPendingEvents(object state) It consume too
Issue: I have a Mootools Request object which sends a GET request to a
I'm new to Mootools and I'm stuck on the following problem. I have this
I have problem in some JavaScript that I am writing where the Switch statement
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
So I have a bit of a problem. When I ask MooTools to send
Suppose we have the xhr 'POST' request that returns 'redirect' status code. In that
I noticed that sometimes(randomly) my Mootools ajax request gets send twice. The second request
I am moving from jQuery to MooTools (for the fun..) and I have this

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.