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 8384257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:21:43+00:00 2026-06-09T17:21:43+00:00

I have an aspx page PopupReference. I am having Tridion control button and few

  • 0

I have an aspx page PopupReference. I am having Tridion control button and few asp controls too, like asp:ddSelectOption (Dropdown).

So in Popupreference.js as we are creating event handler for Tridion button I am trying to create the same for my asp controls as below:

This is Tridion button:

c.InsertButton = $controls.getControl($("#InsertButton"), 
                                      "Tridion.Controls.Button");

This is my dropdown:

c.ddSelectOption = $("#ddSelectOption");

Event handler for tridion button:

$evt.addEventHandler(c.InsertButton, "click", this.getDelegate(this._execute));

Event handler for my dropdown:

$evt.addEventHandler(c.ddSelectOption, "onselectedindexchanged",
                     this.getDelegate(this._ondropdownitemchanged));
console.log('eventhandler created');

I am calling the function :

RTFExtensions.Popups.PopupReference.prototype._ondropdownitemchanged = 
                      function PopupReference$_ondropdownitemchanged(event) {
  Console.log('Initializing inside dropdown...');
};

But I am not able to see the last log anywhere, I think its not getting inside the function ondropdownitemchanged(event). Does anyone have any clue how I can make this happen?

  • 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-09T17:21:45+00:00Added an answer on June 9, 2026 at 5:21 pm

    I suspect your onselectedindexchanged event needs to be a change?

    I’ve implemented something similar using a drop down, here are the pieces from my code. I hope this helps you to find your solution:

    1) In the html / aspx page:

    <select id="systemDD"></select><label for="systemDD">Select a system</label>
    

    2) In your JavaScript:

    var p = this.properties;
    var c = p.controls;
    
    // the the drop down items
    c.SystemDropDown = $("#systemDD");
    

    Adding the event handler:

    $evt.addEventHandler(c.SystemDropDown, "change",
                         this.getDelegate(this._systemDropDownChanged));
    

    The method:

    EditorName.prototype._systemDropDownChanged = 
    function EditorName$Extensions$EditorName$_systemDropDownChanged() {
        var p = this.properties;
        var c = p.controls;
        // get the selected system value
        var selectedSystem = $j(c.SystemDropDown).val(); 
    
    };
    

    I’d tackle it in the following ways:

    1. When you get the dropdown element, check that you have it as an object
    2. Try changing onselectedindexchanged to just ‘change’
    3. A strong alcoholic drink 🙂

    Good luck

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

Sidebar

Related Questions

I have an aspx page with a few textboxes and a submit button. Once
I have an aspx page with three web controls: one to control the List
I have an ASPX page with two RequiredFieldValidator and a button to go to
I have a aspx page that has a UpdatePanel and a asp timer. the
I have a .aspx page that loads three separate .ascx controls to represent adding,
I have an aspx page with repeater control on it used for showing the
i have an aspx page and two textbox and a button on it.I want
I have an ASPX page (with VB Codebehind). I would like to extend the
I have an .aspx page with a databound multi-select jquery dropdown. This works nicley
i have a aspx page with two buttons,close and submit button.when i press the

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.