First I must apologize Halnex for calling you Helix this whole time. I attempted to try your code but I am not getting my submit page to show up and I’m not completely sure why. Note I just copied the source code of JQuery to a file inside of one of my folders inside the folder holding these html pages.
<!DOCTYPE HTML>
<html>
<HEAD>
<title>WELCOME TO MY FORM PAGE</title>
<link rel="stylesheet type="text/css" href="style/style.css">
<script src="jquery-1.12.4.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#button1').click(function(){
$('#response').load('form_submit.html');
});
});
</script>
</HEAD>
<BODY>
nur zwei Textfelder nichts besonderes. Wie bekomme ich Javascript, um eine Schaltfläche zum Öffnen einer anderen HTML-Seite zu erhalten?
Anmeldungen
Benutzername:Passwort:
Ich bin nicht sicher, ob diese beiden Linien richtig sind. Sollte vielleicht die Eingabezeile das div oder etwas so verrückt verpacken?
Maybe my issue is with my code on my file I’m trying to load (form_submit.html)? This is all I have on my form_submit.html file: Does this code below for the submission page look acceptable or could this be where I am failing?
<!DOCTYPE HTML>
<html>
<head>
<title>User Submission Page</title>
</head>
<body>
Here are the details of the submitted form:
</body>
</html>
Können Sie uns zeigen die ganze HTML bitte? – patrickcipot
Wollen Sie auf eine andere Seite gehen, verwenden Sie einfach in der JS-Datei // Ähnliches Verhalten wie eine HTTP-Weiterleitung window.location.replace ("http://stackoverflow.com"); Aber wenn Sie einige Server HTML aus dem Browser JavaScript lesen möchten, ist es einfach unmöglich. Dies ist Basis-Sicherheit .. Sie können Aufruf an einige API bekommen HTML-Daten-Antwort und dann etwas damit zu tun. Aber es klingt einfach nicht richtig. –
Ihre js reicht einfach ein Formular aus und greift nicht auf eine andere Seite zu. – Craneum