Hi all!
I've been working on this wysiwyg editor. You can make links from texts or pictures. After selection you can click "link" button and a window opens using "showModalDialog". In this window you can define the name of the link, its alignment and url (editor is freeware; FCKeditor). You choose the path to the linked file by clicking another button...which opens another window showing all the files stored to the server.
Now you choose the file you want to by clicking it and the url goes into the showModaldialog window, into the url field. This works just fine.
Like this:
window.opener.setImage(Tex
t);
and setImage:
function setImage(sImageURL)
{
FormInputText.txtURL.value
= sImageURL ;
}
When I try this using IE5.0 it doesn't work. Nothing happends, not even error messages. Window.opener won't work.
But I got it working like this:
window.setImage(Text);
But :D
Now there's a new feature in the editor. When choosing the linked files, you can decide whether the linked file is uploaded image or file, or link to your own page. This happends just switching between two views, which both load in this same window. When I switch the view window.setImage(Text) quits working in IE5.0. It works fine in IE6.
(when opening the window it goes straight into choosing the linked files and now my script works...when I switch into mode where I choose to link into my own page it won't work...even if switch back. Works fine in IE6. )
My question is a mess and I'm tired? :/
Can anyone tell how should I use window.opener in IE5.0. This application should be able work under IE5.0 as well.
jell-o
Start Free Trial