Inserting HTML into a web page
On a previous thread I asked how to insert ones own code into a page created in iWeb.Some kind person told me how to do it,namely: find the html page in iMac on my hard drive,in TextEdit insert the code that I want and click Save.It all worked fine. However when I go back into my web page in iWeb and make a change followed by upload, the code that I inserted in TextEditor is wiped.Is there any way that I can insert my own code into a web page and not get it wiped when I make other changes in iWeb and upload to the server? Thanks in advance
Nope, this is how it works. If you make a change to a page like this post-publishing, and later re-publish, you have to make the html changes again! Set up a Find/Replace command in MassReplaceIt and you can do this very quickly. You can save your queries so you can make all of your changes with one click the next time you save.
Download here:
http://www.hexmonkeysoftware.com
Similar Messages
-
Inserting Text into a web page
I need to know how to insert text into a webpage, like google, search, and then get the result.
Using the wonders of the internet I have been able to display a webpage, and see the HTML code that is generated, however, I don't know how to insert text into a web page, or get the result.
Any help, or pointing into the right direction would be appreciated.What do you mean by insert into web page? Like
prefill data on a form?
Or like a search on google? What are you using to
do this?
I am guessing based on the info you gave in your
question, that you might want to just look at the url
of the page. For example search on google and you
will see the text entered into the search field
inside the url. Learn from that and develop a url
that will search for the text you want to insert.
If I am not understanding you, please clarify.Right now, I'm using the URL to search for me, which will work, but the search can be different from website to website, and I would like something closer to an automated form filler if I need to implement something like this again.
Of course, something like an automated form filler would probably work better, if I were able to retreve the results -
Help inserting a flash video into my web page
Hello!
I'd love some help inserting a flash video into my web page. My web page is hosted by Viviti, templated, and edited online. I can add html to it, and I have the html source for my flash video. I also have uploaded the flash file to the server. Since I am very html illiterate, though, I need some help rewriting the html script so it can be published. There are two problems- firstly, no 'headers' or 'body' allowed in the script- these are already a part of the template. Secondly, I don't know how to rewrite it to refer to the uploaded files. It's also imperative that the full screen mode functions. I've pasted the source code for the flash video here. Please help!!!
Thanks!
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Drag and drop labelling</title>
<script language="JavaScript" type="text/javascript">
<!--
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2008 Adobe Systems Incorporated. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
function ControlVersion()
var version;
var axo;
var e;
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
try {
// version will be set for 7.X or greater players
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
version = axo.GetVariable("$version");
} catch (e) {
if (!version)
try {
// version will be set for 6.X players only
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
// installed player is some revision of 6.0
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
// so we have to be careful.
// default to the first public version
version = "WIN 6,0,21,0";
// throws if AllowScripAccess does not exist (introduced in 6.0r47)
axo.AllowScriptAccess = "always";
// safe to call for 6.0r47 or greater
version = axo.GetVariable("$version");
} catch (e) {
if (!version)
try {
// version will be set for 4.X or 5.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = axo.GetVariable("$version");
} catch (e) {
if (!version)
try {
// version will be set for 3.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = "WIN 3,0,18,0";
} catch (e) {
if (!version)
try {
// version will be set for 2.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
version = "WIN 2,0,0,11";
} catch (e) {
version = -1;
return version;
// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
// NS/Opera version >= 3 check for Flash plugin in plugin array
var flashVer = -1;
if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
var descArray = flashDescription.split(" ");
var tempArrayMajor = descArray[2].split(".");
var versionMajor = tempArrayMajor[0];
var versionMinor = tempArrayMajor[1];
var versionRevision = descArray[3];
if (versionRevision == "") {
versionRevision = descArray[4];
if (versionRevision[0] == "d") {
versionRevision = versionRevision.substring(1);
} else if (versionRevision[0] == "r") {
versionRevision = versionRevision.substring(1);
if (versionRevision.indexOf("d") > 0) {
versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
// MSN/WebTV 2.6 supports Flash 4
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
// WebTV 2.5 supports Flash 3
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
// older WebTV supports Flash 2
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
else if ( isIE && isWin && !isOpera ) {
flashVer = ControlVersion();
return flashVer;
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
versionStr = GetSwfVer();
if (versionStr == -1 ) {
return false;
} else if (versionStr != 0) {
if(isIE && isWin && !isOpera) {
// Given "WIN 2,0,0,11"
tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
tempString = tempArray[1]; // "2,0,0,11"
versionArray = tempString.split(","); // ['2', '0', '0', '11']
} else {
versionArray = versionStr.split(".");
var versionMajor = versionArray[0];
var versionMinor = versionArray[1];
var versionRevision = versionArray[2];
// is the major.revision >= requested major.revision AND the minor version >= requested minor
if (versionMajor > parseFloat(reqMajorVer)) {
return true;
} else if (versionMajor == parseFloat(reqMajorVer)) {
if (versionMinor > parseFloat(reqMinorVer))
return true;
else if (versionMinor == parseFloat(reqMinorVer)) {
if (versionRevision >= parseFloat(reqRevision))
return true;
return false;
function AC_AddExtension(src, ext)
if (src.indexOf('?') != -1)
return src.replace(/\?/, ext+'?');
else
return src + ext;
function AC_Generateobj(objAttrs, params, embedAttrs)
var str = '';
if (isIE && isWin && !isOpera)
str += '<object ';
for (var i in objAttrs)
str += i + '="' + objAttrs[i] + '" ';
str += '>';
for (var i in params)
str += '<param name="' + i + '" value="' + params[i] + '" /> ';
str += '</object>';
else
str += '<embed ';
for (var i in embedAttrs)
str += i + '="' + embedAttrs[i] + '" ';
str += '> </embed>';
document.write(str);
function AC_FL_RunContent(){
var ret =
AC_GetArgs
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
, "application/x-shockwave-flash"
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
function AC_SW_RunContent(){
var ret =
AC_GetArgs
( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
, null
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
var ret = new Object();
ret.embedAttrs = new Object();
ret.params = new Object();
ret.objAttrs = new Object();
for (var i=0; i < args.length; i=i+2){
var currArg = args[i].toLowerCase();
switch (currArg){
case "classid":
break;
case "pluginspage":
ret.embedAttrs[args[i]] = args[i+1];
break;
case "src":
case "movie":
args[i+1] = AC_AddExtension(args[i+1], ext);
ret.embedAttrs["src"] = args[i+1];
ret.params[srcParamName] = args[i+1];
break;
case "onafterupdate":
case "onbeforeupdate":
case "onblur":
case "oncellchange":
case "onclick":
case "ondblclick":
case "ondrag":
case "ondragend":
case "ondragenter":
case "ondragleave":
case "ondragover":
case "ondrop":
case "onfinish":
case "onfocus":
case "onhelp":
case "onmousedown":
case "onmouseup":
case "onmouseover":
case "onmousemove":
case "onmouseout":
case "onkeypress":
case "onkeydown":
case "onkeyup":
case "onload":
case "onlosecapture":
case "onpropertychange":
case "onreadystatechange":
case "onrowsdelete":
case "onrowenter":
case "onrowexit":
case "onrowsinserted":
case "onstart":
case "onscroll":
case "onbeforeeditfocus":
case "onactivate":
case "onbeforedeactivate":
case "ondeactivate":
case "type":
case "codebase":
case "id":
ret.objAttrs[args[i]] = args[i+1];
break;
case "width":
case "height":
case "align":
case "vspace":
case "hspace":
case "class":
case "title":
case "accesskey":
case "name":
case "tabindex":
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
break;
default:
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
ret.objAttrs["classid"] = classid;
if (mimeType) ret.embedAttrs["type"] = mimeType;
return ret;
// -->
</script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
'width', '720',
'height', '440',
'src', 'Drag and drop labelling',
'quality', 'medium',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Drag and drop labelling',
'bgcolor', '#ffffff',
'name', 'Drag and drop labelling',
'menu', 'true',
'allowFullScreen', 'true',
'allowScriptAccess','sameDomain',
'movie', 'Drag and drop labelling',
'salign', ''
); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="720" height="440" id="Drag and drop labelling" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="Drag and drop labelling.swf" /><param name="quality" value="medium" /><param name="bgcolor" value="#ffffff" /> <embed src="Drag and drop labelling.swf" quality="medium" bgcolor="#ffffff" width="720" height="440" name="Drag and drop labelling" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</noscript>
</body>
</html>What you basically need to do is copy the sections of content from the code you show into the template (assuming the template already provides the <head> and <body> sections of the page. So in the head section of what you show, take everything starting with...
<script language="JavaScript" type="text/javascript">
all the way down thru...
</script>
, inclusive (in the head section only), and paste that into the head section of your template.
Similarly, take everything that lies between the <body> ... </body> tags (exclusive of the body tags) and paste it into the body section of your template wherever you plan to display the Flash file. -
Trouble inserting a widget into my web page
Hello,
I am using DW CS3. I got the html code for a widget (in this case a small banner) to insert into my web page. Here is the code:
<div>Find <a id="flipkey_best_of_property" href="http://www.flipkey.com/pine-mountain-club-vacation-rentals/g1553621/">Pine Mountain Club Vacation Rentals</a> on FlipKey</div><script type="text/javascript" src="http://data.flipkey.com/widgets/jsapi/36780/fhb/7be5/"></script>
I inserted a Div Tag in my web page to contain the code (Class: Body; ID: apDiv2), and then pasted the code into the Div Tag. Though I was in Design View, the html code still showed as html code, not as the small banner I had hoped for. Can someone steer me in the right direction?
Note: I took a web design course 3 years ago and created this web page at the time. I haven't done any web design since then, and have forgotten many of the details, but I should remember as soon as someone points out my errors.
Thanks!If it's been 3 years, a refresher course may be in order.
Start here:
HTML & CSS Tutorials - http://w3schools.com/
APDivs as a primary layout method seldom works well. Here is why:
http://apptools.com/examples/pagelayout101.php
Learn CSS positioning in 10 Steps
http://www.barelyfitz.com/screencast/html-training/css/positioning/
How to Develop with CSS? (a must read!!)
http://phrogz.net/css/HowToDevelopWithCSS.html
New Dreamweaver CSS Templates for beginners
http://www.adobe.com/devnet/dreamweaver/articles/dreamweaver_custom_templates.html
New DW Starter Pages
http://www.adobe.com/devnet/dreamweaver/articles/introducing_new_css_layouts.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Embed BI website into a web page using an IFRAME tag in HTML
Hi
I have got a requirement below.
# Embed BI website into a web page using an IFRAME tag in HTML
(Build a webpage and provide the links to BI Dash Board (10 reports))
How to start and where to add the code and Is there any code available?
Please help me out.Thank You for reply.
I have created a website with dashboard links by using IFRAME tag .As of now there is no security restriction since it was POC for two reports.
My question here how to Provide a link directly to BI public website from a web page on client site(Assume in gmail for example) -
I have created an animation in Flash and published it as a html5 animation.
How do I get this into an exisitng web page using Dreamweaver?Hi Nancy,
I am using Flash CC2014 which publishing as html.
(When I publish as html with edge animate you can create an oam file which allow the inserting of the resulktant animation into a web page)
The files produced with Flash CC 2014 are: html try.html and html.try
I was hoping I could use some way to just insert the html animation produced by Flash.
Source Code in html file is ....
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>html try</title>
<script src="http://code.createjs.com/easeljs-0.7.1.min.js"></script>
<script src="http://code.createjs.com/tweenjs-0.5.1.min.js"></script>
<script src="http://code.createjs.com/movieclip-0.7.1.min.js"></script>
<script src="html try.js"></script>
<script>
var canvas, stage, exportRoot;
function init() {
canvas = document.getElementById("canvas");
exportRoot = new lib.htmltry();
stage = new createjs.Stage(canvas);
stage.addChild(exportRoot);
stage.update();
stage.enableMouseOver();
createjs.Ticker.setFPS(lib.properties.fps);
createjs.Ticker.addEventListener("tick", stage);
</script>
</head>
<body onload="init();" style="background-color:#D4D4D4">
<canvas id="canvas" width="550" height="400" style="background-color:#99CCFF"></canvas>
</body>
</html>
Tony -
Embedding into a web page & background sound.
Hello,
I am looking for some advise on embedding an adobe edge animation into a web page.
It's more complex than it sounds unfortunately for me because I don't have any coding knowledge.
I have a web page with a flash version of the animation. I want to add the edge animation to the same page but only play
if the device does not have or support the flash player. So, if flash is installed I want the flash version to run. If no flash (ipads, etc) then
the edge version should play. I know many people choose the other way around but while I am learning edge the flash version is
much better so I would prefer the flash version to play primarily.
Onto the sound element. I have background music playing for the flash file (the music is built into the flash animation. I am not sure
how I can do this with the edge animation. Presummably it would need to be coded into the acutal HTML page with some sort of
HTML5 tag? But the problem I see here is that if the flash version starts to play the HTML5 version would start to play too in browsers
which support flash AND HTML5 tags.
I would appreicate any advise.
Thanks
AndrewDoes anyone know if there is an email address for Edge support? I really need to find a solution for this.
Thanks
Andrew -
How do I add OIC presense into my web page?
How do I add OIC presence into my web page? with Oracle Messenger (RTC) we can use the href=rtcmsgr:sendmsg?<login_ID> what is the equivalent for Oracle Instant Chat (OIC)?
Unfortunately, this functionality was lost in the conversion from RTC to OIC. This feature was available because of a http web presence. Oracle did not license that component in OIC.
-
Hi,
I am trying to insert HTML into JTextPane.
I am using the following code for the same.
JTextPane jedit = new JTextPane();
jedit.setContentType("text/html");
HTMLDocument doc = (HTMLDocument)jedit.getDocument();
String text = "<a href=\"???\">hyperlink</a>asd<a href=\"???\">hyperlink123</a>";
HTMLEditorKit editorKit = (HTMLEditorKit)jedit.getEditorKit();
editorKit.insertHTML(doc, doc.getLength(), text, 0, 0, null);
doc.insertString(doc.getLength(),"Hi testing",null);
text = "<a href=\"???\">hyperlink123</a>";The problem is that the HTML gets inserted into new line. I do not want the new line.
I know there is an API like insertBeforeEnd(...) but do not know how to use that.
Any help for the above problem will be of great use.
Thanks.look I have got the answer ... I guess this would be the root cause of the problem of new line.
when ever you want the text to be inserted
-at new line provide the last argument of HTMLDocument.insertHTML as null
- at same line provide the last argument as the HTML tag you are inserting into the JtextPane's document.thats it !!!
ENJOY :-) -
Translating html code into.. web page
If I am downloading an HTML document from the WWW, i.e. a web page, how can I handle it so that what is actually shown on my GUI component (which is of type JTextArea) is the final "page" (as shown by any standard Web browser) rather than just html code?
You can use a JEditorPane with its content type set to "text/html".
You may it helps to call editorPane.setEditable(false) as well.
Have a look at the Javadocs for JEditorPane for examples.
Hope this helps. -
Problem inserting FLV into template based page DW8
Error when inserting an FLV into a template based page.
The error is: "Making this change would require changing code
that is locked by a template or translator. The change will be
discarded."
I thought perhaps something was wrong with my code so I
created a new page in DW8, with one word of text. Saved the new
page as a template with the one word of text made into an editable
region. Created a page based on that template and attempted to
insert a FLV file into the editable region (using Insert > Media
> Flash Video). I still get the error message. I've attached the
code for this page.
I also get the error message when I go through the tutorial
Presenting
Video with the Flash Video Component in Dreamweaver 8. Using
the files provided in the tutorial.
Is the only workaround for this the one I found here?:
http://med.stanford.edu/irt/web/references/flash_video_installation.html.
Steps are under heading "Workaround for Locked Code insert error"
near bottom of page.
Any help is appreciated.
Jen> Is the only workaround for this the one I found here?:
>
http://med.stanford.edu/irt/web/references/flash_video_installation.html.
> Steps
> are under heading "Workaround for Locked Code insert
error" near bottom
> of
> page.
This workaround *will* work....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"kilmeny21" <[email protected]> wrote in
message
news:[email protected]...
> Error when inserting an FLV into a template based page.
>
> The error is: "Making this change would require changing
code that is
> locked
> by a template or translator. The change will be
discarded."
>
> I thought perhaps something was wrong with my code so I
created a new page
> in
> DW8, with one word of text. Saved the new page as a
template with the one
> word
> of text made into an editable region. Created a page
based on that
> template and
> attempted to insert a FLV file into the editable region
(using Insert >
> Media >
> Flash Video). I still get the error message. I've
attached the code for
> this
> page.
>
> I also get the error message when I go through the
tutorial
>
http://www.adobe.com/devnet/flash/articles/flv_tutorial.html.
Using the
> files
> provided in the tutorial.
>
> Is the only workaround for this the one I found here?:
>
http://med.stanford.edu/irt/web/references/flash_video_installation.html.
> Steps
> are under heading "Workaround for Locked Code insert
error" near bottom
> of
> page.
>
> Any help is appreciated.
> Jen
>
>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml"><!--
InstanceBegin
> template="/Templates/index.dwt"
codeOutsideHTMLIsLocked="false" -->
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
> <!-- InstanceBeginEditable name="doctitle" -->
> <title>Untitled Document</title>
> <!-- InstanceEndEditable -->
> <!-- InstanceBeginEditable name="head" --><!--
InstanceEndEditable -->
> </head>
>
> <body>
> <!-- InstanceBeginEditable name="temp"
-->Text<!-- InstanceEndEditable -->
> </body>
> <!-- InstanceEnd --></html>
> -
Inserting html into a composition in muse
Hi, I am trying to insert some html into a composition in Muse. I would like to have a clickable button trigger, and then a kind of overlay opens up with an interactive calculator inside. I have the html for the calculator, the problem is no matter how I try to insert it into Muse, the calculator either disappears (as well as the trigger) for some reason, or the calculator stays on the page the entire time, losing the whole clickable effect.
Can someone tell me the best way to do this?Hello,
Which Composition are you trying to Use ? Blank,Featured News, Lightbox Display, Presentation or Tooltip ?
Also Make Sure to drag and drop the inserted HTML window over the target (Border of target gets activated once you move it over), Hopefully this will work.
I created the same using Tooltip composition and its working fine. Please take a look at the link.
Home
If it do not work then please share the calculator HTML code that you are inserting so that I can do some test at my end.
Regards
Vivek -
Insert Word Document in web page
I'm trying to find a way to insert a word document in a web
page so that my clients can update blocks of text by uploading a
replacement word document via ftp.
Thanks
AaronGoogle Flyspeck....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Slaiby" <[email protected]> wrote in
message
news:ekmvl8$3je$[email protected]..
>I know that they use to be able to do something similar
in the past, maybe
>by
> saving the word document as an html file. What
suggestions do people have
> for
> the best way to make a block of text editable for
non-web savy clients
> that
> want to be able to update it on their own.
> -
Use html code in web page composer 7.3
Hi all,
I have a question about the standard editors of web page composer in 7.3.
I want to create my own HTML code for the design of the portal page..
Is it possible to use the code through one of the standard editors?
At the moment I have created some html pages and store them in the KM content of the portal. Then I make this pages available with the KM Document iViews to use them in the Web Page Composer. The problem now is, that the links to other portal pages doesn't work..
So is there maybe a possibility to use the html code directly in one of the editors? Or do you know, how you have to define the links to navigate to other portal pages? I tried a href="TBN://..." like the links you get with the Link List Editor, but it doesn't work..
Thanks in advance for your help!
Regards,
LydiaHi,
now we have the tinyMCE editor, where you can insert and edit html-code. It works fine now for the layout,
but there are still a few problems with the links..
In the edit mode there are displayed all km images out of the km. But the images aren't displayed under the portal role, when i publish the page. And all the links like one to a wiki or the TBN links doesn't work, too.
Can anybody help me further?
Thanks in advance,
Lydia -
Getting applets into a web page
I am trying to learn about Java Applets from a book, after having done a little programming at college.
My problem is that the books first example (�Watch�) works fine when viewed through an appletviewer, but when I try to add it to a web page I get a �load: class Watch not found� error in IE. The Watch CLASS file is in the same directory as the Html file, so I cannot see how it is unable to find it.
My only thoughts are that my IE doesn�t support Java2 and that some part of the coding falls into this category. Is it possible to check if my IE supports Java2, and if not, is there a pluggin for it?
As this is a simple program I�ve included all my coding below.
Watch class:
import java.awt.*;
import java.util.*;
public class Watch extends javax.swing.JApplet {
private Color butterscotch =new Color(255, 204, 102);
private String lastTime = "";
public void init() {
setBackground(Color.black);
public void paint(Graphics screen){
Graphics2D screen2D = (Graphics2D)screen;
Font type = new Font("Monospaced", Font.BOLD, 20);
screen2D.setFont(type);
GregorianCalendar day = new GregorianCalendar();
String time = day.getTime().toString();
screen2D.setColor(Color.black);
screen2D.drawString(lastTime, 5, 25);
screen2D.setColor(butterscotch);
screen.drawString(time, 5, 25);
try{
Thread.sleep(1000);
}catch(InterruptedException e){ //do nothing
lastTime = time;
repaint();
HTML Page:
HTML>
<HEAD>
</HEAD>
<TITLE>WATCH APPLET</TITLE>
<BODY>
<APPLET
code = "Watch.class"
width = "345"
height = "50"
>
</APPLET>
</BODY>
</HTML>normally the Java Plugin is installed when you install
the JDK.
have a look at your Internet Settings (in IE):
in the tab "Advanced" there should be an item called
"Java (Sun)" (normally located directly over the item
"Microsoft VM")Since installing JDK I have upgraded from 98SE to XP, if "upgraded" is the correct word.
Just the "Microsoft VM" options ...... no mention of "Java(Sun)".
Is there some way I can reinstall the plugin?
Maybe you are looking for
-
After IOS 8 update, recent contacts show up on multiple iPhonesq
we updated to IOS 8 and now, when I recieve a call or text message, it shows up as a recent contact on my wife's phone (In the photo bubbles on top of screen) and vice versa. How do you stop that? This happens on both devices Iphone 6 Plus and iphone
-
MB and world travel adapter kit
I'm thinking about buying a MB for use in travel. I have a world travel adaptor kit, but I notice the store page specifically does not list the kit as supporting the regular MB (it lists the MB Pro, iPods, etc.). Does this mean the kit is not recomme
-
Forms crash when open in browser.
hi, i'm migrating from 10g to 11g. So basically what i did is recompile the .fmb to work on 11g. It was successfully recompiled without any errors. however when i open it in web, it crashes : http://s12.postimage.org/fi8th87r1/forms_error.png i have
-
Maximum File Size on Import?
Hello all, been a ghost reader here but this is my first question (love the forums, btw, super helpful). I've been editing a feature film on Premiere Pro. We are nearing the end and I received a DPX sequence back from coloring. Upon importing into Pr
-
Problem when printing objective settings
Hello all, I'm facing a problem with the printing of the objective setting. The smartform that a get displays wrong characters : '#' instead of ' ' '. ex: people#s instead of people's. It's not a smartform problem. This one receives text with '#'. I