great tool - some notes

22 views
Skip to first unread message

stot

unread,
Jan 17, 2011, 4:11:10 PM1/17/11
to writeCapture.js Users
Hello guys,

you created a great tool that works for me like a charm.
Nevertheless I got some trouble running this script.

Here are some things to check when you run into problems (working
example below):
1. include jquery + writeCapture + jquery.writeCapture (if you use it
with query). This was not clear after reading the docs in github ...
2. you have to obfuscate the script string within document.write


the output of this example is FooBar



<html>
<head>
<script type="text/javascript" src="/js/jquery/
jquery-1.4.4.min.js"></script>
<script src="../writeCapture.js" type="text/javascript"
charset="utf-8"></script>
<script src="../plugin/jquery.writeCapture.js" type="text/
javascript" charset="utf-8"></script>


<script type="text/javascript">
$(document).ready(function() {
$('#foo').writeCapture('html','Foo<s'+'cript type="text/
javascript">document.write("Bar");</s'+'cript>');
});
</script>

</head>
<body>

<div id="foo"> </div>

</body>
</html>
Reply all
Reply to author
Forward
0 new messages