Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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.

Warum lädt mein Applet im DIV nicht

Empfohlene Antworten

Veröffentlicht

Hallo,

ich hatte vor mir mittels HTML und JavaScript einen Preloader für mein Applet zu bauen..

und zwar so:

Ich habe 2 Div Tags in denen zum einen mein preloader steht und im anderen mein Applet. Nun sage ich zu begin das der Applet-Div-Tag den style visibility:hidden hat.

Wenn das applet fertig geladen ist, ruft es eine javascript methode auf die das ganze umdrehen und den Preload-Div-Tag verstecken soll.

Nur leider seh ich am Logfile meines Applets, das dort gar nix passiert. Also das Applet läd nicht, solange der Div-Tag versteckt ist.

Nachtrag: Der Preloader ist einfach nur ein Text und eine Sanduhr im <img> tag. Also nicht noch ein Applet.

Könnt ihr mir helfen?

Danke

du könntest auch dein div indem das applet geladen wird testhalber mit

"position:absolute: top:-3500px" ausserhalb des sichtbereichs stellen und dann per javascript den top wert auf z.B. 0 setzen damit es im sichtfeld ist.

das könnte dein problem aber nur dann lösen wenn es sicher ist, dass es an der visibility hidden eigenschaft liegt, wenn dein applet nicht geladen wird

Hab es rausgefunden... Oder zumindest eine Lösung gefunden. ;)

Ich mache das Applet erst nach 60ms unsichtbar, und wenn es fertig mit laden ist wieder sichtbar.

Also quasi als Anstoss, damit es anfängt zu laden. So funktioniert es.

danke trotzdem

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.