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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:03:05+00:00 2026-06-09T04:03:05+00:00

I am calling a Javascript function located in my parent window from an Iframe

  • 0

I am calling a Javascript function located in my parent window from an Iframe located in the parent during an onkeyup event.
IE complains and the debugger built into IE8 stops and highlights the ‘if block’ within this code saying –
“Object doesn’t support this kind of property or method”

PS – This bit of code works in FF!

     <td class="grid" align="left">
     <input type="text" name="invqty${topitem.itemIdentifier}-<c:out value = "1"/>"
        id="invqty${topitem.itemIdentifier}-<c:out value = "1"/>" 
        value="0" 
        onFocus="this.select()" 
        onkeyup="if(!parent.validateFloat(this.id)) { this.value = '0'; } 
                 else { parent.updateBalance(${topitem.itemIdentifier}); }">
     </td>

Anyone have any ideas?

  • 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-09T04:03:06+00:00Added an answer on June 9, 2026 at 4:03 am

    Wow!!!
    So the issue was this –

    I had about 5 functions that I was defining within my iframe.
    They all were happening within a single ‘script block’

    One of these functions was using a “for each” loop. This one loop in one of those 5 functions caused IE to IGNORE the entire ‘script block’ where I was doing this. The kicker was that the debugger within IE8 was telling me the problem was on some bogus line number where it made me think that there was an issue with my iframe and how I was trying to define my JS functions. Finally, I gave up and went and asked somebody with a MAC to debug this using Safari. The Safari debugger nailed down the exact line with the for each loop. I commented that for each loop code out and IE started working too!

    Unbelievable!

    The developers for the IE8 Browser Debugger should be beaten over their wrists with a yard stick for their incompetence. I wasted 3 days on this.
    Kudos for the peeps at Apple.

    Lessons learned here –

    DON’T use “for each” loops when writing Javascript!
    DON’T use Microsoft IE branded debuggers! They are terrible and will waste your time.

    Thank you for your help Bergi and Nivas!

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

Sidebar

Related Questions

I have problem calling a JavaScript function in an iframe from the parent page.
I have the exact same requirement as in Javascript,calling child window function from opener
I want to calling a javascript function from a asp.net modal window using vb.
I'm calling a JavaScript function from an onclick event in a JSP page. <%
I am calling a Javascript function in my html page from a Flash movie
Possible Duplicate: calling ASP function from javascript okay running this code : <script type=text/javascript>
when i used onClientClick event for calling a javascript function in .aspx file. but
I'm calling out to javascript from a SL component using the HtmlPage.Window.Invoke api, when
I am calling the javascript window.open() function to load another url in a pop
I am calling a javascript function from .cs file which is as below: private

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.