Another IE6 postback issue

75 kali dilihat
Langsung ke pesan pertama yang belum dibaca

Jbarth

belum dibaca,
11 Okt 2010, 17.26.1111/10/10
kepadareCAPTCHA
Having an issue with the CAPTCHA control disappearing on postback only
in IE6 (God I hate supporting that browser). I've eliminated invalid
HTML as the cause by using the W3C validator against my code. Here's
the failing HTML stripped down to the basics.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/
>
<title>Captcha Test Page</title>
<script type="text/javascript" src="http://www.google.com/
recaptcha/api/js/recaptcha_ajax.js"></script>
</head>
<body>
<script type="text/javascript">
var RecaptchaOptions = {
theme : 'white'
};
</script>
<script type="text/javascript">
function submitCaptcha()
{
var challenge = Recaptcha.get_challenge();
var response = Recaptcha.get_response();
document.cTest.submit();
}
</script>
<form name="cTest" method="post" action="Default2.aspx" id="cTest">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwULLTIwNDAwODk2OTNkZI8RyeyapimOf+FYjdp3uRuSbDAe" />
</div>
<div>
<input type="hidden" name="__EVENTVALIDATION"
id="__EVENTVALIDATION" value="/
wEWAgKd1PT4AgLh1JPwAweyXeJU3La6nb7U83fJo7Fdje++" />
</div>
Email: <input name="EmailAddress" type="text" id="EmailAddress" />
<div>
<script type="text/javascript" src="http://www.google.com/
recaptcha/api/challenge?k=XXXXXXXXXXXXX"></script>
</div>
<input type="button" value="Submit" onclick='submitCaptcha()' />
</form>
</body>
</html>

Mona Singh

belum dibaca,
12 Okt 2010, 11.08.5912/10/10
kepadareCAPTCHA
Try using https while launching the form. It worked in my case.

Jbarth

belum dibaca,
12 Okt 2010, 12.29.5512/10/10
kepadareCAPTCHA
Unfortunately I can't install Self SSL in my local dev machine and
won't be running this over SSL when it's live, so I don't think that's
going to help me.

Jbarth

belum dibaca,
12 Okt 2010, 15.55.5812/10/10
kepadareCAPTCHA
Also, if it helps trigger any suggestions, the ASP.NET plugin has the
same issue on this sample page.

-j

Jbarth

belum dibaca,
13 Okt 2010, 11.54.4113/10/10
kepadareCAPTCHA
This morning one of our web engineers pointed out it also does not
work in IE7, but does render in IE 8

Jbarth

belum dibaca,
13 Okt 2010, 15.45.2013/10/10
kepadareCAPTCHA
An update: IE7 actually does work on postback.

At this point, I'm at a loss for how to even investigate this any
further. Any form submission in IE6 seems to make the captcha code
disappear. I've gone so far as to look at other peoples demos and
Googles examples, and those don't work in IE 6 either. Example:
http://www.google.com/recaptcha/demo/ajax
and
http://www.google.com/recaptcha/demo/

Charlie Dance

belum dibaca,
13 Okt 2010, 21.03.4013/10/10
kepadareca...@googlegroups.com


2010/10/13 Jbarth <joe.ba...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
To post to this group, send email to reca...@googlegroups.com.
To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/recaptcha?hl=en.




--
peteos

Mona Singh

belum dibaca,
13 Okt 2010, 23.50.0613/10/10
kepadareCAPTCHA
When i was facing the same issue, i noticed that basically if any type
of redirection happens, the captcha box disappears. For eg in our
project we were having a home page through which we can navigate to 6
different web forms. If i go through home page to say form1, the
captcha does not appear. If i refresh the page it starts appearing.

However if i take the url in a way that i bypass the homepage, i face
no problem with box appearing.

Also in my first case mentioned, when the box does appear, and i hit
submit button causing the validation to fail, the captcha box
disappears.

So to conclude in all my failure cases, some sort of redirection was
happening like one was from home page, another was from my class which
did not render the captcha box.

I was able to solve this if i use Https call. I dont know the reason
why but if i use https post nothing is blocked and it works absolutely
fine with ie6.
Apart from this i did lot of reasearch, but was not able to find any
other solution or reason for this behaviour.


On Oct 14, 6:03 am, Charlie Dance <charliedan...@gmail.com> wrote:
> 2010/10/13 Jbarth <joe.barth...@gmail.com>
>
>
>
> > An update:  IE7 actually does work on postback.
>
> > At this point, I'm at a loss for how to even investigate this any
> > further.  Any form submission in IE6 seems to make the captcha code
> > disappear.  I've gone so far as to look at other peoples demos and
> > Googles examples, and those don't work in IE 6 either.  Example:
> >http://www.google.com/recaptcha/demo/ajax
> > and
> >http://www.google.com/recaptcha/demo/
>
> > On Oct 13, 10:54 am, Jbarth <joe.barth...@gmail.com> wrote:
> > > This morning one of our web engineers pointed out it also does not
> > > work in IE7, but does render in IE 8
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "reCAPTCHA" group.
> > To post to this group, send email to reca...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > recaptcha+...@googlegroups.com<recaptcha%2Bunsu...@googlegroups.com>
> > .

Adrian Godong

belum dibaca,
14 Okt 2010, 11.58.4714/10/10
kepadareca...@googlegroups.com
Sounds like an HTTP Referrer problem. Can you confirm the HTTP Referrer values of those valid and invalid displays?



To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/recaptcha?hl=en.




--
Adrian Godong
adrian...@gmail.com
Pesan telah dihapus

Jbarth

belum dibaca,
15 Okt 2010, 18.33.3115/10/10
kepadareCAPTCHA
Adrian,

I confirmed the HTTP Referrer values for the forms, and they are as
expected. The initial HTTP referer value is empty (since we open the
form page directly) and the value after postback is the URL of the
hosting page:
http://localhost:28474/Default2.aspx
Balas ke semua
Balas ke penulis
Teruskan
Pesan telah dihapus
0 pesan baru