RE: [httpunit-javascript] javascript enabled browser
Alex <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Below is code I get. What can I do to enable cookies, and scripting.? Any
help is appreciated
<noscript>
<html>
<head>
<title>dfdgsdfgdsf |
Error page</title>
</head>
<body> sdfasf
</body>
</html>
<span style="display:none">
</noscript>
<html>
<head>
<title></title>
</head>
<body bgcolor="white" background="">
<span class="text">In order to use this application, you
must have Java Scripting enabled. To enable Java Scripting, please follow
these steps:<br><br>Internet Explorer 6.0 or above:<br>1. Go to the "Tools"
menu (in main menu) and select "Internet Options...".<br>2. Select the
"Security" tab. <br>3. Click on the "Custom Level..." button in the
"Security level" section.<br>4. At the bottom of the page, reset to Medium
and click the "Reset" button.<br>5. Click OK.<br><br>Alternatively, please
contact Customer Support or <a
<script language="JavaScript">
if (navigator.cookieEnabled == true) {
document.location.replace('blahblah');\
}
else {
document.title = sdfsad | Error page';
document.write('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"
width=\"100%\">\n');
document.write(' <tr>\n');
document.write(' <td width=\"100%\">\n');
document.write(' <table border=\"0\" cellpadding=\"0\"
cellspacing=\"12\" width=\"100%\" bgcolor=\"f0f0f0\">\n');
document.write(' <tr>\n');
document.write(' <td width=\"1%\" valign=\"top\">\n');
document.write(' </table></td></tr>\n');
document.write(' <span class=\"text\">In order to use
this application, you must have Cookies enabled.<br>To enable Cookies,
please follow these steps:<br><br>Internet Explorer 6.0 or above:<br>1. Go
to the "Tools" menu (in the main menu) and select "Internet
Options...".<br>2. Select the "Privacy" tab.<br>3. Click on the
"Advanced..." button in the "Settings..." section.<br>4. "Override automatic
cookie handling" checkbox should not be checked.<br>5. Click
OK.<br><br>Alternatively, please contact Customer Support or <a);
document.write('</table>\n');
}
</script>
</body>
</html>
<noscript>
</span>
</noscript>
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Graeme J
Sweeney
Sent: Friday, April 07, 2006 3:51 AM
To: [email protected]
Subject: RE: [Httpunit-develop] [httpunit-javascript] javascript enabled
browser
On Thu, 6 Apr 2006, Alex wrote:
> When website finds javascript enabled browser it displays certain form
> etc...
> If it sees browser does not allow scripting it gives 'error page' which
> says u need to have scripting enabled....
>
> (I checked in IE...when I have scripting enabled it works when I disable
it
> I also get that 'error' page )
The questions still stands:
What code is the site using to detect Javascript?
Is it using an onLoad method to forward you to another landing page?
Is it using script/noscript tags?
Have you actually viewed the source with javascript turned off?
If the site is using lots of document.write to insert the content then you
might be better off with htmlunit.
--
Graeme -
Outlook Express user? - http://home.in.tum.de/~jain/software/oe-quotefix/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642