Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Switching between http and https

Reply
Thread Tools

Switching between http and https

 
 
CS
Guest
Posts: n/a
 
      04-29-2005
I have two forms,1 is http and another is https. Https is a pop up form and
http is its opener.
Now, I want to pass back some data from Https side to its opener page but it
prompts message" permission denied."
Is it possible that i can refresh or pass back some data to the http page
from the Https side?


here's the code
RegisterStartupScript("save", "<script>try{window.opener.creditCard('" &
MemberPaymentID & "')}catch(e){var
frm=window.opener.frmMain;frm.MemberPaymentID.valu e='" & MemberPaymentID &
"';frm.Process.value='Save';frm.submit();} window.close();</script>")

 
Reply With Quote
 
 
 
 
Jason Brown [MSFT]
Guest
Posts: n/a
 
      04-29-2005
I don't think it'll work using javascript - under the security model (IIRC),
an SSL site and it's non-SSL counterpart are effectively two different
domains.

http and https are cordoned off for a reason, though - have you fully
considered the implications of bouncing data in and out of the secure area?
isn't it better to keep it all cordoned off?


--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no rights.

"CS" <> wrote in message
news:4C28F77D-95CB-483A-96D3-...
>I have two forms,1 is http and another is https. Https is a pop up form and
> http is its opener.
> Now, I want to pass back some data from Https side to its opener page but
> it
> prompts message" permission denied."
> Is it possible that i can refresh or pass back some data to the http page
> from the Https side?
>
>
> here's the code
> RegisterStartupScript("save", "<script>try{window.opener.creditCard('"
> &
> MemberPaymentID & "')}catch(e){var
> frm=window.opener.frmMain;frm.MemberPaymentID.valu e='" & MemberPaymentID &
> "';frm.Process.value='Save';frm.submit();} window.close();</script>")
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
switching between https and http Hemant ASP .Net 0 09-16-2009 02:07 PM
Best practises for switching between https and http pages in .NET Mike Tallman ASP .Net Security 0 11-22-2005 06:59 PM
Switching between http and https popping up a login box Tony Wright ASP .Net Security 0 05-28-2004 12:24 AM
Re: Switching Between HTTP and HTTPS Jerry III ASP .Net 0 10-15-2003 07:33 AM
Switching Between HTTP and HTTPS Kenneth Keeley ASP General 1 10-14-2003 03:40 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57