IE9 And Posting/Editing »  Show posts from    to     

Icy Phoenix


Old Bugs - IE9 And Posting/Editing



Joshua203 [ Sat 10 Sep, 2011 14:40 ]
Post subject: IE9 And Posting/Editing
In IE9 if you want to post or edit it very often (almost always) takes two clicks on the submit button, this will sometimes result in a double post if you are not careful enough

If you patiently wait after one click it will completely fail to submit


Mighty Gorgon [ Wed 28 Sep, 2011 11:45 ]
Post subject: Re: IE9 And Posting/Editing
Thanks for reporting, but it is (again) an IE issue which doesn't warn properly the user that the form is submitted.


Joshua203 [ Sun 09 Oct, 2011 07:51 ]
Post subject: Re: IE9 And Posting/Editing
I 'm sorry I can only agree to the part where you say it's an IE issue

Because:
Joshua203 wrote: [View Post]
If you patiently wait after one click it will completely fail to submit


mort [ Fri 14 Oct, 2011 10:38 ]
Post subject: Problems With IE And "Submit - Twice Or More Times"
There was a recent discussion between MG and Joshua here about submit problems with IE - Only I can't find the damn thread or the post to continue the conversation there.

Anyway - I came across this while looking for something else and it may throw a little light on the subject.

Code: [Hide] [Select]
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value.


http://www.codingforums.com/showthread.php?t=240088


Joshua203 [ Fri 14 Oct, 2011 19:05 ]
Post subject: Re: IE9 And Posting/Editing
Merged for you Mort Thanks


Mighty Gorgon [ Sun 16 Oct, 2011 11:56 ]
Post subject: Re: IE9 And Posting/Editing
Unfortunately it is not easy to prevent that.

Usually browsers shows you some progress when submitting a form, while IE still doesn't give any prompt signal to the users (so they click more than once! ).

I think we can do very little to prevent this.


Joshua203 [ Sun 16 Oct, 2011 19:11 ]
Post subject: Re: IE9 And Posting/Editing
Sorry I still think I did n't get across what I mean..

If I click once and wait.. I often get a blanco page (meaning I lost my message content!)

Clicking twice prevents loosing the message and because the board will warn me if one click was enough after all (the "there was a post inbetween" warning), so I would not double post.

If I compare to phpbb, 1 click is usually enough to post ...even on IE


Mighty Gorgon [ Sun 16 Oct, 2011 20:41 ]
Post subject: Re: IE9 And Posting/Editing
I'll try to check if I can do something... I need to find some motivation to launch IE on my PC... I also doubt is still there.


Joshua203 [ Sun 16 Oct, 2011 21:04 ]
Post subject: Re: IE9 And Posting/Editing
NO problem ..My last posts went without 2 clicks ...I ll let you know when it happens again a couple of times


Informpro [ Sun 16 Oct, 2011 22:22 ]
Post subject: Re: IE9 And Posting/Editing
Maybe we can use a little JS trick (<!-- if ie > js ...) to set disabled=true on submit button when clicked?

EDIT : another idea, just throwin' it : if IE doesn't subit the <input type="submit" value, maybe we can use sizeof/!empty($_POST) or use <input type="hidden" name="sent" value="1" />


Mighty Gorgon [ Sun 16 Oct, 2011 22:41 ]
Post subject: Re: IE9 And Posting/Editing
Nice idea... I'll have a look.


mort [ Thu 20 Oct, 2011 14:05 ]
Post subject: Re: IE9 And Posting/Editing
What about cBack's Orion mod that that turned the submit button into "Please Wait"

I got a copy of it somewhere!


Joshua203 [ Thu 20 Oct, 2011 14:37 ]
Post subject: Re: IE9 And Posting/Editing
Why not add some elevator music to that ...music while you wait (maybe guns&roses - just a little patience?)

just a small update: I ve been trying to not click twice everytime (it kinda became a habbit)

It seems like it's still happening but maybe not as frequent as i remember


mort [ Thu 20 Oct, 2011 15:00 ]
Post subject: Re: IE9 And Posting/Editing
Or, how about this while one waits?

working


habit and rabbit -> damn Engrish!



Joshua203 [ Thu 20 Oct, 2011 16:03 ]
Post subject: Re: IE9 And Posting/Editing
mort wrote: [View Post]
habit and rabbit -> damn Engrish!




Informpro [ Thu 20 Oct, 2011 16:24 ]
Post subject: Re: IE9 And Posting/Editing
This would certainly work
Code: [Hide]
  1. $('form').submit(function () 
  2. $(this).find('input[type="submit"]').val('Please wait').find('.mainoption').attr('disabled', true); 
  3. }); 
EDIT : for some reason it prevents the post from being saved. I neither know nor have time to look if IP checks the value of SUBMIT (I only know it checks if it's present)


mort [ Thu 20 Oct, 2011 23:23 ]
Post subject: Re: IE9 And Posting/Editing
I'll have look and see if I can find the Orion stuff - No offence, but it could save one wasting their time on this, when they could be doing other things.



Edit - It's AJAX:

Found it! Don't know if it will help - - But!

Code: [Hide] [Select]
<td class="footer" colspan="2" align="center" height="28">{S_HIDDEN_FORM_FIELDS}
<input type="submit" tabindex="5" name="preview" onclick="return AJAXPreview({S_IS_PM}, {S_EDIT_POST_ID});" class="mainoption" value="{L_PREVIEW}" />
&nbsp;&nbsp;<input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" onClick="this.value='{OF_WARTEN}'" />


Of Warten = Please Wait.

I also know that myBB had the same problem with IE, and they resorted to using js to submit the form. Only difference is - They used a "Spinner" like I posted earlier.


Informpro [ Fri 21 Oct, 2011 17:41 ]
Post subject: Re: IE9 And Posting/Editing
It's working the same way as my code, except it's not unobstrusive ;). And it does not disable other fields too.


Mighty Gorgon [ Sun 30 Oct, 2011 10:52 ]
Post subject: Re: IE9 And Posting/Editing
Thanks for the suggestions.

I'll think about integrating this.




Powered by Icy Phoenix