Bug Tracker

Ticket #1974 (new bug)

Opened 9 months ago

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

Reported by: hclewk Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.2 Component: ajax
Version: 1.2.1 Keywords:
Cc: Needs: Review

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

Note: See TracTickets for help on using tickets.