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



Your browser does not support the HTML5 canvas element.


Drag mouse to navigate.

Navigation





17.Aug.2010, Martin Wengenmayer