NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: vsorensen on January 25, 2010, 07:37:33 PM

Title: "Referer" causes browse button problem; NetTalk 5 Server fix (pr7) in NetWeb.clw
Post by: vsorensen on January 25, 2010, 07:37:33 PM
I already submitted this, but perhaps a spam filter got it.

Took awhile to track down why my browse buttons weren't working in NT5.00pr7, but I finally found the cause:

In NetWeb.clw...
 
loc:onclick = sub(loc:onclick,1,iq) & '__Referer__=''+escape(location.href)+''&' & sub(loc:onclick,iq+1,size(loc:onclick))

should read
 
loc:onclick = sub(loc:onclick,1,iq) & '__Referer__=''+escape(location.href)+''&' & sub(loc:onclick,iq+1,size(loc:onclick))

Vince
 
Title: Re: "Referer" causes browse button problem; NetTalk 5 Server fix (pr7) in NetWeb.clw
Post by: Bruce on January 25, 2010, 10:40:16 PM
noted and changed for PR8 - thanks Vince.

cheers
Bruce
Title: Re: "Referer" causes browse button problem; NetTalk 5 Server fix (pr7) in NetWeb.clw
Post by: Bruce on January 25, 2010, 10:52:59 PM
Hi Vince,

Actually I think the block of code there should be this

   if iq
     if self._RequestAjaxNow = 1
       loc:onclick = sub(loc:onclick,1,iq) & '__Referer__=''+escape(location.href)+''&' & sub(loc:onclick,iq+1,size(loc:onclick))
     else
       loc:onclick = sub(loc:onclick,1,iq) & '__Referer__=''+escape(location.href)+''&' & sub(loc:onclick,iq+1,size(loc:onclick))
     end
   end


Cheers
Bruce