#1  
Old 22nd October 2010, 05:07 AM
jprenou
 
Posts: n/a
Default Comments in nxscript pages


Hello,

I try to put some comments in my nxscript page but my comments seems to
be interpreted like include file
Is there a way to put comments in a nxscript page ?

Thanks


--
jprenou
  #2  
Old 22nd October 2010, 07:13 AM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: Comments in nxscript pages

> I try to put some comments in my nxscript page but my comments seems to
> be interpreted like include file
> Is there a way to put comments in a nxscript page ?
>
> Thanks


Within the code blocks (between <% and %>) you should be able to simply use //
or {}. Within the html area you need to use the standard <!-- --> syntax.
Checkout index.nxscript in the adminroot folder for some examples.

--

Hannes Danzl / NexusDB

Manuals - http://www.nexusdb.com/support/index..._manual_v3.htm
Issue Tracker - http://www.nexusdb.com/mantis/view_all_bug_page.php
Newsgroup Web Gateway - http://www.nexusdb.com/forums/
Newsgroup Search - http://www.nexusdb.com/forums/search.php
  #3  
Old 23rd October 2010, 03:44 AM
jprenou
 
Posts: n/a
Default Re: Comments in nxscript pages


Hello Hannes

Inside <% %> the // and {} work perfect.
Inside HTML, <!-- --> don't work, it seems the parser search to include
my comment as a file

Thanks

JP


--
jprenou
  #4  
Old 23rd October 2010, 12:59 PM
Eivind Bakkestuen [NDD]
 
Posts: n/a
Default Re: Comments in nxscript pages

> Inside <% %> the // and {} work perfect.
> Inside HTML, <!-- --> don't work, it seems the parser search to
> include my comment as a file


Can you show your file that doesnt work? As Hannes says, there are <!--
--> examples plenty in our supplied scripts and they seem to work.

--
Eivind Bakkestuen [NDD]
Nexus Database Systems
  #5  
Old 27th October 2010, 07:09 AM
jprenou
 
Posts: n/a
Default Re: Comments in nxscript pages


Hi,

Try this


Code:
--------------------
<%
begin
%>
<!--#INCLUDE FILE="header.html"-->
<!-- This is a HTML comment -->
<!--#INCLUDE FILE="footer.html"-->
<%
end.
%>
--------------------


header.html contains <html><body> and footer.html contains
</body></html>

Regards,

JP


--
jprenou
  #6  
Old 29th October 2010, 01:15 PM
jprenou
 
Posts: n/a
Default Re: Comments in nxscript pages


Hello,

Do I do something wrong with this ?

Thanks

Jp


--
jprenou
  #7  
Old 30th October 2010, 10:46 AM
jprenou
 
Posts: n/a
Default Re: Comments in nxscript pages


Nobody can help me on this ?

Second question: Is here a way to personalize 404 and 500 pages with the
nx web application ?

Thanks

JP


--
jprenou
  #8  
Old 30th October 2010, 11:10 AM
Eivind Bakkestuen [NDD]
 
Posts: n/a
Default Re: Comments in nxscript pages

> Nobody can help me on this ?

Hannes will when he gets around to it. Sorry, we've been busy working
on the next update.


--
Eivind Bakkestuen [NDD]
Nexus Database Systems
  #9  
Old 6th November 2010, 12:01 AM
jprenou
 
Posts: n/a
Default Re: Comments in nxscript pages


Hi,

I just take a look at the procedure
TnxWebScriptProcessor.DoHandleIncludes;
It's stange the try finally doesn't handle the error. Why that ? I don't
know.
For now, I just check the astring variable.

Let me know the next step or what will be your patch.

Thanks

JP


--
jprenou
  #10  
Old 8th November 2010, 03:31 PM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: Comments in nxscript pages

jprenou wrote:

>
> Hi,
>
> I just take a look at the procedure
> TnxWebScriptProcessor.DoHandleIncludes;
> It's stange the try finally doesn't handle the error. Why that ? I don't
> know.
> For now, I just check the astring variable.
>
> Let me know the next step or what will be your patch.


We are targeting a fix for 3.06, but so far I didn't have time to look at it.

--

Hannes Danzl / NexusDB

Manuals - http://www.nexusdb.com/support/index..._manual_v3.htm
Issue Tracker - http://www.nexusdb.com/mantis/view_all_bug_page.php
Newsgroup Web Gateway - http://www.nexusdb.com/forums/
Newsgroup Search - http://www.nexusdb.com/forums/search.php


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RichView data with nxscript pages jprenou nexusdb.public.discussions 10 18th November 2010 01:38 AM
Encrypted nxscript pages jprenou nexusdb.public.discussions 1 11th October 2010 01:20 PM
how to write sql functions ( with sql queries in it) in nxscript Ad Franse nexusdb.public.support.sql 4 30th September 2009 02:43 PM
Throwing this out for comments Robert Meek nexusdb.public.discussions 15 12th February 2004 04:29 AM
ODBC Comments Jan-Erik Johansen nexusdb.public.support.odbc 0 15th October 2003 11:55 PM


All times are GMT +11. The time now is 11:40 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.