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.

jQuery get() kann kein 302 Redirect?

Empfohlene Antworten

Hallo,

ich mache einen GET Request mit jquery...

$.get("http://ad-emea.doubleclick.net/ad/N1203.smartclipDE.xenion.de/B5208957;sz=1x1;ord=7878787878?");

...dahinter liegt ein Redirect auf...

http://s0.2mdn.net/viewad/1603086/32-default.gif

...der aber nicht ausgeführt wird. In der Safari Fehler Konsole bekomme ich immer "Failed to load recource". Wenn ich die URL (oben) in den Browser eingebe dann funzt der Redirect. Nur in meinem Script nicht.

Ich hab mit der gleichen Funktion ein Redirect auf ein xml file und das funzt.

Warum geht das nicht bei einem .gif?

Danke!!!

Jens

Das .gif ist ein Zählpixel, mehr nicht. Wenn ich das .gif direkt mit $get aufrufe bekomme ich eine Response Code 200 zurück. Nur der Redirect funktioniert halt nicht.

wenn ich das gif per $.get laden möchte bekomme ich gar nichts (status = 0).

lade ich bilder oder sonstwas vom gleichen webserver auf dem das script liegt, keine probleme. dann funktioniert auch ein redirect auf ein bild.

eine mögliche Lösung wäre per $.get() ein html schnipsel zu laden der das bild einbindet.

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.