質問編集履歴
2
内容の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -132,4 +132,21 @@
|
|
132
132
|
$meth=new Method($db);
|
133
133
|
|
134
134
|
echo 1;
|
135
|
+
```
|
136
|
+
|
137
|
+
追記2
|
138
|
+
```javascript
|
139
|
+
$(function(){
|
140
|
+
$('#selectedImage').on('change', function () {
|
141
|
+
var selectedImage = $('#selectedImage').val();
|
142
|
+
$("#ajax").text("データの取得中です");
|
143
|
+
$.ajax({
|
144
|
+
type: 'GET',
|
145
|
+
url: entry_url + "ajax.php?selectedImage=",//entry_urlはローカルのurl
|
146
|
+
data: selectedImage
|
147
|
+
}).done(function(data){
|
148
|
+
console.log(data);
|
149
|
+
});
|
150
|
+
});
|
151
|
+
});
|
135
152
|
```
|
1
内容の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -95,4 +95,41 @@
|
|
95
95
|
もしくは不可能なのでしょうか、、
|
96
96
|
|
97
97
|
ちなみに、javascriptは動いているのは確認できました。
|
98
|
-
どなたか、ご教授お願いします。m(-_-)m
|
98
|
+
どなたか、ご教授お願いします。m(-_-)m
|
99
|
+
|
100
|
+
追記
|
101
|
+
```javascript
|
102
|
+
$(function(){
|
103
|
+
$('#selectedImage').on('change', function () {
|
104
|
+
var selectedImage = $('#selectedImage').val();
|
105
|
+
$("#ajax").text("データの取得中です");
|
106
|
+
$.ajax({
|
107
|
+
type: 'GET',
|
108
|
+
url: entry_url + 'ajax.php?selectedImage=' + selectedImage,
|
109
|
+
dataType:'JSON',
|
110
|
+
data: selectedImage
|
111
|
+
}).done(function(data){
|
112
|
+
console.log(data);
|
113
|
+
});
|
114
|
+
});
|
115
|
+
});
|
116
|
+
```
|
117
|
+
```php
|
118
|
+
<?php
|
119
|
+
namespace prototype;
|
120
|
+
|
121
|
+
require_once dirname(__FILE__) . '/Bootstrap.class.php';
|
122
|
+
|
123
|
+
use prototype\Bootstrap;
|
124
|
+
use prototype\lib\PDODatabase;
|
125
|
+
use prototype\lib\Session;
|
126
|
+
use prototype\lib\Item;
|
127
|
+
use prototype\lib\Method;
|
128
|
+
|
129
|
+
$db=new PDODatabase(Bootstrap::DB_HOST, Bootstrap::DB_USER,Bootstrap::DB_PASS,Bootstrap::DB_NAME,Bootstrap::DB_TYPE);
|
130
|
+
$ses=new Session($db);
|
131
|
+
$itm=new Item($db);
|
132
|
+
$meth=new Method($db);
|
133
|
+
|
134
|
+
echo 1;
|
135
|
+
```
|