NetTalk Central

Author Topic: requestreferer Property not working in IE6/7 - ok in FF  (Read 4922 times)

random69

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
requestreferer Property not working in IE6/7 - ok in FF
« on: January 29, 2008, 10:29:43 AM »
Hello all,

I've got a memory form and at the GenerateForm embed - I grab the requestreferer from the webhandler.

I subsequently use this for a button to go back to the page that was originally shown. This form also can be submitted a few times such that that doing a back won't cut it.

This works fine under firefox. I monitor the referrer with debug statements and can see it come in correctly.

HOWEVER, with IE6 and IE7 - the requestreferer is ALWAYS the main index page. So when the user click the button, he goes back to the main page (not what I want).

Anyone else having issues like this? I'd like to be able to go back to the page that came to this form without having to setup values on every page coming to this form.

Thanks!

Dave



random69

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Re: requestreferer Property not working in IE6/7 - ok in FF
« Reply #1 on: January 29, 2008, 11:21:10 AM »
Update:

I tried using the Save/Cancel buttons with NO URL's - but they go back to the page name only, which does not include any of the passed values (?'blah=blah&blah2=blah2')

Also, if you setup a URL on Save to be the same page as the form (so multiple ones can be submitted) and leave the URL on Cancel blank - the cancel button still sends you to the URL on Save instead of to the "referrer".

So what I did is simply save off the Whole URL as a session value, used that session value in the page to save off (if the first time to the form) the "referrer".

Since all my pages have the same page header (web source) - I just embedded the code below at the beginning of that procedure.

Code: [Select]
   ! ALWAYS save off whole url that came in to a session variable. That way some forms can use it to go back.

   ! we have to use two ssvs

   p_web.SetSessionValue('mywholeurl',p_web.GetSessionValue('mywholeurlnew'))   ! get prior one - this is the real deal
   p_web.SetSessionValue('mywholeurlnew',p_web.WholeURL)


I'd still like to see the requestreferer property work ok under ie, if that is possible.

Cheers.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: requestreferer Property not working in IE6/7 - ok in FF
« Reply #2 on: January 31, 2008, 11:24:03 PM »
Hi Dave,

I ran a test here (described below) but it worked for me exactly the same in IE7 and FF. So I'm thinking maybe something else is different between what you are doing, and what I am doing. Perhaps the issue is _where_ you are testing the p_web.RequestReferer property?

I used example 33 (for no particular reason except that it was handy), AliasFormControl procedure. In the "Start of Processed Code" embed point I put
stop(p_web.RequestReferer)

Then I ran the app, and went to the Alias form page. The stop popped up 4 times (which is to be expected, as the form is called multiple times as the page is generated) but for all browsers, and indeed all times, it displayed the same text - which was the URL of the Alias form page.

Cheers
Bruce

random69

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Re: requestreferer Property not working in IE6/7 - ok in FF
« Reply #3 on: February 01, 2008, 11:42:41 AM »
Bruce,

That may be the case in the example, but I'm going from a page to a memory form with a link in the page. Not from a browse to a table form.

I'm using the GenerateForm embed (1 Start).

Thanks

Dave



Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: requestreferer Property not working in IE6/7 - ok in FF
« Reply #4 on: February 04, 2008, 08:03:03 AM »
Hi Dave,

I've attached a small altered example app (a modified example 1). I think this is the same context as yours. Can you try it and see what happens? On my side it's identical for IE and FF.

Cheers
Bruce



[attachment deleted by admin]