NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Diferent style depending on the referer
« previous
next »
Print
Pages: [
1
]
Author
Topic: Diferent style depending on the referer (Read 2834 times)
Alberto
Hero Member
Posts: 1873
Diferent style depending on the referer
«
on:
June 26, 2010, 11:29:24 AM »
Hi,
I have a server that is inclluded in some static pages (different servers) with iframe.
How can I use different styles depending on the referer?
Thanks
Alberto
Logged
-----------
Regards
Alberto
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: Diferent style depending on the referer
«
Reply #1 on:
June 27, 2010, 10:19:55 AM »
In WebHandler
in ProcessLink method
before parent call
If self.RequestHost = '
www.capesoft.com
'
self.site.HtmlCommonStyles = clip(self.site.HtmlCommonStyles) & self.AddStyle('capesoft.css')
end
Or something along those lines, depending on what you want to do.
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Diferent style depending on the referer