Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript/Browser problem

    Hi,

    Our programmer is having problems with a text-tool made with javascript.
    His description is:

    There is no function that don't work, what work in Firefox not work in Chrome

    if ($.browser.webkit) {
    this.setZoom();
    };
    line 269
    if you will remove it (so no change of zoom), then you will see bug in Chrome
    and line 265
    if($.browser.mozilla && $.browser.version > 12) {
    $('#workarea').css('overflow', 'hidden');
    };
    if you will remove it - you will see bug in Firefox


    Does anyone recognize this problem?
    If you think you can fix it, pm me your price.

  • #2
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this.toEditMode = function(obj) {
    this.setVars(obj);
    if($.browser.mozilla && $.browser.version > 12) {
    $('#workarea').css('overflow', 'hidden');
    };
    $(curbody).enableSelection();
    if ($.browser.webkit) {
    this.setZoom();
    };
    editmode = true;
    selected = true;
    $(curbody).css('cursor', 'auto');
    curbody.contentEditable = "true";
    $(curbody).attr('contenteditable', 'true');
    curframe.contentWindow.document.contentEditable=true;
    curframe.contentWindow.document.designMode="on";
    curbody.contentEditable=true;
    curbody.designMode="on";
    svgCanvas.setEnhtextMode('edit');
    this.refreshWindow();
    };


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •