NetTalk Central

Author Topic: Diferent style depending on the referer  (Read 2837 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
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
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
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.