Kiwee has problems with IE

2 views
Skip to first unread message

Kevin Hoang

unread,
Oct 28, 2008, 11:01:42 PM10/28/08
to KiweeCommerce Forum
I got some errors when I use IE. The error infor in the following
figures:

<a href="http://s37.photobucket.com/albums/e51/Dream_h/?
action=view&current=error_1.png" target="_blank"><img src="http://
i37.photobucket.com/albums/e51/Dream_h/error_1.png" border="0"
alt="Photobucket"></a>

<a href="http://s37.photobucket.com/albums/e51/Dream_h/?
action=view&current=error_2.png" target="_blank"><img src="http://
i37.photobucket.com/albums/e51/Dream_h/error_2.png" border="0"
alt="Photobucket"></a>

Richard Northcott

unread,
Oct 29, 2008, 6:12:08 AM10/29/08
to kiweec...@googlegroups.com
Hi Kevin

Can you tell me what page you were in - a product page or the catalog. Also can you tell me what you added to the Image section and what details you entered under the Product section for Edit Image Properties (a screenshot is handy for that part).


Richard

Kevin Hoang

unread,
Oct 29, 2008, 10:09:40 AM10/29/08
to KiweeCommerce Forum

On Oct 29, 5:12 pm, "Richard Northcott" <richard...@gmail.com> wrote:
> Hi Kevin
>
> Can you tell me what page you were in - a product page or the catalog. Also
> can you tell me what you added to the Image section and what details you
> entered under the Product section for Edit Image Properties (a screenshot is
> handy for that part).
>
> Richard
>
> On Wed, Oct 29, 2008 at 3:01 AM, Kevin Hoang <congdongcviet....@gmail.com>wrote:

Hi Richard!

I'm sorry about my post above, I capture my screen and post, but I
this page don't support display image. The following links are 2
screenshot image about:

http://i37.photobucket.com/albums/e51/Dream_h/error_1.png
http://i37.photobucket.com/albums/e51/Dream_h/error_2.png

I got this error when I use IE to access admin page.

Thanks Richard.

Richard Northcott

unread,
Oct 29, 2008, 11:01:37 AM10/29/08
to kiweec...@googlegroups.com
Hi Kevin

I'm guessing from the info in the status bar on both screenshots that the first one relates to the Image section and the other the Discount section.

I was getting IE showing an error in the status bar (eg. Done with Errors). I have tracked it down to the Ajax coding for the interface.js file (manager\actions\includes).

The problem seemed to relate to line (which is the line before the line number stated by IE)
   http_request.onreadystatechange = alertContents();

changing this line to

    http_request.onreadystatechange = function() {
        if (http_request.readyState == 4) {   
            if (http_request.status == 200 && nameval.length>0) {
                ajaxrendercomponent(nameval);
            } else {
                alert('There was a problem with the request: ' + http_request.responseText);
            }
        } else {
            setTimeout('alertContents()', 4);
        }
    }

seems to have removed the error from showing in the status bar (hopefully this will remove your debug error as well).

With this new code snippet the function alertContents() can be deleted as this has now been imbeded in the code above.


In relation to the Discount section I am working on that for the new version so I see that section is non-working at this point.



Richard

Richard Northcott

unread,
Oct 29, 2008, 12:13:28 PM10/29/08
to kiweec...@googlegroups.com
Looking again at the code its best to leave the last function (alertContents()) as there a line of code that could callt it (ie. setTimeout('alertContents()', 4);)


Richard

Kevin Hoang

unread,
Oct 29, 2008, 10:44:49 PM10/29/08
to KiweeCommerce Forum
Thanks Richard.

According to your instruction, I looked the code, I think it only
change that line to:
http_request.onreadystatechange = alertContents; (leave brackets,
otherwise an Ajax error occurs)

So, its best is keep last function. :D

I got an error when I click "Shipping Zones", and screenshot about
this error in the following image-link:
http://i37.photobucket.com/albums/e51/Dream_h/error_3.png

help me fix this error.

On Oct 29, 10:01 pm, "Richard Northcott" <richard...@gmail.com> wrote:
> Hi Kevin
>

Richard Northcott

unread,
Oct 30, 2008, 5:52:53 AM10/30/08
to kiweec...@googlegroups.com
Hi Kevin

Thanks for the code change for Ajax - simplier than my solution :)

I have checked the error that you have mentioned and I have found that there are issues with 3 of the scriptaculous files (manager/media/script//scriptaculous)

1) prototype.js
'HTMLFormElement' Undefined at Line 1321 Char 5

2) scriptaculous.js
Exception thrown and not caught at Line 36

3) dragdrop.js
Exception thrown and not caught at Line 12 Char 3

The latter ones indicate a 'throw' process/function on or before the indicated line but IE cannot find a follup 'catch' that grabs the response into a varibel (eg. catch(er)) for then deciding how to respond (eg. if(err==(what was thrown)) {})

I know I was looking at the new version of scriptaculous (v1.8.1) a few months ago in the hope that it would improve the performance of the dragdrop function but this didn't appear to help and in fact I think that there were issues so I stuck with the version that comes with MODx (v1.6.4). It's possible the newer version has better handling that IE is happy (or happier with) otherwise I could pull the 3 files into part of the install with modifications that will remedy the IE situation.

I'd be interested in your thoughts.


Richard
Reply all
Reply to author
Forward
0 new messages