Re: [AOLSERVER] whole file not sent from ns_returnfile

2001-04-10 Thread Dossy
Suggestion #1: Try using AOLserver 3.3.1 and see if the problem persists. This definitely sounds like a bug that has been fixed a long while back. - Dossy On 2001.04.09, Stephen Morley <[EMAIL PROTECTED]> wrote: > I have a test server in my office which responds to some requests by > returnin

Re: [AOLSERVER] Connect To SQL Server(NewBie)(Thanx)

2001-04-10 Thread Prakash Sinha
THANKS EVERYBODY WHO HELPED ME GET THIS DONE. ESPECIALLY TO FRANK. -Original Message- From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Tony Wells Sent: Tuesday, April 10, 2001 3:53 PM To: [EMAIL PROTECTED] Subject: Re: [AOLSERVER] Connect To SQL Server(NewBie) I use MyS

Re: [AOLSERVER] Connect To SQL Server(NewBie)

2001-04-10 Thread Tony Wells
I use MySQL, and it returns table.field as the key, I don't know about SQLserver but you might try: set table [ns_set get $row MQUser.name] >From: Prakash Sinha <[EMAIL PROTECTED]> >Reply-To: AOLserver Discussion <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: [AOLSERVER] Connect To SQ

Re: [AOLSERVER] Connect To SQL Server(NewBie)

2001-04-10 Thread Prakash Sinha
Hey Frank :) It worked now there is no error but it does not display records set db [ns_db gethandle] set sql "select * from MQUser" set row [ns_db select $db $sql]

Re: [AOLSERVER] conditional code in an ADP

2001-04-10 Thread ricard helene
Maybe this isn't good coding or whatever, but normally I do something like this: <% if {$condition} { set html [subst {hello i like to eat death}] } else { set html [subst {hello i don't like to eat death}] } # other code ns_puts $html %> It makes it somewhat easier to separat

Re: [AOLSERVER] Connect To SQL Server(NewBie)

2001-04-10 Thread Franclim FĂ©lix Bento
Hi, You need also this section: # # Server database pools # ns_section "ns/server/${servername}/db" ns_param Pools* ns_param DefaultPool "odbc_pool" I hope this helps... Frank -Original Message- From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Prakash S

Re: [AOLSERVER] conditional code in an ADP

2001-04-10 Thread Edmund Lian
On Tue, 10 Apr 2001 11:14:55 -0500, Alex Harvey wrote: >Yes I'd like to know about a different parser to do this. I've been using >ns_puts and ns_adp_include to get around this problem. > >Writing code like this is more difficult to maintain as I see it. Alex, I used to use Jeff's alternative p

Re: [AOLSERVER] conditional code in an ADP

2001-04-10 Thread Alex Harvey
Yes I'd like to know about a different parser to do this. I've been using ns_puts and ns_adp_include to get around this problem. Writing code like this is more difficult to maintain as I see it. - Original Message - From: "Rob Mayoff" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tue

Re: [AOLSERVER] conditional code in an ADP

2001-04-10 Thread Michael A. Cleverly
On Tue, 10 Apr 2001, Rob Mayoff wrote: > Note that "some HTML" and "some different HTML" must NOT contain any > <%...%> blocks. If you need nested <%...%> blocks, you'll need to use > multiple files and ns_adp_include. > > I think someone might have once written an alternate ADP parser that > le

Re: [AOLSERVER] conditional code in an ADP

2001-04-10 Thread Rob Mayoff
> Is it possible to conditionally include HTML within an ADP? Not the way you described. You have to use ns_adp_puts or ns_adp_include within the <% ... %> block. For example: <% if {condition} { ns_adp_puts { some HTML } } else { ns_adp_puts {

[AOLSERVER] conditional code in an ADP

2001-04-10 Thread Alex Harvey
Is it possible to conditionally include HTML within an ADP? Something like this is possible in ASP, PHP or JSP but I can't seem to get it to work correctly in my ADP. <% if {condition} { %> some HTML <% } else { %> some different HTML <% } # more script again %> If

[AOLSERVER] Connect To SQL Server(NewBie)

2001-04-10 Thread Prakash Sinha
I have these two files, config.tcl has been modified to accomodate Database Driver and Pooling config.tcl # # Database Pool # ns_section "ns/db/pool/odbc_pool" ns_param Driver"nsodbc" ns_param Connections "5" ns_param Datasource"wireless" ns_param User "Sprint" ns_pa

Re: [AOLSERVER] Multiple values for outputheader key - possible ?

2001-04-10 Thread Patrick Spence
- Original Message - From: "Chris Foote" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 10, 2001 1:12 AM Subject: Re: [AOLSERVER] Multiple values for outputheader key - possible ? > On Tue, 10 Apr 2001, Chris Foote wrote: > > > Sorry if this is a basic question, but I'm

Re: [AOLSERVER] Multiple values for outputheader key - possible ?

2001-04-10 Thread Chris Foote
On Tue, 10 Apr 2001, Chris Foote wrote: > Sorry if this is a basic question, but I'm new to AOLServer :-) Yep, it was a realy dumb question, posted before I checked out the error log :-( fix was not to use brackets around the statements in the ADP page - -i.e. <% gt_set_cookie CUSTID 0

[AOLSERVER] Multiple values for outputheader key - possible ?

2001-04-10 Thread Chris Foote
Sorry if this is a basic question, but I'm new to AOLServer :-) I'm trying to set multiple cookies in a response using 'ns_connect outputheaders', but only one cookie gets returned to the browser. e.g. ADP page: <% [gt_set_cookie CUSTID 0] [gt_set_cookie AUTHID 0] %> Tcl privat