Hi. I'm trying to work around a problem and I was hoping to get some input from folks who are a bit more knowledgeable then me in this regard.
I have an application that some people in my company access via WebVPN, a service on the Cisco VPN concentrators.
A portion of this application uses js to do some stuff. One particualar element of this "stuff" writes some html into a pop-up window with document.write, but my vpn concentrator replaces document.write with webvpn_document_write and I think this is a known bug so I'm trying to work around the bug.
Here is the original code, as it sits on the server.
This is what it looks like when the concentrator mangles it.
Does anyone have any suggestions?
I have an application that some people in my company access via WebVPN, a service on the Cisco VPN concentrators.
A portion of this application uses js to do some stuff. One particualar element of this "stuff" writes some html into a pop-up window with document.write, but my vpn concentrator replaces document.write with webvpn_document_write and I think this is a known bug so I'm trying to work around the bug.
Here is the original code, as it sits on the server.
Code:
function signHandler(result){
if (result != "OK") return;
self.frames['submitFrame'].document.open("text/html");
self.frames['submitFrame'].document.write("<html><body><form id='signForm' method='post' action='/DeltekTC/TimeCollection.msv'>" +
"<input type='hidden' name='unit' value='TsSign'>" +
"<input type='hidden' name='event' value='open'>" +
"</form></body></html>");
self.frames['submitFrame'].document.close();
var signForm = self.frames['submitFrame'].document.getElementById('signForm');
top.setFormSubmitted();
signForm.submit();
This is what it looks like when the concentrator mangles it.
Code:
function signHandler(result){
if (result != "OK") return;
self.frames['submitFrame'].document.webvpn_document_write=function(){
self.frames['submitFrame'].document.write()
}
self.frames['submitFrame'].document.open("text/html");
self.frames['submitFrame'].webvpn_document_write("<html><body><form id='signForm' method='post' action='/DeltekTC/TimeCollection.msv'>"+
"<input type='hidden' name='unit' value='TsSign'>"+
"<input type='hidden' name='event' value='open'>"+
"</form></body></html>",document);
self.frames['submitFrame'].document.close();
var signForm = self.frames['submitFrame'].document.getElementById('signForm');
top.setFormSubmitted();
signForm.submit();
}
Does anyone have any suggestions?