質問編集履歴
1
簡易でございますが、状況を追記いたしました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,4 +5,34 @@
|
|
5
5
|
|
6
6
|
書き方が拙く申し訳御座いませんが、
|
7
7
|
どなたか知恵をお借りできたらと思います。
|
8
|
-
宜しくお願いします。
|
8
|
+
宜しくお願いします。
|
9
|
+
|
10
|
+
追記:
|
11
|
+
簡易でございますが、下記の状況でおります。
|
12
|
+
|
13
|
+
遷移元が下記の場合(『method="get"』)
|
14
|
+
<form name="form_serach" id="form_serach" method="get" action="http://test-hogehoge.com/item/">
|
15
|
+
<input type="hidden" name="id" value="2">
|
16
|
+
<input type="hidden" name="code" value="aa-203">
|
17
|
+
<input type="hidden" name="page" value="9">
|
18
|
+
</form>
|
19
|
+
↓
|
20
|
+
遷移先のjクエリー(『$(location).attr('href')』)
|
21
|
+
console.log($(location).attr('href'));
|
22
|
+
↓
|
23
|
+
http://test-hogehoge.com/item/?id=2&code=aa-203&page=9
|
24
|
+
URL全文が取得できる(課題解決)。
|
25
|
+
|
26
|
+
遷移元が下記の場合(『method="post"』)
|
27
|
+
<form name="form_serach" id="form_serach" method="post" action="http://test-hogehoge.com/item/">
|
28
|
+
<input type="hidden" name="id" value="2">
|
29
|
+
<input type="hidden" name="code" value="aa-203">
|
30
|
+
<input type="hidden" name="page" value="9">
|
31
|
+
</form>
|
32
|
+
↓
|
33
|
+
遷移先のjクエリー(『$(location).attr('href')』)
|
34
|
+
console.log($(location).attr('href'));
|
35
|
+
↓
|
36
|
+
http://test-hogehoge.com/item/
|
37
|
+
URL全文が取得できない(課題未解決)。
|
38
|
+
method="post"でも、パラメタを含めたURL全文を取得したいと思ってます。
|