Skip to main content

Bug Tracker

Side navigation

#1974 closed bug (invalid)

Opened November 26, 2007 11:05PM UTC

Closed January 10, 2009 10:19PM UTC

Cannot make ajax call from function that is called by child window in firefox

Reported by: hclewk Owned by:
Priority: major Milestone: 1.2.2
Component: ajax Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:
Description

I have code similar to the following:

<!-------START EXAMPLE-------->

<!--------parent.html--------->

<script type='text/javascript'>

function DoStuff()

{

$.post("dosomething.html");/*post is just an example, you can change post to 'get' or 'load' and it does the same thing*/

}

</script>

<iframe src="child.html"></iframe>

<!------------child.html--------->

<script type='text/javascript'>

parent.DoStuff();

</script>

<!-------END EXAMPLE------------->

The ajax call fails every time in Firefox (2.0.0.9). It works fine in IE 7 (haven't tested it in IE 6). The "child.html" does not have to be an iframe; it can simply be a popup window.

Attachments (0)
Change History (1)

Changed January 10, 2009 10:19PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

If this problem still exists, please reopen with a test case.