Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Embedded pen not working as expected

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #192903
    Shikkediel
    Participant

    So I’ve been scribbling this demo together that’s tested back and forth in an effort to account for all circumstances. Seems to work nicely on Codepen but when embedded, the margins applied with js don’t seem to work. Clicking on ‘align’ will ignore the new values :

    http://codepen.io/Shikkediel/pen/dPOVJp?editors=011

    Anybody have an idea what is causing this? Not a clue myself…

    Edit – it must have something to do with passing the margins as an array but that should be (and is normally) fine with jQuery 1.9+.

    #192910
    Shikkediel
    Participant

    Very odd… it doesn’t work on the full pages either, just in editor mode.

    #193093
    Shikkediel
    Participant

    Solved – had nothing to do with the margins or how they were assigned. The other pages had trouble with the window onload event.

    Well, not actually solved but the cause is known now…

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.