Not signed in ( Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorlaborix
    • CommentTimeAug 22nd 2010 edited
     permalink
    I'm working this evening on a laptop and there is IE 8 installed. I can do many things in the admin panel with IE 8, but in the widgets the drag and drop won't work. I you use Chrome, FF, Safari or Opera there are no problems with drag and drop.

    IE 8 can move the widget, but after exact positioning there is only a red transparent rectangle. If you next press save, nothing will happen.

    Edit:
    I tried at the moment Flatpress 0.909.1 and there are no problems with the widgets positioning and IE 8.
    •  
      CommentAuthorNoWhereMan
    • CommentTimeAug 23rd 2010
     permalink
    i have switched the js library to jquery thanks to a contribution by pierovdfn, let's see if he knows how to fix
    •  
      CommentAuthorNoWhereMan
    • CommentTimeAug 23rd 2010 edited
     permalink
    making vars local (var myVar = ...) fixes part of the issue, but raises another problem: http://dev.jqueryui.com/ticket/4333 (when trashing a widget)
    •  
      CommentAuthorpierovdfn
    • CommentTimeAug 23rd 2010
     permalink
    Posted By: NoWhereMani have switched the js library to jquery thanks to a contribution by pierovdfn, let's see if he knows how to fix


    Hi, thanks for the bug report.



    Posted By: laborixI'm working this evening on a laptop and there is IE 8 installed. I can do many things in the admin panel with IE 8, but in the widgets the drag and drop won't work. I you use Chrome, FF, Safari or Opera there are no problems with drag and drop.

    IE 8 can move the widget, but after exact positioning there is only a red transparent rectangle. If you next press save, nothing will happen.

    This error could be caused by
    $(this).replaceWith(replace);

    Posted By: NoWhereManmaking vars local (var myVar = ...) fixes part of the issue, but raises another problem:http://dev.jqueryui.com/ticket/4333(when trashing a widget)

    I haven't read very well comments but I've found a solution with Google.

    I don't know if it works but I'll test when I can use a computer with IE8.
    •  
      CommentAuthorNoWhereMan
    • CommentTimeAug 23rd 2010 edited
     permalink
    sorry, the bug is actually http://dev.jqueryui.com/ticket/4550
    •  
      CommentAuthorpierovdfn
    • CommentTimeAug 23rd 2010
     permalink
    Posted By: NoWhereMansorry, the bug is actuallyhttp://dev.jqueryui.com/ticket/4550

    Thanks but is fixed (version 1.7.1) in r3103.
    The only thing to do is using console.* (IE 8 developer tools) to search errors.
    •  
      CommentAuthorNoWhereMan
    • CommentTimeAug 23rd 2010 edited
     permalink
    Posted By: pierovdfnThanks but is fixed (version 1.7.1) in r3103.


    O RLY ? ;) maybe a regression?
    •  
      CommentAuthorlaborix
    • CommentTimeAug 23rd 2010
     permalink
    IE 8 status line: errors on page:
    Details zum Fehler auf der Webseite

    Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Zeitstempel: Mon, 23 Aug 2010 14:03:14 UTC


    message: not supported
    line: 75
    char: 4
    Code: 0
    URI: http://.../htdocs/flatpress/admin/panels/widgets/admin.widgets.js


    IE 8 developer toolbar:
    <li class="widget-id-archives ui-draggable widget-dragger ui-draggable-dragging" style="position: absolute; filter: alpha(opacity=70); BACKGROUND-COLOR: #b31; list-style-type: none; width: 213px; zoom: 1; top: 856px; left: 171px;">
    <input name="avalwidg[]" class="widget-id" type="hidden" value="archives"/>
    empty text
    <p>text archive


    The developer toolbar code is that code, on which the red transprent rectangle is present after moving a widget.
    •  
      CommentAuthorNoWhereMan
    • CommentTimeAug 23rd 2010 edited
     permalink
    committed change, won't crash anymore on adding a new widget, will throw an error as mentioned on trashing
    •  
      CommentAuthorlaborix
    • CommentTimeAug 23rd 2010
     permalink
    Posted By: NoWhereMan... will throw an error as mentioned on trashing

    Thanks for the fix, it work on Windows XP and IE 8.

    But where is the mentioned error display after moving a widget to the trash? I get no error or I'm dummy?
    •  
      CommentAuthorpierovdfn
    • CommentTimeAug 23rd 2010
     permalink
    Posted By: NoWhereMan
    Posted By: pierovdfnThanks but is fixed (version 1.7.1) in r3103.


    O RLY? ;) maybe a regression?


    Sorry, I didn't kown.

    I haven't understood very well the error (the red rectangle doesn't disappear?), however I think you can solve your problem with replaceWith if it's not a selector problem:
    var replace=$('<li class="trash-item"></li>');
    $('.widget-dragger').replaceWith(replace); // For the red rectangle


    I have another idea for options doesn't exists: adding the options member to $('.widget-class').draggable
    •  
      CommentAuthorNoWhereMan
    • CommentTimeAug 23rd 2010
     permalink
    the problem is subtle, there is something in the code which gets called/referenced but it has in fact been destroyed somewhere else.

    At the moment this doesn't seem to have consequences with something visible on the web page, but IE still reports the error in the status bar, which in some cases might come up as an annoying popup request to start debugging.
    •  
      CommentAuthorpierovdfn
    • CommentTimeAug 23rd 2010
     permalink
    For statusbar error If I remember right the solution can be
    document.error=true;
    //or
    function dummy() {
    return true;
    }
    document.error=dummy;
    •  
      CommentAuthorNoWhereMan
    • CommentTimeAug 23rd 2010
     permalink
    document.error=true;


    that is evil! :D

    btw, r345 contains a workaround which works cross-browser and doesn't seem to affect anything (apart from my conscience).

    Joking aside, I don't think IE is completely wrong on this one, I would prefer to actually fix the problem instead of working around it. Oh, well, in the meantime...