DIR : /home/kozerus/public_html/matchtest.html
/home/kozerus/public_html
<html>
<head>
<title>matchtest.html</title>
</head>
<body>
<h1>matchtest</h1>
<input type="hidden" value="thestring" name="thestring" id="thestring">
<script id="script_regex" >
regex();
function regex(){
var txt = document.newform.thestring.value;
alert( "BUGS_regex txt="+txt );
var re = new RegExp(document.newform.pfrom.value, "g");
newtxt = txt.replace(re,'');
$("#mif").contents().find("#strDiv").html(newtxt);
}
</script>
<script id="script_replace" >
$('#update').click(function() {
$("#mif").contents().find("#strDiv").each(function() {
var s = '<?=$str;?>',
sel = document.getElementById("tags"),
re;
for (var i = 0, len = sel.options.length; i < len; i++) {
if (sel.options[i].selected) {
re = new RegExp(sel.options[i].text.replace("<", "<\\\\/?").replace(">", "[^>]*?>"), "gi");
s = s.replace(re, "");
}
}
$("#mif").contents().find("#strDiv").html(s);
});
});
</script>
<form>
<input type="radio" name="foo" value="1" checked="checked" />
<input type="radio" name="foo" value="0" />
<input name="bar" value="xxx" />
<select name="this">
<option value="hi" selected="selected">Hi</option>
<option value="ho">Ho</option>
</form>
$("#form input").each(function () {
data[theFieldName] = theFieldValue;
});
<script src="http://code.jquery.com/jquery-git2.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<form>
<input type="radio" name="foo" value="1" checked="checked" />
<input type="radio" name="foo" value="0" />
<input name="bar" value="xxx" />
<select name="this">
<option value="hi" selected="selected">Hi</option>
<option value="ho">Ho</option>
</select>
</form>
<div id=result></div>
<script>
$('#result').html("<br />$('form').serialize():<br />"+ $('form').serialize()+"<br /><br />$('form').serializeArray():<br />" + JSON.stringify($('form').serializeArray()));
</script>
</body>
</html>
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer