Hi
I have an .NET web application where I redirect a page on submit to a blank page where the code below runs client side.
I want to, with this code, refresh two frames - the one my page was opened in and another frame loading a list of items assigned to me.
This code was working 100% until we chnaged the site to a secure site (HTTPS) - now it seems that I cannot use window. anumore in code.
Does anyone know who I can overcome this issue?
Thanks
Tersia Ehlert
function window_onload()
' Sets variable equal to obj - worklist.aspx
dim workspacePage
dim itemClosedPage
workspacePage = "k2v3/workspace/worklist.aspx"
itemClosedPage = "k2v3/workspace/worklist/itemclosed.aspx"
'// Find where the parent application (K2.net Workspace) was installed and
'// and get the ItemClosed.aspx location
dim loc
on error resume next
loc = LCase(window.parent.location.toString())
if err.number > 0 then
'// Cannot continue
loc = "ERROR"
end if
'Check if this pages is housed inside the K2.net workspace
if instr(1, loc, workspacePage) > 0 then
dim newloc
newloc = Replace(loc, workspacePage, itemClosedPage)
'// Display the ItemClosed.aspx page
window.location = newloc
'// Refresh the WorkList frame in the K2.net Workspace
dim itmFrame
set itmFrame = window.parent.frames("ItemsFrame")
itmFrame.location.reload
else
window.close
end if
End Function 2 1328
This is probably security related. Try it with your web site in Trusted
Sites. The browser security settings may be preventing you from doing
anything malicious(useful).
"Tersia Ehlert" wrote: Hi
I have an .NET web application where I redirect a page on submit to a blank page where the code below runs client side.
I want to, with this code, refresh two frames - the one my page was opened in and another frame loading a list of items assigned to me.
This code was working 100% until we chnaged the site to a secure site (HTTPS) - now it seems that I cannot use window. anumore in code.
Does anyone know who I can overcome this issue?
Thanks Tersia Ehlert
function window_onload()
' Sets variable equal to obj - worklist.aspx
dim workspacePage
dim itemClosedPage
workspacePage = "k2v3/workspace/worklist.aspx"
itemClosedPage = "k2v3/workspace/worklist/itemclosed.aspx"
'// Find where the parent application (K2.net Workspace) was installed and
'// and get the ItemClosed.aspx location
dim loc
on error resume next
loc = LCase(window.parent.location.toString())
if err.number > 0 then
'// Cannot continue
loc = "ERROR"
end if
'Check if this pages is housed inside the K2.net workspace
if instr(1, loc, workspacePage) > 0 then
dim newloc
newloc = Replace(loc, workspacePage, itemClosedPage)
'// Display the ItemClosed.aspx page
window.location = newloc
'// Refresh the WorkList frame in the K2.net Workspace
dim itmFrame
set itmFrame = window.parent.frames("ItemsFrame")
itmFrame.location.reload
else
window.close
end if End Function
This is probably security related. Try it with your web site in Trusted
Sites. The browser security settings may be preventing you from doing
anything malicious(useful).
"Tersia Ehlert" wrote: Hi
I have an .NET web application where I redirect a page on submit to a blank page where the code below runs client side.
I want to, with this code, refresh two frames - the one my page was opened in and another frame loading a list of items assigned to me.
This code was working 100% until we chnaged the site to a secure site (HTTPS) - now it seems that I cannot use window. anumore in code.
Does anyone know who I can overcome this issue?
Thanks Tersia Ehlert
function window_onload()
' Sets variable equal to obj - worklist.aspx
dim workspacePage
dim itemClosedPage
workspacePage = "k2v3/workspace/worklist.aspx"
itemClosedPage = "k2v3/workspace/worklist/itemclosed.aspx"
'// Find where the parent application (K2.net Workspace) was installed and
'// and get the ItemClosed.aspx location
dim loc
on error resume next
loc = LCase(window.parent.location.toString())
if err.number > 0 then
'// Cannot continue
loc = "ERROR"
end if
'Check if this pages is housed inside the K2.net workspace
if instr(1, loc, workspacePage) > 0 then
dim newloc
newloc = Replace(loc, workspacePage, itemClosedPage)
'// Display the ItemClosed.aspx page
window.location = newloc
'// Refresh the WorkList frame in the K2.net Workspace
dim itmFrame
set itmFrame = window.parent.frames("ItemsFrame")
itmFrame.location.reload
else
window.close
end if End Function This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jon |
last post by:
I have links that open https secondary windows using:
window.open(url, windowName);
The windowName is always the same but I keep getting new windows. Is
it possible for each of the links to...
|
by: Ashutosh Bhalerao |
last post by:
Hi all,
I am trying to write a VB.Net application which communicates over SSL
with an IIS server. I have got a temporary certificate from Verisign
and installed it on IIS.
I am using...
|
by: Tersia Ehlert |
last post by:
Hi
I have an .NET web application where I redirect a page on submit to a blank page where the code below runs client side.
I want to, with this code, refresh two frames - the one my page was...
|
by: agusayala |
last post by:
Hi folks.
I have an application that generates and opens pdf files generated by
crystal reports. In my machine works fine (I'm not working with https
here), but when I put this application in...
|
by: GaryDean |
last post by:
I have a page that streams PDF documents using the code pasted below. The
Page displays the documents just fine but the user is left with no action
but to hit the back button on the browser which...
|
by: =?Utf-8?B?YzY3NjIyOA==?= |
last post by:
Hi all,
I am trying to set this up using asp code and IIS configuration. But it
seems not working. Here it is the way I am doing.
In IIS I set up a virtual directory with secure communication, I...
|
by: ksuralta |
last post by:
Hi everyone,
Hope somebody can help me with this.
I have a framed window.
--------------------------------
Frame 1
--------------------------------
|
2 | Frame 3
|
by: cbright |
last post by:
I have a very weird problem with our site at https://store.canoegame.com. For many users the site is working as it should however for a few it is not.
One of the bigger problems is the fact that,...
|
by: hpatel |
last post by:
Hi,
I maintain a website for my organization. Recently, for a login page,
I started using HTTPS. It works fine with HTTPS.
The problem I face is : When a user goes to login page, he sees the...
|
by: kmdshuaib |
last post by:
Hi,
I have created a web application, and i need the total web site to be in https. So i have written the below code in the Page Init of the Master Page to automatically redirect the site from...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |