Page History
...
Code Block |
---|
var html = (<html>
<head>
<script src="media:///jquery-1.6.2.min.js" type="text/javascript"></script>
<!--JQuery Tweet plugin: http://tweet.seaofclouds.com/-->
<script src="media:///jquery.tweet.js" type="text/javascript"></script>
<style src="media:///jquery.tweet.css" media="all" rel="stylesheet" type="text/css"/>
<script type='text/javascript'>
<![CDATA[
function initTweets() {
$(".tweet").tweet({
username: "servoy",
avatar_size: 32,
count: 100,
loading_text: "Getting you the latests tweets right now...",
refresh_interval: 60,
template: '{avatar}{text}<span>{time} - {retweet_action} - {reply_action} - {favorite_action}</span>'
}).bind("empty", function() { $(this).append("No matching tweets found"); });
}
]]>
</script>
</head>
<body onload="initTweets()">
<div class="tweet" style="width: 100%; height: 100%"></div>
</body>
</html>).toXMLString().replace(']]>', '').replace('<![CDATA[', '');
|
...
This example shown the creation of a callback to the Web Client business logic that runs on the Server.
...
...
create
...
a
...
button
...
element,
...
make
...
is
...
invisible
...
through
...
css
...
(visibility:
...
hidden)
...
and
...
through
...
JavaScript
...
click
...
the
...
button:
...
Code Block |
---|
var html = (<html>
<head>
<script>
<![CDATA[
var x = 10;
var y = 10;
function doCallback() {
document.getElementById("myCoordinatesCallbackHandler").click()
}
]]>
</script>
</head>
<body>
<button id="myCoordinatesCallbackHandler" onclick="javascript:globals.myCoordinatesCallbackMethod(browser:x, browser:y)" style="visibility: hidden">dummy</button>
</body>
</html>).toXMLString().replace(']]>', '').replace('<![CDATA[', '');
|
Interacting with the browser environment through the WebClientUtils plugin
...
Overview
Content Tools
Activity