/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] jquery / javascript in html vs php generated html output

… I am not able to find an error – I am not able to find a solution:

I have got a html page:

[url]http://karate-kampfkunst.de/kata/schiebepuzzle/bassai_dai_puzzle_timer/drag_drop_sort_kata_bassai_dai/sorting.html[/url]

now I took the complete code into a php file and added some unimportant lines to the “bottom”:

[url]http://karate-kampfkunst.de/kata/schiebepuzzle/bassai_dai_puzzle_timer/drag_drop_sort_kata_bassai_dai/sorting.php[/url]

the rendered page is almost the same (only the new lines at the bottom are different).

But the javascript is not working – all resources are loaded, all scripts are present – all file sizes are the same – and if a button is clicked no error will occur. But the functionalty of the javascript code is “corrupted”.

For example (click on the “unionjack” for english version):

  • if you click on “kleine Bilder” / “small pictures” in the “html” version, the boxes are resized and the pics are changed

  • if you click the same button in the “php” version, the boxes are resized but the pictures are not changed
  • If you click “kleine Bilder” / “small pictures” once in the php version, the function of the button “ich gebe auf – Uff” / “resign – solve it automatic” will not longer work correctly.

    What is happening here?

    to post a comment
    JavaScript

    1 Comments(s)

    Copy linkTweet thisAlerts:
    @karandreasauthorDec 22.2014 — arrrghhh - found it - shame on me - I have changed the name of the file to php - but not the (referenced) filename inside the code.

    To simple to see it without talking about ?
    ×

    Success!

    Help @karandreas spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.19,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...