Project

General

Profile

Support #3855

Frage zu a) QfqForm.js, b) window.location.replace

Added by Carsten Rose over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Rafael Ostertag
Target version:
-
Start date:
04.06.2017
Due date:
% Done:

0%

Estimated time:
Discuss:

Description

https://project.math.uzh.ch/projects/qfq/repository/revisions/b6cb6285c1ce6597fe8ca6d72d8d2f5b77fa304c/diff/javascript/src/QfqForm.js

a) Zeile 506 (und weitere): Macht das '||' Sinn? Ich habe es gegen '&&' getauscht.

b) QfqForm.js benutzt erfoglreich an mehreren Stellen:

window.location = data['redirect-url'];

Bei der Erweiterung von 'url' zu 'url-skip-history' haette ich erwartet das folgendes funktioniert:

window.location.replace = data['redirect-url'];

Da gibt es aber eine exception: attribute 'replace' is readonly.
Folgendes funktioiniert:

window.location.replace(data['redirect-url']);

History

#1 Updated by Carsten Rose over 3 years ago

  • Project changed from IT to QFQ

#2 Updated by Rafael Ostertag about 3 years ago

  • Status changed from New to Closed

a) that's fine. Was a mistake.
b) JavaScript idiom. Refer to https://developer.mozilla.org/en-US/docs/Web/API/Window/location for more details.

Also available in: Atom PDF