 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
server Guest
|
Posted: Wed Dec 14, 2005 8:54 pm Post subject: IE Close (X) button |
|
|
message unavailable |
|
| Back to top |
|
 |
Jon Lennart Aasenden Guest
|
Posted: Wed Dec 14, 2005 8:54 pm Post subject: Re: IE Close (X) button |
|
|
It is a parameter in the window() method in javascript.
It allows you to define what buttons you need.
It has nothing to do with server side scripting.
Jon Lennart Aasenden
"DB" <david_dot_brookes+at_interserveprojects_dot_com> wrote in message
news:436f8589$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi
Does anyone know a way of disabling the IE "X" (close) button at the top
right hand edge of the form ?
I know how to do this when using Delphi forms, I'd like to know if it's
possible within IE.
Regards
Dave
Ps appologies for the multiple post. I originally posted this to
borland.public.bes.web, but I then noticed that no one seems to have been
there for a while.
|
|
|
| Back to top |
|
 |
Ray Guest
|
Posted: Fri Feb 10, 2006 10:03 am Post subject: RE: Http Redirect - How to redirect to other URL with proxy? |
|
|
Hi All,
I have created a project as WebServer Application in ISAPI.
Writing a redirector but can't find and property for proxy server.
Please advise.
Here comes my code in my action:-
procedure TwmMain.wmMainwaLogoutAction(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
Var reqURL, xDoc : string;
begin
reqURL := format('http://%s:%d/cronus/logout.jsp', [lTransactionURL,
lTransactionPort]);
xDoc := Request.QueryFields.Values['Input'];
Response.HTTPRequest.WriteString('Input=' + xDoc);
Response.HTTPRequest.ContentType := 'application/x-www-form-urlencoded';
Response.HTTPRequest.Accept := 'en';
Response.HTTPRequest.Connection := 'Keep-Alive';
Response.HTTPRequest.CacheControl := 'no-cache';
Response.SendRedirect(reqURL);
end;
Thanks in advance,
Ray |
|
| Back to top |
|
 |
David M Guest
|
Posted: Wed Mar 01, 2006 7:03 am Post subject: Re: TeamB Help!!![Fwd: Login Dialog in WebSnap] |
|
|
Known problem with Apache and authorization
See
http://groups.google.com/group/borland.public.delphi.internet.isapi-webbroker/browse_thread/thread/1b0bb3992ff50ae7/6274d466aae3d77b?lnk=st&q=basic+apache+authorization+delphi&rnum=1&hl=en#6274d466aae3d77b
On Thu, 01 Jul 2004 14:38:21 -0500, David Keith
<dkeith (AT) no (DOT) logisticshealth.spam.com.remove.this> wrote:
| Quote: | I've done a lot more testing, mostly with a cgi app, again using apache
2.049/win and AnalogX Simple Server. It seems that neither websnap nor
webbroker see any data coming back from the browser when you type in
your name and password and press 'ok'. I'm wondering if more needs to be
set in the initial response. Regardless, I can't figure out why the
beforeDispatch event sees no Request.Authorization data when the
authenticated request comes in.
Help! This is holding up my project!
Thanks in advance.
David Keith
-------- Original Message --------
Subject: Login Dialog in WebSnap
Date: Sun, 27 Jun 2004 12:23:57 -0800
From: Davey <dkeith2 (AT) removethisnospam (DOT) yahoo.com
Newsgroups: borland.public.delphi.internet.websnap
I've been attempting to write a simple function into a
websnap app that only uses the following two components:
TWebAppComponents
TWebDispatcher
...to prompt a user entering a site to enter a password.
After three unsuccessful attempts the user's request will be
bounced to an error page.
My initial efforts have followed an example I found on
Borland's community site that is for Delphi 5 & webbroker.
However I'm using the same basic approach and hoped it would
work with D7/K3 and websnap.
When I test the code below it works with the WebAppDebugger,
but does not work with AnalogX Simple Server nor Apache
2.049. Every time I enter a username and password, and press
'ok' it prompts me again, over and over. IE apparently has a
built in feature that quits after three tries, but netscape
and opera keep on going forever. I've tried this with a cgi
exe and an apache dso, in addition to the WebAppDebugger
project. Again the WAD works fine, but the dso & cgi fail
with both servers.
The code is listed below. Anyone ever used this
approach/have any ideas?
Also, how do I get rid of the checkbox on the login dialog
so that users can't save their password?
Thanks.
David Keith
procedure TPageProducerPage2.WebDispatcher1WebActionItem1Action(
Sender: TObject; Request: TWebRequest; Response:
TWebResponse;
var Handled: Boolean);
var
mAuthorization: string;
begin
if Request.Authorization = '' then
begin
response.StatusCode := 401;
response.WWWAuthenticate := 'basic realm="login"';
//Handled := True;
end
else
begin
if not Assigned(FBase64) then
FBase64 := TBase64.Create;
FBase64.DecodeData(Copy(Request.Authorization,6,Length(Request.Authorization)),
mAuthorization);
Response.Content := '<HTML><BODY>'
+ '<P>User Name: '
+
Copy(mAuthorization,1,pos(':',mAuthorization) - 1)
+ '</P><P>Password: '
+
Copy(mAuthorization,pos(':',mAuthorization) +
1,Length(mAuthorization))
+ '</P></BODY></HTML>';
end;
end; |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|