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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:27:44+00:00 2026-05-22T00:27:44+00:00

in my ASP.NET application I use a MasterPage and an iFrame for the content

  • 0

in my ASP.NET application I use a MasterPage and an iFrame for the content part of the application (there is also a sidebar and menubar out of the iFrame).

My goal is to insert a jQuery/javascript function to intercept which <select> element gets the focus within the child iFrame.

Both MasterPage and iFrame are part of the same application and the iFrame does not open external pages, but .aspx pages of the application, hence same domain.

But anyway the “focus” event seems to be not working, since the inner code is not executed.

Here is the function:

$("#tabFrame").load(function() {
    $("#tabFrame").contents().find("SELECT").focus(function() {
        alert('focus on');
    }).change(function() {
        $.ajax({
            type: "POST",
            url: "../WebService/registerChanges",
            dataType: "json",
            contentType: "application/json; charset=utf-8",
            data: JSON.stringify({
                controlName: dropDownId
            }),
            success: function(data) {
                var result = JSON.parse(data.d);
                if (result.Success) {
                    alert("Successfully found.");
                }
            }
        })
    })
})

Since the function itself is correct, I guess there are some issues trying to access the inner IFrame from outside, but I cannot figure out which ones.

Any suggestions? (I use IE8 as browser)

Thanks.

  • 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-22T00:27:45+00:00Added an answer on May 22, 2026 at 12:27 am

    Now it works:

    • Initially problems were due to the IFrame, since I tried to access it before it was loaded. With $(“#tabFrame”).load() function it was accessed at the right time.

    • After that a missing jQuery reference (JSON) was at the origin of the problem 🙁
      But making a step behind and put simply alert instead of a WebService call, I could manage this.

    The code above is the working version.

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

Sidebar

Related Questions

I want to use an IFrame in my ASP.Net MVC application, yet I want
I'm developing ASP.net application which use web services. There are no data base connections
We are in the process of migrating our ASP.NET application to use Jquery instead
I need my ASP.NET web application to use silverlight controls in my web page.
I create new ASP.NET web application that use SMTP to send message. The problem
We have a ASP .Net application whereby we use Log4Net to log details within
I'm trying to convert an ASP.NET web application to use resource files. I haven't
In an ASP.NET (2.0) application I use FormsAuthentication. In the Global.asax / Application_AuthenticateRequest method
For my ASP.NET MVC 2 application I use Entity Framework 1.0 as my data
Is it better to use NGEN an ASP.NET application when we know it is

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.