开发者

ajax from iframe to my document

im trying to get my iframe ajax script to change the content of a div into the main document wich is not an iframe. just the document.

To send into my iframe i use

parent.frames[user].document.getElementById(box).innerHTML=xhr.responseText;

user is the iframe name

开发者_Python百科How do i send stuff back to my document from the iframe??

UPD

I figured out that its not working with IE compatibility. Its working with other browsers with this line

parent.document.getElementById(box).innerHTML=xhr.responseText;

Notice how there is no frame.

The funy thing is that its woking in all browsers if i catch the event on a div but if i try to catch the event on a form button its not !!


parent.document.getElementById(box).innerHTML=xhr.responseText;

This is working in my case

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜