|
if i use the pop up window to select an image and click 'OK', the pop up window writes some javascript which seems to be screwing up the parent window's ability to post the data. once i click 'OK' in the pop image selection window, the pop up closes, but if i try to post the parent window's content, it just times out. furthermore, if i select an image from the pop up window and click OK, i can't even refresh the parent window (same problem - IE just won't reload the page). i've tried commenting out this section of code in RTE_popup_adv_image.asp:
If blnInsertImage Then ' Response.Write(vbCrLf & vbCrLf & " editor = window.opener.document.getElementById('WebWizRTE');") ' Response.Write(vbCrLf & vbCrLf & " img = editor.contentWindow.document.createElement('img');") 'Tell that we are an image ' ' Response.Write(vbCrLf & vbCrLf & " img.setAttribute('src', '" & strImageURL & "');") 'Set image attributes ' Response.Write(vbCrLf & " img.setAttribute('border', '" & intBorder & "');") ' If strImageAltText <> "" Then Response.Write(vbCrLf & " img.setAttribute('alt', '" & strImageAltText & "');") ' If lngHorizontal <> "" Then Response.Write(vbCrLf & " img.setAttribute('hspace', '" & lngHorizontal & "');") ' If intWidth <> "" Then Response.Write(vbCrLf & " img.setAttribute('width', '" & intWidth & "');") ' If intHeight <> "" Then Response.Write(vbCrLf & " img.setAttribute('height', '" & intHeight & "');") ' If lngVerical <> "" Then Response.Write(vbCrLf & " img.setAttribute('vspace', '" & lngVerical & "');") ' If strAlign <> "" Then Response.Write(vbCrLf & " img.setAttribute('align', '" & strAlign & "');") ' ' If RTEenabled = "Gecko" Then 'If this is Mozilla then we need to call insertElementPosition to find where to place the image ' Response.Write(vbCrLf & vbCrLf & " try{" & _ ' vbCrLf & " insertElementPosition(editor.contentWindow, img);" & _ ' vbCrLf & " }catch(exception){" & _ ' vbCrLf & " alert('" & strTxtErrorInsertingObject & "');" & _ ' vbCrLf & " editor.contentWindow.focus();" & _ ' vbCrLf & " }") ' Else 'Else this is IE so placing the image is simpler ' Response.Write(vbCrLf & vbCrLf & " try{" & _ ' vbCrLf & " editor.contentWindow.focus();" & _ ' vbCrLf & " editor.contentWindow.document.selection.createRange().pasteHTML(img.outerHTML);" & _ ' vbCrLf & " }catch(exception){" & _ ' vbCrLf & " alert('" & strTxtErrorInsertingObject & "');" & _ ' vbCrLf & " editor.contentWindow.focus();" & _ ' vbCrLf & " }") ' End If ' ' Response.Write(vbCrLf & vbCrLf & " editor.contentWindow.focus();") 'Set focus Response.Write(vbCrLf & " window.close();") 'Close window End If
as you can see, the only line of code left uncommented is the very last response.write to self close the pop up, but even this line will cause the parent window to stall out.
i'm on win2000 pro, IE 6.0.28, service pack 4. any ideas?
tks
|