embedded Jade script for html

For questions and postings not covered by the other forums
ascribe
Posts: 16
Joined: Mon Sep 14, 2009 1:51 pm
Location: Australia
Contact:

embedded Jade script for html

Postby ascribe » Thu Sep 17, 2009 12:53 pm

Hi guys

I thought I saw Jade script embedded in HTML (same as PHP in HTML) somewhere but I can't recall where, can someone confirm if Jade can do this please

alanvl
Posts: 29
Joined: Fri Aug 14, 2009 9:16 pm

Re: embedded Jade script for html

Postby alanvl » Thu Sep 17, 2009 6:52 pm

From memory I believe allistar had developed soming called JHP that allowed Jade to be intergrated into the html - not sure if he has continued to keep this up to date though

allistar
Posts: 156
Joined: Fri Aug 14, 2009 11:02 am
Location: Mount Maunganui, Tauranga

Re: embedded Jade script for html

Postby allistar » Thu Sep 17, 2009 9:57 pm

Yes, JHP is indeed up to date and is deployed onto many large sites who are using it with success. It works pretty much like PHP in that you embed Jade code into a web page, and the database server will run that Jade code. Feel free to ask any questions about it. If you want to go private, my email address is allistar@silvermoonsoftware.co.nz.

ascribe
Posts: 16
Joined: Mon Sep 14, 2009 1:51 pm
Location: Australia
Contact:

Re: embedded Jade script for html

Postby ascribe » Fri Sep 18, 2009 5:57 pm

Thank for replying guys.

Cool, is there any JPH tutorial or guide around? If yes where can I find them

allistar
Posts: 156
Joined: Fri Aug 14, 2009 11:02 am
Location: Mount Maunganui, Tauranga

Re: embedded Jade script for html

Postby allistar » Fri Sep 18, 2009 10:35 pm

The website for JHP is quite out of date (I need to find some time to bring it into this century), but the information is still relevant. You can find a mini tutorial here http://www.silvermoonsoftware.co.nz/jhpmanual.html. If you would like to download JHP to try it out, let me know and I'll send you the latest copy.

ascribe
Posts: 16
Joined: Mon Sep 14, 2009 1:51 pm
Location: Australia
Contact:

Re: embedded Jade script for html

Postby ascribe » Mon Sep 21, 2009 12:01 pm

The website for JHP is quite out of date (I need to find some time to bring it into this century), but the information is still relevant. You can find a mini tutorial here http://www.silvermoonsoftware.co.nz/jhpmanual.html. If you would like to download JHP to try it out, let me know and I'll send you the latest copy.

Thanks allistar. It's very much like PHP in which I am familiar with, I wanna try it out, can you send me the latest JHP and some notes of how to set it up please


Cheers

allistar
Posts: 156
Joined: Fri Aug 14, 2009 11:02 am
Location: Mount Maunganui, Tauranga

Re: embedded Jade script for html

Postby allistar » Mon Sep 21, 2009 1:53 pm

No problem. Please send me your email address (send me a private message via the forum, or email me at allistar@silvermoonsoftware.co.nz) and I'll get it to you.

ascribe
Posts: 16
Joined: Mon Sep 14, 2009 1:51 pm
Location: Australia
Contact:

Re: embedded Jade script for html

Postby ascribe » Fri Sep 25, 2009 12:36 pm

Thanks Allistar.

When I try to load the JHP schema, a window pops up and say


jadeVersionNumber "6.1.10";
schemaDefinition
JHPSchema subschemaOf JHPTestSchema completeDefinition, patchVersioningEnabled = false;
importedPackageDefinitions
constantDefinitions
localeDefinitions
5129 "English (New Zealand)" schemaDefaultLocale;
libraryDefinitions
typeHeaders
JHPSchema subclassOf JHPTestSchema transient, sharedTransientAllowed, transientAllowed, subclassSharedTransientAllowed, subclassTransientAllowed, highestOrdinal = 2, number = 2060;
JHPConnection subclassOf TcpIpConnection transient, sharedTransientAllowed, transientAllowed, subclassSharedTransientAllowed, subclassTransientAllowed, number = 9759;
GJHPSchema subclassOf GJHPTestSchema transient, sharedTransientAllowed, transientAllowed, subclassSharedTransientAllowed, subclassTransientAllowed, number = 2061;
JHPCode subclassOf Object highestSubId = 3, highestOrdinal = 7, number = 9760;
JHPExceptionDetail subclassOf Object transient, highestOrdinal = 6, number = 9762;
JHPHTTPHeader subclassOf Object highestOrdinal = 3, number = 9763;
JHPListener subclassOf Object transient, highestSubId = 2, highestOrdinal = 2, number = 9764;
JHPPageVariable subclassOf Object highestOrdinal = 3, number = 9765;
JHPRequestQueue subclassOf Object transient, highestSubId = 3, highestOrdinal = 6, number = 9766;
JHPRoot subclassOf Object highestSubId = 1, highestOrdinal = 15, number = 9767;
JHPStoredMethod subclassOf Object highestOrdinal = 7, number = 9768;
JHPWorker subclassOf Object transient, highestSubId = 3, highestOrdinal = 12, number = 9769;
SJHPSchema subclassOf SJHPTestSchema transient, sharedTransientAllowed, transientAllowed, subclassSharedTransientAllowed, subclassTransientAllowed, number = 2062;
JHPAdminForm subclassOf Form transient, transientAllowed, subclassTransientAllowed, highestOrdinal = 26, number = 9770;
JHPRegForm subclassOf Form transient, transientAllowed, subclassTransientAllowed, highestOrdinal = 8, number = 9771;
JHPHTTPHeaderDict subclassOf MemberKeyDictionary duplicatesAllowed, loadFactor = 66, number = 9772;
JHPPageVariableDict subclassOf MemberKeyDictionary number = 9773;
JHPStoredMethodDict subclassOf MemberKeyDictionary number = 9774;
JHPConnectionArray subclassOf ObjectArray transient, number = 9775;
JHPWorkerSet subclassOf ObjectArray number = 9776;

interfaceDefs
membershipDefinitions
JHPHTTPHeaderDict of JHPHTTPHeader ;
JHPPageVariableDict of JHPPageVariable ;
JHPStoredMethodDict of JHPStoredMethod ;
JHPConnectionArray of JHPConnection ;
JHPWorkerSet of JHPWorker ;

typeDefinitions
Object completeDefinition
(
)
Application completeDefinition
(
)
RootSchemaApp completeDefinition
(
)
JHPTestSchema completeDefinition
(
)
JHPSchema completeDefinition
(
setModifiedTimeStamp "Allistar" "6.1.10" 2008:01:25:21:32:12;
referenceDefinitions
myJHPListener: JHPListener readonly, number = 2, ordinal = 2;
setModifiedTimeStamp "Allistar" "6.1.10" 2008:01:25:21:35:09;
myJHPRoot: JHPRoot readonly, number = 1, ordinal = 1;
setModifiedTimeStamp "Allistar" "6.1.10" 2008:01:25:21:34:46;

jadeMethodDefinitions
jhpExceptionHandler(ex: Exception): Integer number = 1094;
setModifiedTimeStamp "Allistar" "6.1.10" 2008:01:25:22:04:14.634;
jhpFinalise() number = 1095;
setModifiedTimeStamp "Allistar" "6.1.10" 2008:01:25:21:34:50.588;
jhpInitialise() updating, number = 1096;
setModifiedTimeStamp "Allistar" "6.1.10" 2008:01:25:21:34:51.885;
jhpInitialiseServer() updating, number = 1097;
setModifiedTimeStamp "Allistar" "6.1.10" 2008:01:25:21:35:12.307;
jhpInitialiseShutdown() updating, number = 1098;
setModifiedTimeStamp "Allistar" "6.1.10" 2008:01:25:21:35:14.807;
jhpRequestQueuer(requestQueue: JHPRequestQueue input) updating, protected, number = 1099;
setModifiedTimeStamp "Allistar" "6.1.10" 2008:01:25:21:35:15.807;
jhpServerFinalise() updating, number = 1100;
setModifiedTimeStamp "Allistar" "6.1.10" 2008:01:25:21:35:16.947;
jhpWorkerThread(worker: JHPWorker) updating, protected, number = 1101;
setModifiedTimeStamp "Allistar" "6.1.10" 2008:01:25:21:35:18.197;
sysNotification(
eventType: Integer;
theObject: Object;
eventTag: Integer) updating, number = 1001;
setModifiedTimeStamp "Allistar" "6.1.10" 2008:01:25:22:04:45.978;
..................................................................................... (the message is very long I've chopped it short)


with JHPTestSchema highlighted and the loading stops. At he beginning of the message it says jadeVersionNumber "6.1.10"; but I am using latest version of Jade which is 6.3.04 could this be the problem?

allistar
Posts: 156
Joined: Fri Aug 14, 2009 11:02 am
Location: Mount Maunganui, Tauranga

Re: embedded Jade script for html

Postby allistar » Fri Sep 25, 2009 1:01 pm

You'll have to edit the word after "subschemaOf" to be the schema you want the JHPSchema to be under. Importing it into a 6.3.4 database will be fine. Let's take further support type issues on this via email, this is a forum for Jade products, not my products. :-)


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 23 guests