include problem.
3 Message(s) by 3 Author(s) originally posted in javascript
| From: Marcel |
Date: Saturday, October 06, 2007
|
Hi,
I use the following
code in the 'head' to inlcude some functions:
<script language="JAVAscript" type="text/JAVAscript"
src="JAVAscript/toolbox.js"></script>
and in the body I start one of those functions like this:
<body onload="changefoto();">
But this doesn't work. When I put the code directly in my html page it
works just fine.
Who can help me?
Thanks in advance
Marcel
| From: spambuster |
Date: Tuesday, October 09, 2007
|
On Sat, 6 Oct 2007 23:15:43 +0200, "Marcel"
<marcelturtle@xxxxxxxxxxx>
wrote in message:
Hi,
I use the following code in the 'head' to inlcude some functions:
<script language="JAVAscript" type="text/JAVAscript"
src="JAVAscript/toolbox.js"></script>
and in the body I start one of those functions like this:
<body onload="changefoto();">
But this doesn't work. When I put the code directly in my html page it
works just fine.
Who can help me?
Thanks in advance
Marcel
Post your script so we can look at it. Are you putting the
<script></script> tags in the .js file? You should not.
| From: Andreas M. |
Date: Sunday, October 14, 2007
|
wrote in message
i use the following code in the 'head' to inlcude some functions:
<script language="JAVAscript" type="text/JAVAscript"
src="JAVAscript/toolbox.js"></script>
and in the body I start one of those functions like this:
<body onload="changefoto();">
But this doesn't work. When I put the code directly in my html page it
works just fine.
Not sure. I never use 'body' with 'onload'. Try this:
From
http://dean.edwards.name/weblog/2005/09/busted/
------------------------------------------------------------------------
First, let me define the problem. The window.onload
event is used by
programmers to kick-start their web applications. This could be
something trivial like animating a
menu or something complex like
initialising a
mail application. The problem is that the onload event
fires after all page content has
load ed (including images and other
binary content). If your page includes lots of images then you may see a
noticeable
lag before the page becomes active. What we want is a way to
determine when the
DOM has fully loaded without waiting for all those
pesky images to load also.
-------------------------------------------------------------------------
So, if you want to
display images only, window.onload() should suffice.
If you want to manipulate the DOM, then it may not be the perfect
solution and a toolkit like jQuery [
http://jquery.com] may be a good
choice anyway.
Make sure to read also:
http://dean.edwards.name/weblog/2006/06/again/
--
Greets, Andreas M.
Next Message: if cookie = ""
Blogs related to include problem.
Unmarshalling problem moving a JAXB service from TC5.5 to ...
I generate my JAXB classes with wsimport on the command line and
include them in WEB-INF/classes, so they don't
include Geronimo machinery-maybe this is why. Is there a workaround? I've tried setting JAVA_OPTS in the geronimo.sh startup
...
Re: set Cg shader in applet
Perhaps next
java-launcher applet release should
include a feature allowing users to set some system properties to solve
problems like this, by setting it as applet parameters ... > > > An possible workaround could be open
Java Control
...
Re: Problem writing audio to a stream with SE JP7 phones
To unsubscribe, send email to listserv@
java.sun.com and
include in the body of the message "signoff KVM-INTEREST". For general help, send email to listserv@
java.sun.com and
include in the body of the message "help".
...
Re: [JAVA2D] Please try the new Direct3D 9-based Java2D pipeline ...
https://jdk6.dev.
java.net/testD3D.html >> (please make sure to
include the output of J2D_TRACE_LEVEL=4 output >> with your postings) >> >> There are some known
problems in full-screen mode, multi-screen, >> and on some chipsets (namely,
...
javac error compiling jsp with 1.5 code
doInclude(ApplicationDispatcher.
java:594) at org.apache.catalina.core.ApplicationDispatcher.
include(ApplicationDispatcher.
java:505) at org.apache.jasper.runtime.JspRuntimeLibrary.
include(JspRuntimeLibrary.
java:965) at
...
Re: Problem with compiling tomcat native
NONE >>> adding "-I/usr/local/
java.1.6/
include" to TCNATIVE_PRIV_INCLUDES >>> checking os_type directory... linux >>> adding "-I/usr/local/
java.1.6/
include/linux" to TCNATIVE_PRIV_INCLUDES >>> checking for gcc... gcc >>> checking for C
...