Skip to content

Commit a8f754a

Browse files
Updated readme
1 parent 1d77f82 commit a8f754a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,29 @@
11
# FlashHTTPRequest
2+
3+
A simple Flash bridge for preforming Flash HTTP requests with JavaScript.
4+
5+
### Syntax
6+
```js
7+
FlashHTTPRequest.open( HTTP_METHOD, URI, BODY, JS_CALLBACK );
8+
```
9+
10+
### Example
11+
```html
12+
<!DOCTYPE html>
13+
<html lang="en">
14+
<head>
15+
<meta charset="utf-8"/>
16+
<script src="flashhttprequest.js"></script>
17+
<script>
18+
// Ensure all FlashHTTPRequests are done via window.onload as we need to hook the Flash object
19+
window.onload = function() {
20+
FlashHTTPRequest.open('GET', 'http://example.com/', '', 'alert' );
21+
FlashHTTPRequest.open('POST', 'http://example2.com/POST/', 'test=test&var2=test', 'alert' );
22+
}
23+
</script>
24+
</head>
25+
<body>
26+
<div id="flashBridge"></div>
27+
</body>
28+
</html>
29+
```

0 commit comments

Comments
 (0)