Sha256: d0b484f929fba6a808694a958f7a6733c7970e70a057de3b5306c56cdf9ddf1c

Contents?: true

Size: 757 Bytes

Versions: 1

Compression:

Stored size: 757 Bytes

Contents

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>PostBridge Example</title>
<script type="text/javascript" charset="utf-8">
function redirect(url, data) {
    var form = document.createElement('form'),
        textarea;

    form.style.display = 'none';
    form.setAttribute('method', 'POST');
    form.setAttribute('action', url);

    for (key in data) {
        if (data.hasOwnProperty(key)) {
            textarea = document.createElement('textarea');
            textarea.setAttribute('name', key);
            textarea.value = data[key];
            form.appendChild(textarea);
        }
    }

    document.body.appendChild(form);
    form.submit();
}
</script>
</head>
<body>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tui_editor-rails-1.0.2.0 vendor/assets/components/tui-code-snippet/demo/postBridge/public/postBridge.html