DHTML, JAVA, JAVASCRIPT?
Apr 19, 2001
Is DHTML a language? or is it a composition of JavaScript and css? Does Java(not javascript) has something to do in it?
What is actually the best to create client-side dynamic pages?
I know JAVA is used to create applets but I am not sure of wich is the most powerful....
Also, wich are the newer versions of all the above languages?
View 15 Replies
ADVERTISEMENT
Jul 20, 2005
I have the following Script in my web page reduce to two pages.
<script>
function details()
{
document.getElementById('details').style.visibilit y='visible'
document.getElementById('capabilities').style.visi bility='hidden'
}
function capabilities()
{
document.getElementById('details').style.visibilit y='hidden'
document.getElementById('capabilities').style.visi bility='visible'
}
</script>
With the following HTML code..
<table id="Menu" border="1" width="100%">
<tr>
<td><a href="#" onclick="details()">Details</a></td>
<td><a href="#" onclick="capabilities()">Capabilities</a></td>
</tr>
</table>
<div id="details" style="position:absolute; visibility:visible;">
<table border="0"><caption>DETAILS</caption>
<tr><td>Name:</td><td>Enter name</td></tr>
<tr><td>Email:</td><td><a
href="mailto:anyname@anydomain.com">EmailName</a></td></tr>
<tr><td>D.O.B:</td><td>Date of Birth</td></tr>
</table>
</div>
<div id="capabilities" style="position:absolute; visibility:hidden;">
<table border ="0"><caption>CAPABILITIES</caption>
<tr><td>Java Script</td><tr>
<tr><td>Java Script</td><tr>
<tr><td>Langauges</td><tr>
</table>
</div>
What I am trying to do is create a CV where you turn the pages without
reloading the web page. I have successfully done this using the code
above but the links don't work in Internet Explorer until I have gone
through all the pages. Netscape and Opera Works Fine!
The above consists of two pages for convience but my final site will
be approx 6 to 7 pages long.
Can anybody help get the links working on loading up 1st time without
having to go through all the pages or is there a bug with IE?
View 14 Replies
View Related
Apr 20, 2004
I have a form that will display either text boxes to edit a start and end date or just display nothing depending on the selection from a <select>. I am using JavaScript and DHTML to accomplish this and the code below works fine. When the page loads my <select> will have a value already.
My question is how do I get the correct block of code to show up when the page loads depending on what is already selected? I can't use an onLoad in the body tag because I am unable to edit the body tag. Code:
View 2 Replies
View Related
Oct 20, 2006
I am testing in IE7.
I display one of several spans when the user mouses over some code.
Inside the span are several tabs. Clicking on the tab triggers a JS
function that hides the "current" text for the span, then shows the
"new Current" box. It's a constantly revolving door- turn off old,
turn on new. Switch from one span to another and reset the fields.
When I switch between different "spans" then switch back, there are
ghost form elements on the screen (a text area, a blank button) that
appear near where they should be. The section that I was last on does
not display. This occurs when switching between different spans.
HOWEVER, when I set a javascript alert to display what the old visible
and new visible divs are within each span, none of these problems
occur- everything displays correctly. It's as if the alerts "reset"
the javascript display in some fashion. The errors only happen when
the alerts are not on.
Does anyone know why this might happen or if it's a common occurence
that these problems disappear when an alert is used? If I don't use an
alert, how do you display JS variables during testing. Here are some
of my JS functions. Code:
View 2 Replies
View Related
Jul 23, 2005
Is there a way to change the displayed text on a web page using some
combination of Javascript and DHTML? NOT in a text box. As far as I
know (with my limited knowledge) the only way you can do this is with
a textbox or images, which is not what I'd like to do. There's gotta
be a way to do this, right?
View 3 Replies
View Related
Jul 21, 2007
When I trying to do:
this.ctrl.style.display = 'block'
Firefox scroll area to the top, but IE not. I think that's bug. Maybe
anyone knows how I can fix that?
View 4 Replies
View Related
Jul 20, 2005
I have a word bank for a javascript crossword puzzle I'm working on. What I
want to do is when a user clicks on a word in the word bank, it crosses
itself out. I have tried:
<a href="javascript:this.style.textDecorationLineThrough">text here</a>
to no avail. does anyone have an idea on how to do this?
View 6 Replies
View Related
Jul 23, 2005
Can Java classes/objects be used from within the javascript code on the
HTML page? I.e., can I call a Java method from the javascript function?
View 2 Replies
View Related
Jul 23, 2005
in JSP, it's easy to pass value from java-variable to
javascript-variable, like
js_function(a)
{ a=<%java-class.A%>
}
I'm wondering how is the other way around? I tried
js_function(a)
{ <%java-class.A=%>a
}
but there was compiling error.
View 3 Replies
View Related
Jan 19, 2007
I am a XHTML/CSS developer with an interest in AJAX. I am at the stage were I wish to learn how it's all done.
So my quesiton is this:
To develop AJAX applications do I need to learn JAVA or Javascript?
It may sound like a dumb question considering AJAX is mainly javascript and XML, however will learning JAVA first off be a benefit?
View 4 Replies
View Related
Dec 13, 2006
Anyone trying out the javascript drop down menus from the Sitepoint Javascript Anthology book might have noticed that in IE7 the sub menus are misaligned, they are offset to far to the right.
Has anyone else come across this problem and does anyone know how to fix it? It has unfortunately broken several of my menus, though if you just try the demo menus from the book in IE7 they also suffer the same problem.
View 3 Replies
View Related
Jun 5, 2006
I am trying to call a java method from within my Javascript, but cannot
seem to get it to work. All the examples I have found online and in
the forums are using Java applets. I have a method that I want to call
that does a search, and produces a message dialog displaying the
results. Also, the class file lives next to the html file. How would
I invoke this in my code? This is what I have now:
<script>
function searchStrings(){
Searcher.search();
}
</script>
<form>
<input type="button" value="Search" onclick=searchStrings()>
</form>
View 2 Replies
View Related
Jul 20, 2006
This may be more of a Java question, but I feel that JavaScript experts
may be more qualified to help me find a solution.
In short: is it possible to call a Java method from JavaScript, passing
as an argument a JavaScript array (in my case, an array of doubles)?
Supposing I have array x containing only doubles, I have tried:
document.MyApplet.myMethod(x);
But the method only ever seems to receive "null" as an argument.
Conversely, if I try this with a String, or a single character, or
almost anything else, there isn't a problem. Any ideas?
View 1 Replies
View Related
Jul 20, 2005
let's me explains my long problem:
I'm doing an intranet with a media part. So im must be able to upload files on
a ftp server AND have a record of informations about this file and meta date in
a MySQL database, shown in a php page.
So the first thing i was doing was:
1/ * A HTML Form, with a <input type="file"> which was uploading the file to
the web server. And then, in the next action-php-page, using ftp functions from
php to upload to the ftp server. But this make upload the file 2 times, which
slow, and the user can't do anythig except waiting in front of a blanck loading
page.
=> no way
(BTW, the site admin refuse that the ftp server and the web server to be the
same computer)
So i tried something else:
2/ * A HTML form, the user enter meta data about the media, click next, and
then, a php page which loads a java applet an pass informations to it (by param
tags).
The applet have a browse button, and a go button, which start the transfert
(JDK 1.4.1) trough the URLConnection. The file is uploaded once, and there is a
progress bar, which is wonderful.
But now, i need the src_file information wich is the java applet. So i have two
options:
A/ I make a post to the webserver from the applet. But i'm using session
identification (needed for tracing users actions) and i'm gonna use SSL in less
than one month, so i think it would be complicated.
B/ I export the information from the java applet to javascript, and then to
HTML hidden field, so that the user can submit the full-hidden-filled form. But
i can't make LiveConnect works.
i'm under Mac OS X 10.2 (jaguar) so i need to make work LiveConnect on both
Safari 1.0 (v85.6), mozilla 1.5, and Mac OS IE (5.2).
View 2 Replies
View Related
Aug 23, 2006
Can you call a java class from within a javascript?
View 1 Replies
View Related
May 3, 2006
I am looking to use a spell checker in my multi-field forms and am trying to
find something open source and easy to install and use.
It could be either AJAX, DHTML or Javascript.
View 3 Replies
View Related
Jul 23, 2005
A Java applet has two methods stop() and destroy() that get called when the user moves to a different page. Does javascript have anything similar?
View 2 Replies
View Related
Jul 23, 2005
I am writing a java application as a mozilla extension.
Because mozilla uses javascript for the frontend,
i need the javascript to call my external java application
and pass one parameter to it.
View 1 Replies
View Related
Aug 23, 2006
Can anyone help me how to set default website as homepage in mozilla using java/ javascript.
Following javascripts code works in IE but not in Mozilla.
<input type="button" value="Set Default" onClick="this.style.behavior='url(#default#homepage)'
this.setHomePage('http://www.myDefaultWebsite.com')">
View 3 Replies
View Related
Jun 24, 2002
I am looking at a client’s site that has a scrolling text bar at the bottom of the page for latest news. I have been asked to recommend whether they keep the scrolling text as a java applet or whether they make it dhtml with Javascript to make it scroll.
To be honest, I’m not sure whether there really is an important difference, in terms of download time, likelihood of working (if client browsers are better enabled for one verses the other), or whether there are any other reasons one should be used over the other.
View 2 Replies
View Related
Oct 22, 2001
here's a question. Can anybody outline the primary advantages and disadvantages and differences between javascript and DHTML.
View 3 Replies
View Related
Nov 24, 2006
All I want to do is to have a div slide down from underneath a button I have. When i search online, I find a zillion slide down menu scripts, but they don't work for just
sliding a div.
View 4 Replies
View Related
Jul 20, 2005
I've copied some code from a book which will enable me to make a layer
around a page, my aim is to do something a little more complex but this I
thought would get me started.
Anyway, I've run into a problem before I even start! The script works OK, it
runs the image in from the left hand side quite nicely, great. Problem I
have it always scrolls up to the top of the page, when the link I click
maybe 2 or 3 screens below (does that make sence?). I thought if I was to
add a name attribute to the link I could get the co-ordinates of this and
the screen will not reposition. Code:
View 3 Replies
View Related
Jul 26, 2011
My pages all have the same blank at start then the images slide up trick. I have an old workaround for IE that stopped working, and I don't know what to do. In IE now nothing shows up.
View 1 Replies
View Related
Aug 23, 2009
What is the difference between DOM, Javascript and DHTML?
Alert() and document.write() is a DOM method or Javascript method?
View 6 Replies
View Related
Aug 31, 2003
So I need to use variables passed in the url for dhtml calculations.
View 3 Replies
View Related