Showing posts with label opening. Show all posts
Showing posts with label opening. Show all posts

Saturday, March 24, 2012

permission denied!

hi all

i am trying to use xmlHttp.open
while opening page A from a div in page B
i am using .net 2005 and my sites are on the different domains at
server
using the above function causes "permission denied" error
but when page A is on local host it works fine...
i call the function only with 3 parameters:
xmlHttp.open("GET", url ,true)
without username & password (i tried that too ofcourse)
can anyone tell me what's the problem?

thanx
wb

--
wild_bunch
----------------------
Posted via http://www.codecomments.com
----------------------XmlHttpRequest can only open sites in the same domain as the source of
the calling page.

if you need to call another domain, you will need to put a proxy page on
the calling domain.

-- bruce (sqlwork.com)

wild_bunch wrote:

Quote:

Originally Posted by

hi all
>
i am trying to use xmlHttp.open
while opening page A from a div in page B
i am using .net 2005 and my sites are on the different domains at
server
using the above function causes "permission denied" error
but when page A is on local host it works fine...
i call the function only with 3 parameters:
xmlHttp.open("GET", url ,true)
without username & password (i tried that too ofcourse)
can anyone tell me what's the problem?
>
thanx
wb
>
>
>
--
wild_bunch
----------------------
Posted via http://www.codecomments.com
----------------------
>

permission denied!

hi all
i am trying to use xmlHttp.open
while opening page A from a div in page B
i am using .net 2005 and my sites are on the different domains at server
using the above function causes "permission denied" error
but when page A is on local host it works fine...
i call the function only with 3 parameters:
xmlHttp.open("GET", url ,true)
without username & password (i tried that too ofcourse)
can anyone tell me what's the problem?
thanx
wb
quote:
Originally posted by wild_bunch
hi all
i am trying to use xmlHttp.open
while opening page A from a div in page B
i am using .net 2005 and my sites are on the different domains at server
using the above function causes "permission denied" error
but when page A is on local host it works fine...
i call the function only with 3 parameters:
xmlHttp.open("GET", url ,true)
without username & password (i tried that too ofcourse)
can anyone tell me what's the problem?
thanx
wb


my mistake its opening page B from a div in page A
XmlHttpRequest can only open sites in the same domain as the source of
the calling page.
if you need to call another domain, you will need to put a proxy page on
the calling domain.
-- bruce (sqlwork.com)
wild_bunch wrote:
> hi all
> i am trying to use xmlHttp.open
> while opening page A from a div in page B
> i am using .net 2005 and my sites are on the different domains at
> server
> using the above function causes "permission denied" error
> but when page A is on local host it works fine...
> i call the function only with 3 parameters:
> xmlHttp.open("GET", url ,true)
> without username & password (i tried that too ofcourse)
> can anyone tell me what's the problem?
> thanx
> wb
>
> --
> wild_bunch
> ---
> Posted via http://www.codecomments.com
> ---
>
quote:
Originally posted by bruce barker
XmlHttpRequest can only open sites in the same domain as the source of
the calling page.
if you need to call another domain, you will need to put a proxy page on
the calling domain.
-- bruce (sqlwork.com)
wild_bunch wrote:
> hi all
> i am trying to use xmlHttp.open
> while opening page A from a div in page B
> i am using .net 2005 and my sites are on the different domains at
> server
> using the above function causes "permission denied" error
> but when page A is on local host it works fine...
> i call the function only with 3 parameters:
> xmlHttp.open("GET", url ,true)
> without username & password (i tried that too ofcourse)
> can anyone tell me what's the problem?
> thanx
> wb
>
> --
> wild_bunch
> ---
> Posted via http://www.codecomments.com
> ---
>


i open another page on the same domain as A
but i still can't reach permission to change a from it although they are on
the same domain...
did i got the wrong idea from what you tried to say to me?
quote:
Originally posted by wild_bunch
i open another page on the same domain as A
but i still can't reach permission to change a from it although they are on
the same domain...
did i got the wrong idea from what you tried to say to me?


oh and by the way i have changed the permissions to max on both sites
also site A must be client side only!
thanx

Friday, March 16, 2012

persistent cookies

Hi

I could not understand FWIW persistent cookies checkbox
I was logged in, cookie was already recorded but after closing and opening browser I'm still being redirected to sigin.aspx page

any help would be appreciated

Is it possible to post your Login Code where the cookie is being made ?

sure, thanks
// Create a new ticket used for authentication
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(
1, // Ticket version
Username.Value, // Username associated with ticket
DateTime.Now, // Date/time issued
DateTime.Now.AddMinutes(30), // Date/time to expire
true, // "true" for a persistent user cookie
reader.GetString(0), // User-data, in this case the roles
FormsAuthentication.FormsCookiePath);// Path cookie valid for
Also I'm doing this into login button event handler:
...
FormsAuthentication.SetAuthCookie(txtUsername.Text, checkRemember.Checked);
...