Spoon
07-29-2002, 05:20 PM
Hi guys,
Can someone help me with the following:
I have a piece of code that opens a window that has asp and javscript in it (dont worry the asp doesnt do much!).
Here is my code to actually open the window:
function insertImage()
{
if (isHTMLMode){alert("Please uncheck 'Edit HTML'");return;}
idContent.focus();
idContent.document.selection.createRange();
upload_img = showModalDialog("pop_rte_image.asp","","status:no;dialogWidth:400px;dialogHeight:200px;help:no" );
if (upload_img) {
idContent.focus();
var sel = idContent.document.selection.createRange();
sel.pasteHTML(upload_img);
}
}
However there is a form in the window(upload_img = showModalDialog("pop_rte_image.asp","","status:no;dialogWidth:400px;dialogHeight:200px;help:no" );) i open and when it is submitted for some reason a new window is opened. I cant get it so that the window submits the form in itself.
Can this be done? how do i fix it? plzzzzz :)
Can someone help me with the following:
I have a piece of code that opens a window that has asp and javscript in it (dont worry the asp doesnt do much!).
Here is my code to actually open the window:
function insertImage()
{
if (isHTMLMode){alert("Please uncheck 'Edit HTML'");return;}
idContent.focus();
idContent.document.selection.createRange();
upload_img = showModalDialog("pop_rte_image.asp","","status:no;dialogWidth:400px;dialogHeight:200px;help:no" );
if (upload_img) {
idContent.focus();
var sel = idContent.document.selection.createRange();
sel.pasteHTML(upload_img);
}
}
However there is a form in the window(upload_img = showModalDialog("pop_rte_image.asp","","status:no;dialogWidth:400px;dialogHeight:200px;help:no" );) i open and when it is submitted for some reason a new window is opened. I cant get it so that the window submits the form in itself.
Can this be done? how do i fix it? plzzzzz :)