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
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
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
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]
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
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
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
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
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
> 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 {
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
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
- 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
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
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
15 matches
Mail list logo