~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/modules/plugin/samples/4x-scriptable/test.html

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<HTML>
 
2
<HEAD>
 
3
<TITLE>4x Scriptable Plug-in Test</TITLE>
 
4
</HEAD>
 
5
<BODY>
 
6
 
 
7
<center>
 
8
<h1> XPConnect Scriptable Old Style Sample Plug-in </h1>
 
9
</center>
 
10
 
 
11
This page contains a testcase which demonstrates the work of scriptable 4.x style 
 
12
Navigator plug-in with Mozilla. The example plug-in occupies the area right below this text,
 
13
and you should see a frame the plug-in draws around its window. Below the plug-in window 
 
14
there are two buttons. Clicking on the buttons will result in calling native plugin 
 
15
methods from JavaScript. Show Version will instruct the plug-in to retrieve the 
 
16
Mozilla user agent string and display it in the plug-in window, Clear button will
 
17
call plug-in method to erase the window.
 
18
 
 
19
<br><br>
 
20
 
 
21
<center>
 
22
 
 
23
<embed type="application/mozilla-4x-scriptable-plugin" width=600 height=40><br>
 
24
 
 
25
<script>
 
26
var embed = document.embeds[0];
 
27
 
 
28
function ShowVersion()
 
29
{
 
30
  embed.showVersion();
 
31
}
 
32
 
 
33
function Clear()
 
34
{
 
35
  embed.clear();
 
36
}
 
37
</script>
 
38
 
 
39
<br>
 
40
<form name="formname">
 
41
<input type=button value="Show Version" onclick='ShowVersion()'>
 
42
<input type=button value="Clear" onclick='Clear()'>
 
43
</form>
 
44
 
 
45
</center>
 
46
 
 
47
</BODY>
 
48
</HTML>