зеркало из https://github.com/mozilla/pjs.git
Fixing 38274
This commit is contained in:
Родитель
a9f7a0966f
Коммит
a14a375e7a
|
@ -1,149 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_OLE_RESOURCES\r\n"
|
||||
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
|
||||
"\r\n"
|
||||
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
|
||||
"#ifdef _WIN32\r\n"
|
||||
"LANGUAGE 9, 1\r\n"
|
||||
"#pragma code_page(1252)\r\n"
|
||||
"#endif\r\n"
|
||||
"#include ""res\\CharFlipper.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
|
||||
"#include ""afxres.rc"" // Standard components\r\n"
|
||||
"#endif\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
#ifndef _MAC
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,0,1
|
||||
PRODUCTVERSION 1,0,0,1
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904e4"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "\0"
|
||||
VALUE "FileDescription", "Simple Example Plugin\0"
|
||||
VALUE "FileExtents", "smp\0"
|
||||
VALUE "FileOpenName", "Simple Plugin File (*.smp)\0"
|
||||
VALUE "FileVersion", "1, 0, 0, 1\0"
|
||||
VALUE "InternalName", "CHARFLIPPER\0"
|
||||
VALUE "LegalCopyright", "Copyright © 1996\0"
|
||||
VALUE "MIMEType", "application/x-simple-plugin\0"
|
||||
VALUE "OriginalFilename", "NPSimp32.dll\0"
|
||||
VALUE "ProductName", "HelloWorld Example Plugin\0"
|
||||
VALUE "ProductVersion", "1, 0, 0, 1\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1252
|
||||
END
|
||||
END
|
||||
|
||||
#endif // !_MAC
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
#define _AFX_NO_SPLITTER_RESOURCES
|
||||
#define _AFX_NO_OLE_RESOURCES
|
||||
#define _AFX_NO_TRACKER_RESOURCES
|
||||
#define _AFX_NO_PROPERTY_RESOURCES
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE 9, 1
|
||||
#pragma code_page(1252)
|
||||
#endif
|
||||
#include "afxres.rc" // Standard components
|
||||
#endif
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
|
@ -12,7 +12,7 @@ from JavaScript.
|
|||
|
||||
<center>
|
||||
|
||||
<EMBED type=application/x-simple-plugin name="simple1" width=400 height=300>
|
||||
<EMBED type=application/x-simple name="simple1" width=400 height=300>
|
||||
|
||||
<script>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ JavaScript button, it will tell you another thing or two.
|
|||
|
||||
<center>
|
||||
|
||||
<EMBED type=application/x-simple-plugin name="simple1" width=400 height=300>
|
||||
<EMBED type=application/x-simple name="simple1" width=400 height=300>
|
||||
|
||||
<form>
|
||||
<input type=button value="Click Me"
|
||||
|
|
|
@ -1,149 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_OLE_RESOURCES\r\n"
|
||||
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
|
||||
"\r\n"
|
||||
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
|
||||
"#ifdef _WIN32\r\n"
|
||||
"LANGUAGE 9, 1\r\n"
|
||||
"#pragma code_page(1252)\r\n"
|
||||
"#endif\r\n"
|
||||
"#include ""res\\CharFlipper.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
|
||||
"#include ""afxres.rc"" // Standard components\r\n"
|
||||
"#endif\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
#ifndef _MAC
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,0,1
|
||||
PRODUCTVERSION 1,0,0,1
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904e4"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "\0"
|
||||
VALUE "FileDescription", "Simple Example Plugin\0"
|
||||
VALUE "FileExtents", "smp\0"
|
||||
VALUE "FileOpenName", "Simple Plugin File (*.smp)\0"
|
||||
VALUE "FileVersion", "1, 0, 0, 1\0"
|
||||
VALUE "InternalName", "CHARFLIPPER\0"
|
||||
VALUE "LegalCopyright", "Copyright © 1996\0"
|
||||
VALUE "MIMEType", "application/x-simple-plugin\0"
|
||||
VALUE "OriginalFilename", "NPSimp32.dll\0"
|
||||
VALUE "ProductName", "HelloWorld Example Plugin\0"
|
||||
VALUE "ProductVersion", "1, 0, 0, 1\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1252
|
||||
END
|
||||
END
|
||||
|
||||
#endif // !_MAC
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
#define _AFX_NO_SPLITTER_RESOURCES
|
||||
#define _AFX_NO_OLE_RESOURCES
|
||||
#define _AFX_NO_TRACKER_RESOURCES
|
||||
#define _AFX_NO_PROPERTY_RESOURCES
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE 9, 1
|
||||
#pragma code_page(1252)
|
||||
#endif
|
||||
#include "afxres.rc" // Standard components
|
||||
#endif
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
|
@ -12,7 +12,7 @@ from JavaScript.
|
|||
|
||||
<center>
|
||||
|
||||
<EMBED type=application/x-simple-plugin name="simple1" width=400 height=300>
|
||||
<EMBED type=application/x-simple name="simple1" width=400 height=300>
|
||||
|
||||
<script>
|
||||
|
||||
|
|
|
@ -1,72 +0,0 @@
|
|||
<HTML>
|
||||
<H1> Simple LiveConnect Sample Plug-in </H1>
|
||||
|
||||
<p> This sample plug-in demonstrates how to write a
|
||||
LiveConnect-enabled plug-in. You should see in the plug-in rectangle
|
||||
below the text "Hello World" and messages written to the Java Console
|
||||
and to stdout to tell you what it's doing. And if you click the
|
||||
JavaScript button, it will tell you another thing or two.
|
||||
|
||||
<HR>
|
||||
|
||||
<center>
|
||||
|
||||
<EMBED type=application/x-simple-plugin name="simple1" width=400 height=300>
|
||||
|
||||
<form>
|
||||
<input type=button value="Click Me"
|
||||
onclick='document.simple1.doit("Hello from JavaScript!")'>
|
||||
</form>
|
||||
|
||||
<h4>Open the Java Console (under the Options menu) to see the
|
||||
output!</h4>
|
||||
|
||||
</center>
|
||||
|
||||
<h4>Problems?</h4>
|
||||
|
||||
<ul>
|
||||
|
||||
<p><li><b>I don't see any output in the Java Console or to stdout</b>:
|
||||
This is probably because the Simple.class file isn't installed
|
||||
correctly. For Macintosh, the class file must be in "System
|
||||
Folder:Preferences:Netscape Ÿ:Java:netscape-classes". (In the next beta
|
||||
release it should be possible to simply place the class file in the
|
||||
plugins directory.) For Windows, the class file should be in the Plug-in
|
||||
folder along side the DLL.
|
||||
|
||||
<p><li><b>I still don't see any output in the Java Console or to
|
||||
stdout</b>: This may be because you don't have your moz3_0.zip file in
|
||||
the proper place. Try visiting a page with an applet to see if it
|
||||
works. Also make sure that Java isn't disabled (under the Options
|
||||
menu, Network Preferences..., Language).
|
||||
|
||||
<p><li><b>I get a dialog offering to download the plugin</b>: This is
|
||||
most likely because the Plug-in file (npsimple.dll on Windows,
|
||||
npsimple.so on Unix, or SimplePPC on PowerPC Mac) isn't installed in the
|
||||
plug-in directory. Also check that the list of helpers (under Options,
|
||||
General Preferences..., Helpers) contains an entry for type
|
||||
application/x-simple-plugin that names the Simple LiveConnect Sample
|
||||
Plug-in.
|
||||
|
||||
<p><li><b>I get Java Console output, but nothing to stdout</b>: If
|
||||
you're on a Mac, forget it. You'll never see stdout. If you're on a
|
||||
Windows machine and you launched the Navigator by double clicking an
|
||||
icon, you also won't get any stdout.
|
||||
|
||||
<p><li><b>When I click the button, I get an error dialog from
|
||||
JavaScript saying "Window.Function.Document.simple1 has no
|
||||
properties."</b>: This is because the Simple.class file was not found
|
||||
in the Plug-ins directory. You'll also notice that you're not getting
|
||||
any messages to the console in this case.
|
||||
|
||||
<p><li><b>Other problems?</b>: Check with the Netscape
|
||||
LiveConnect/Plug-in developer's news group, <a
|
||||
href="snews://secnews/netscape.devs-plugins">
|
||||
snews://secnews/netscape.devs-plugins</a>.
|
||||
|
||||
</ul>
|
||||
|
||||
<HR>
|
||||
|
||||
</HTML>
|
Загрузка…
Ссылка в новой задаче