473,320 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

HTTPS - Window. code not working anymore

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

Jul 21 '05 #1
1 1529
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

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
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...
1
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...
1
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...
1
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...
7
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...
1
by: ksuralta | last post by:
Hi everyone, Hope somebody can help me with this. I have a framed window. -------------------------------- Frame 1 -------------------------------- | 2 | Frame 3
1
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,...
6
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...
0
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
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...
1
isladogs
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...
0
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...
0
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.