Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Edit online: problem with Apple / Safari

  1. #1
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default Edit online: problem with Apple / Safari

    Hello everyone,
    I made a very elementary online editor. Just raw text. It seems to work with Windows, but people have told me that there are problems with Apple/Mac.
    If you are willing to help me in solving the problem, please follow this link to a demo.
    Thanks, Arie.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Works fine in Safari Win 7. I would suspect that in the offending OS/browser combo that this:

    Code:
    $('#content').get(0).onkeyup
    would be null or equivalent, or possibly 'native code'. Anything but it's assigned value*. If such is the case, you might have better luck assigning the event via jQuery, and/or utilizing other similar events. Change is one that comes to mind.


    *onkeyup assigned value according to the console in Safari Win, Chrome, and Opera:
    Code:
    function onkeyup(event) {
      update();frames.ifr.document.body.innerHTML=document.getElementById('content').innerHTML;update()
    }
    One other possibility that springs to mind is that - if you are not testing this yourself, rather relying upon reports from others, that they might have used cut and paste with the mouse or other pointing device, finger, etc. If so, onkeyup would never have fired.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Thanks John (and Beverley). I'll try your suggestions.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If there is an onedit/oncontentedit event - something that fires during or once editing is complete, that might be good. There's always the possibility that the event(s) and/or the editable property you are relying upon might be unsupported in the problematic environment.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    I already tried that
    The problem seems to be some 'lazyness' in the Apple/Mac combo.
    The simple editor for which I gave you the link actually is a simplified version of a more complex editor (in Dutch) that can be found here. When people edit the page (in the Apple/Mac-environment) and then click on 'Opslaan' (=save: top right, red button), nothing seems to have changed. But when they close the browser and then reopen it, the changes ARE THERE. Mystery!
    EDIT: THIS MAY EXPLAIN A LOT.
    Last edited by molendijk; 09-14-2014 at 08:22 PM.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    A little like I said. But rather than a complete lack of support, incomplete, spotty support.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    512
    Thanks
    9
    Thanked 61 Times in 59 Posts

    Default

    May i ask to help you with whatever you are doing?
    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

  8. #8
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Sure, thanks for offering me your assistance.
    At the moment, I'm developing a (Dutch) editor that saves the edits (made online) for all browsers. I'm using the HTML5 contenteditable feature. One of the files I made for a Dutch website is this one (people are allowed to change there whatever they want, as an exercise). The button 'Opslaan' (top right) is the save button.
    Now, what some users told me is that everything works well with any OS/browser combo, except with Apple/Mac/Safari. So I decided to ask in this thread if DD-users can confirm this. To make things simple enough, I presented an elementary version of my editor in #1.
    That's it. Thanks again for offering assistance.

  9. #9
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    512
    Thanks
    9
    Thanked 61 Times in 59 Posts

    Default

    What happens when two people edit the file at the same time and save it at the same time?
    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

  10. #10
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    That may be a problem. It will not likely occur in my case, because edit permissions have been regulated in the real situation.
    But you're right in a general way. Avoiding conflicting edit occurrences should be a concern.

Similar Threads

  1. Resolved PHP coding for online form problem
    By kimikai in forum PHP
    Replies: 0
    Last Post: 03-09-2014, 09:30 PM
  2. Replies: 53
    Last Post: 01-26-2011, 08:14 PM
  3. Dynamic Ajax Content on Apple Safari
    By jamesglondon in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 12-03-2008, 04:42 PM
  4. Problem with Apple style accordian menu
    By ctworion in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 11-17-2008, 08:04 PM
  5. Redirecting Apple's Safari
    By Cletus in forum JavaScript
    Replies: 3
    Last Post: 03-20-2006, 04:10 PM

Bookmarks

Posting Permissions

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