Dear Antonio,
where do we find information about "views" and structured programming applied
to HTML.
Are there rules how to format the source code.
Thank you in advance
Otto
Dear Antonio,
where do we find information about "views" and structured programming applied
to HTML.
Are there rules how to format the source code.
Thank you in advance
Otto
{{View("head")}}
{{View("body")}}<html>
<head>
</head><body>
</body>
</html><body>
{{View("menu")}}
{{View("browse")}}
</body>
</html>Hi Antonio ,
I know little bit JSP how it works in the JSP we can AJAX to call URL and the web server execute the relevant code for the given URL.
How we can co-relate the functionality int he mod_harbour ? Could you please provide some examples ?
Thanks
Shridhar
Dear Antonio,
would you be so kind to post the source code corresponding to the description too.
I mean the folder containing the files.
Do we call this project?
Best regards
Otto
Dear Antonio,
{{View("browse")}}
is this the same as
include('browse.view')
Best regards
Otto
function View( cName )
local cData
if File( hb_GetEnv( "PRGPATH" ) + "/views/" + cName + ".view" )
cData = MemoRead( hb_GetEnv( "PRGPATH" ) + "/views/" + cName + ".view" )
while ReplaceBlocks( @cData, "{{", "}}" )
end
else
cData = "<h2>" + cName + " not found!</h2>"
endif
return cDataAntonio,
could you please continue the lesson for us from this tread?
Dear Antonio,
I see on TWeb that we can have
<%prg
return Harbour code
%>
in views.
Is this withour TView class possible.
Best regards
Otto