Hallo,
habe ein Problem: Ich schicke etwas ab (via Ajax/JQuery)
|
JavaScript Code
|
1
2
3
4
|
var response = $.ajax({
url: "galerie.php?NO_DESIGN=true&rename="+oldname+"&newname="+name,
async: false
}).responseText;
|
Will response nutzen und nur den Text ausgegeben bekommen. Jedoch liefert mir response.text() auch gewisse Teile aus dem Header.
Die Seite, die geladen wird, sieht so aus:
|
HTML Code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="ISO-8859-15">
<title>Controll Area</title>
<!-- The below script Makes IE understand the new html5 tags are there and applies our CSS to it -->
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<style type="text/css" media="all">@import "./src/stylesheet.css";</style>
<style type="text/css" media="all">@import "./src/form.css";</style>
<style type="text/css" media="all">@import "./src/table.css";</style>
</head>
<body> foobar</body></html>
|
Er gibt mir halt die CSS-Imports und den Titel der Seite aus.
Stehe gerade voll auf dem Schlauch und verstehe nicht, warum es mit text() nicht funktioniert. An "foobar" möchte ich ran.