Author | Topic: Re: HTML Tag in DLL!!??!? | |
---|---|---|
Joerg Bauer | Re: HTML Tag in DLL!!??!? on Mon, 23 Aug 2004 21:57:34 +0200 Dear Phil, It is great that there is somebody like you! I will test it tomorrow Best regards Jrg "Phil Ide" <phil@idep.org.uk> schrieb im Newsbeitrag news:8ctnbrrwu9d9.dlg@idep.org.uk... > Joerg, > > > Some times I don't know if I should insert a tag (HTML) > > into the DLL or into the HTML file. > > > > In principle I do not like any HTML code in my DLL. > > > > In my opinion Design is for a HTML editor like Dreamweaver > > and dynamic is for WAA. > > > > I hope some of you could understand me!!? > > > > So what is the best way to serperate design form dynamic? > > > > Could anyone try to explane what is a good concept > > to do this? > > How about a mix of both worlds? > > Use Frontpage or Dreamweaver or whatever to create a template page. Then > in your DLL you generate only the code necessary to display the dynamic > elements, and inject this code into your template html document. All you > have to do then is return the document to the client. > > The easiest way to do all this is using HAL - the HTML Application Library. > This uses HRF to do all the above and makes coding HTML in your DLL much > easier. If you don't have the professional subscription, send me an email > and I'll send you a replacement library for HRF. > > Here is an example of HTML code written in Xbase++ using HAL: > > you can copy & paste JScript, VBScript, PerlScript etc. > straight into your Xbase++ code! > SCRIPTTEXT > function jalert(o){ > alert(o.name); > } > function ok(){ > if(document.orderform.NAME.value == ""){ > alert("You must enter a name!"); > return false; > } > return true; > } > ENDTEXT > SCRIPT WRITE > > we don't need to add the WAA_PACKAGE variable, > HAL does this automagically! > FORM START name=orderform, onSubmit='return ok();' > HIDE WAA_FORM=SubmitOrderForm > > TABLE > ROW > CELL ? '~Name' > CELL INPUT name=NAME, value=(DATA->NAME), size=15,; > maxlength=10, onBlur='jalert(this)', acessKey=N > > ROW > CELL ? '~Gender' > CELL PICKLIST name=GENDER, accessKey=G > OPTION 'Male' value=Male > OPTION 'Female' value=Female > PICKLIST END > ROW > CELL > CELL SUBMIT value=Continue, onClick='jalert(this)',; > name=SBUTTON > TABLE CLOSE > FORM END > > You can grab HAL from my site. > > Regards, > -- > Phil Ide > > *************************************** > * Xbase++ FAQ, Libraries and Sources: * > * goto: http://www.idep.org.uk/xbase * > *************************************** > > Timba, his arms wide! |