|
Rank: Newbie Groups: Member
Joined: 3/20/2008 Posts: 5
|
We have a website that has been up and running in production for months. Monday it started throwing javascript errors on the pages with EO controls. The controls will no longer render on the page and the 2 errors that are being thrown are "Syntax Error" and "Sys is Undefined". We think it might have something to do with recent windows updates. Any help would be greatly appreciated. Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Greg,
Do you have the page online so that we can take a look?
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 3/20/2008 Posts: 5
|
The website is www.elisonline.com. This is a secured site so I am not permitted at this time to give you a login.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, It has to do with your https redirection. You are redirecting certain http traffic over https, and certain https traffic back to http. For example, http://www.elisonline.comIs redirected to: https://www.elisonline.com/Default.aspxThis is fine. However if you type the following link in your browser: https://www.elisonline.com/eo_web.ashx?id=bad34f5a-618b-4747-a9b3-43127c35086eYou will see it gets redirected back to to non-HTTP version: http://www.elisonline.com/eo_web.ashx?id=bad34f5a-618b-4747-a9b3-43127c35086eThis is not fine because then you would get a mother page (your default.aspx) goes through HTTPS and several kids page (our JavaScript files, rendered through the link shown above) that goes through HTTP. They do not work together because they are considered coming from different sources (they are regarded as two different sites), and all modern browsers impose restrictions on cross site JavaScript. Thanks
|
|
Rank: Newbie Groups: Member
Joined: 3/20/2008 Posts: 5
|
That was the problem. Thanks for your help.
|
|
Rank: Newbie Groups: Member
Joined: 3/20/2008 Posts: 5
|
Hi, I know this thread is a couple months old but I need to know if there is a solution to this problem. We removed the redirection between http and https and that fixed the javascript errors we were getting. This solution was fine until now. We are being told that moving back and forth between http and https is a requirement for our site. Is there anyway to do this with EO web controls? If EO Web Controls will not work under this environment we will have to find other controls to use in our site. Please help.
Thanks,
Greg
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Greg,
The real problem for this is not redirection. The real problem is that your .aspx page goes through https and your JavaScript files goes through http. It does not matter whose solution/product you use, as long as you have http JavaScript file inside an https .aspx page, those JavaScript will be considered "foreign" by the brower and a lot of things will stop working. In another word, this is due to a security measure adopted by most modern browsers and it affects all HTML and JavaScript in general.
In order to solve the problem, you .aspx page and JavaScript files must goes through the same protocol --- either they both go through https, or they both go through http. In fact if your page is configure to go through https (just like your case), all other files referenced by your page (this would include our JavaScript files, image files, etc) should also go through https. Otherwise you will get the infamous "this page contains both secured and unsecured contents....." when you access the page with IE. And that alone usually is enough to defeat the purpose of having an https page because most users will start to doubt whether the page is really secure when they see such a message.
Hope this help.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 3/20/2008 Posts: 5
|
Thanks for your help.
|
|