NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on March 04, 2014, 11:44:35 AM
-
Hi, I know not to frame is better.
My site needs advertisment and I put it on a right frame, this allow me to choose what kind of advertisment depending on the user. (see image)
How can I do it without frames?
Thanks
[attachment deleted by admin]
-
create a <div>, typically with class="nt-right"
NT7 has this facility built-in on the NetWebPage NetWebSource procedure.
cheers
Bruce
-
But can I do that with browses and forms?
Thanks
-
yes, because you make the <div> part of the _header_... the fact that it's on the right is incidental - if you make it part of the header procedure it can still appear on the right - just like some menus in the header appear on the left.
cheers
Bruce
-
ok, Ive tried with ex 2
I add a div at priority 500 in the PageHeaderTag proc
p_web.DivHeader(loc:divname,Choose(p_web.IsMobile(),'',' ui-widget-header ui-corner-top'),,,' data-role="header"')
!----------- put your html code here -----------------------------------
! Start of "Processed Code"
do SendPacket
If (not p_web.IsMobile())
Do pc
do SendPacket
End
If (p_web.IsMobile())
Do mob
do SendPacket
End
! [Priority 500]
packet = clip(packet) & '<div class="nt-right"><!-- Net:f:PropGynecology_spa.html --></div>'
do SendPacket
p_web.ClearBrowse('PageHeaderTag')
and when NT generates a form it overrides the div.
see image please
[attachment deleted by admin]
-
I suspect you need to add a specific width and height to your div. If you inspect it in FireBug I think you'll see the "div" is very small. Remember a div doesn't just "grow" to wrap around all it contains.
cheers
Bruce
-
Itried to add width and height...
packet = clip(packet) & '<div id="id_prop" class="nt-right" style="width:10%;height=100%"><!-- Net:f:PropGynecology_spa.html --></div>'
with and withot style, and nothing...same result
You mean modify the NT DIvHeader width?
-
experiment in firebug till you get what you want.
-
Ok, I got it but I dont know how to do it, didnt find any embed to do this.
I need to :
-add my div just before the </body> which close the <body class="PageBody"> of every page
-and modify the div class after PageBody class to be nt-left
Example of my code in bold font.
<html class=" no-js">
<head>
<body class="PageBody">
<div class="nt-left" width="90%">
<div id="menuwin_div">
<div id="menu_div" class="chromemenu">
</div>
<div class="nt-right" width="10%">
<br>
wwwwwwwwww
</div>
</body>
</html>
How can I do it?
Thanks
-
Add new div via XHTML tab. Set CSS of other div using template settings.
-
Is there any XHTML tab for all the procs?
Or must I do it proc by proc?
Thanks
-
if you are reusing xHTML then put it in a NetWebSource, and "add" that as a tag to the places where it needs to go. eg
<!-- Net:SomeSource -->
cheers
Bruce