rejetto forum
May 25, 2012, 11:32:34 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: {.redirect | B .} doesn't always work in IE  (Read 2494 times)
0 Members and 1 Guest are viewing this topic.
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« on: March 25, 2011, 04:39:18 PM »

The redirect will work the first time it is used, then after that won't work anymore in IE.  It simply won't redirect the page.

Is this the fault of HFS or Internet Explorer?  It does work fine in Firefox.

Raybob
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #1 on: March 26, 2011, 01:05:40 PM »

please report how to reproduce the problem, step-by-step
Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« Reply #2 on: March 26, 2011, 06:07:05 PM »

Just put the macro in a page, and see if it works in IE after using it several times.

Here's a video that shows you that no matter how many times I try to submit the invalid form in Mozilla, it always redirects me properly back to the new account page.  In IE, it will redirect me back once, then the second time will take me to the submission page EVEN THOUGH the URL at the top says " /~newaccount?username=none " , as it should.     Because of this I'm inclined to think it's an IE problem but maybe not so why not report it.  As far as I know, the macros I'm using are valid.



Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #3 on: March 29, 2011, 12:43:52 PM »

i tried to reproduce the problem as you said, but i was not successful.
I created a folder, and in it i put the redirect to another folder.
I attach you my test, please let me know what does it do for you.

* test.vfs (0.31 KB - downloaded 53 times.)
Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« Reply #4 on: March 29, 2011, 03:47:10 PM »

Hmmm yes it does work in the VFS you sent me.  I also tried adding a {.break.} and a URL Variable in the code and it still worked as expected, every time.

Would you like me to send you my VFS and template so you can screw around with it?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #5 on: March 30, 2011, 08:08:32 AM »

yes.
attach it here, or if it's private you can send to support@rejetto.com
Logged
rejetto forum
« Reply #5 on: March 30, 2011, 08:08:32 AM »

Do you like this software? Consider even $2
 Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« Reply #6 on: March 31, 2011, 09:07:06 PM »

OK I emailed it to you.

Additionally, I tested that the redirect does work properly in Opera, Chrome, and Safari.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #7 on: April 04, 2011, 05:54:05 AM »

i'll be back on this as soon as i can
Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« Reply #8 on: April 11, 2011, 09:43:59 AM »

Nothing Yet?

EDIT:  Perhaps it's something wrong with my code rather than HFS or IE but this is becoming somewhat of a problem.  I just had a new user submit the signup form but forget to put in a password, and IE let him through.  It created his account without a password and since he thinks he typed one in, now he can't log on.  So I just lost a user.   Sad

EDIT:  I think I have located the problem to happening whenever the redirect is in an {.if|.} or {.if not|.} statement.  Most redirects on my site work fine.  However, I just created another very simple one.  However, in IE, only, it will fail to redirect.  Oddly though, it will show the correct URL at the top in the address bar while not being on that page.  Here's the very simple code that doesn't work properly.  Another Edit:  I put the code below into the test.vfs you sent me (build 277) and it does work as intended . . . .

Code:
{.if not|%user%|{:{.redirect|/.}:}.}


EDIT:  I even put my entire submission script into your test.vfs and it works perfectly, in every browser.  So why doesn't it work with my template? As of now I am completely frustrated and out of ideas, so hopefully being the smart guy you are you will have some.  Smiley
« Last Edit: April 15, 2011, 10:29:01 PM by raybob95 » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #9 on: April 15, 2011, 04:45:12 AM »

nothing yet., but didn't forget you.
i recently started a new job (now i have 3!) and had less time, just enough to answer some quick questions.
i hope to get some peace soon.
Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« Reply #10 on: April 23, 2011, 10:06:11 AM »

I've changed my system a bit, and the bug still happens of course.

Anyway, after creating an account, the user is eventually sent to a page called ~submission.  In IE, the user will still get to that page even if they don't fill out the form.  However, HFS luckily won't create their invalid account even if they're only missing one field.  Another oddity is that at the top in the address bar, IE will display the correct redirected URL!  If you go into the top of the address bar and click enter on the correct address of the new account page, IE will still stay on the validation page incorrectly.  This must be some freakish IE problem.  It happens in the new IE9 too . . .
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #11 on: April 23, 2011, 11:20:56 AM »

Hi!

Have you tried something like this?

... redirect={.decodeuri| ...
Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« Reply #12 on: August 03, 2011, 11:39:02 PM »

I started with the original template and tried to see what I had to do to reproduce this problem.

Simple.  It seems to happen only when using a form to post variables to a page that immediately redirects to another page.  Usually IE just shows a white page but in this case it's asking me to download some file with no extension.... probably because I didn't bother to put HTML in the page it's redirecting to.  Maybe this will help you fix the problem.  I for one still have zero idea why IE fails in this situation, but at least I figured out how to reproduce it.

Let me know if this helps.


EDIT:  I think that's only happening because I didn't put in <html> tags.....  Still unable to reproduce it.

* vfs.vfs (0.78 KB - downloaded 31 times.)
* hfs.tpl (49.09 KB - downloaded 36 times.)
« Last Edit: August 04, 2011, 03:55:47 PM by raybob95 » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page Today at 10:49:37 AM
anything