You are not logged in.
I would like to open my own window when i click on the icon for adding new images. But I can't.
From file XinhaCore.js, there is line of code which starts with this.URIs. I have modified it (whole modification is not here, because it is large piece of code, only the important piece of code is here, which consists of path for opening window after clicking icon for adding new images):
this.URIs={"insert_image":"http://127.0.0.1/mysite/administration/Xinha_0.95_RC2/popups/insert_image.php?kostur_grupa=\" + global_a + \"&lan_path=\" + lan_path + \"&g_projekt=\" + g_projekt, editdoc, \"resizable: no; help: no; status: no; scroll: no; dialogWidth:680px;\"};
With this path, after "insert_image":" I can open new window, but I'm getting an error that globalDoc has no properties and can't access that window. Notice that in my path there is a script insert_image.php. (That is file that doesen't have nothing with Xinha, I created it myself, and it worked on previous html editor on browsers. But now I need a new editor.) In there, there is javascript stuff which is needed when window is opened via javascript command showModalDialog. globalDoc is declared in that file - insert_image.php - and holds declaration for function showModalDialog.
If I change above code in this, I'm not getting an error, because I can't even open new window: this.URIs={"insert_image":showModalDialog(_editor_url +"http://127.0.0.1/mysite/administration/Xinha_0.95_RC2/popups/insert_image.php?kostur_grupa=\" + global_a + \"&lan_path=\" + lan_path + \"&g_projekt=\" + g_projekt, editdoc, \"resizable: no; help: no; status: no; scroll: no; dialogWidth:680px;\");"};
I presune that I can't even open new window only with showModalDialog, because only in that way I can choose images from my CMS administration becasuse of parameters in file insert_image.php which I require.
How could I open the new window with correct path, that would't throw an error, and would work?
I want to put a command for opening a new window in that line of code that starts with 'this.URIs', but that seems to be impossible because it never works.
Can anybody help me?
Would really apreciate your help.
Sorry for my English, Dario, Croatia
Last edited by darinkow (2008-05-07 02:46:47)
Offline