Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dimoff

Members
  • Joined

  • Last visited

  1. Hi guys, I have a variation of PONG that I have created but it works only in Chrome. In IE and Firefox the balls do not want to change directions after hitting the bottom/top walls - they respond only to paddle and right wall it seems like the content of the if statements for them never get executed and I have no idea why. would really appreciate it if somebody helps me. The game can be found at: http://ponger.byethost10.com/ Dimoff P.S: Resolved
  2. @jakdothtml - Yes, I mean that some of the code within mainCode.js executes in the php file but not the form - the form executes as expected only in an html file with the same contents. Can you clarify what do you mean by "the body is loading differently"?
  3. @BrowserBugs, the path is not incorrect as some of the js code executes just fine. The pages are in the same directory for now so the path stays correct. I can give you a link to the website but it is not pretty at all and it is in Cyrillic.
  4. @jakdothtml, the only thing that changes is two includes in the beginning of the page and one include at the end of the page. I have inserted the js after the last include and before the end of the body tag: <script src="js/mainCode.js" type="text/javascript"> </script> </body> I do not know what's at fault but it is worth mentioning that I have a loaded jquery in the head tag with a couple more of .js files (for a slider).
  5. I have the following form in a website: http://jsbin.com/hihodaxa/3/, it works when the file is html but when I make it php so i can use include (templates), it doesn't work. The rest of the JS code executes fine. The content is not in English. My question is how should I redesign the js code so that the js executes properly in a php file? The js code in the link is from an external file <link href="mainCode.js" type="text/javascript"> placed in the php file. As far as I read in the Internet, this should work. Any help is much appreciated. Best, Ivan

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.