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?
can somebody give me a minimal example of how to read xml file into mozilla AND run some Javascript funcion?
Mozilla can read xml files directly and css files can be included as well, that works for me. But I would like to do some operations with the DOM tree.
My question is Mozilla only, I would apperciate some minimal example (like alert(1)) and especially some URL pointers.
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:
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?
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).
could you kindly help me to solve a compatibility problem that involves Internet Explorer and NN/Mozilla.
I created a html page that contains a form (its name is "Modulo") and some text boxes. After clicking on a button, a popup appears. I tried to modify the text of "Testo" textbox from the popup windows by using the following javascript code:
window.opener.Modulo.Testo.value=window.opener.Mod ulo.Testo.value + " This will be added to Testo textbox!";
The code is correctly run by Internet Explorer and the "Testo" textbox in the calling html page is successfully updated.
When I try to open these pages with Mozilla, the javascript code that should update the textbox is ignored. How can I solve this problem?
I have looked into creating a javascript that will do a PopUp "Exit Poll" when the client backs out or links forward from the domain. It is a moderated script I found through discussions on this forum.
Now it works great in MSIE5.2.2 on MacOS10.1.5, but I'm finding I better also make sure it works in Mozilla if I have any chance of making it work on the PC side. When i try it in Mozilla, I get Javascript console saying "loadpopup() is not defined"
I've found a couple javascripts that work in MSIE but not Mozilla..this is getting irritating to say the least.
For MacOS10.3 owners using Safari, is the browser compatibility with javascript any better? I feel like I need to get away from MSIE5.2.2 altogether now. And no..I'm not buying a PC. Code:
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.
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.
The following posts back properlty from an "onclick" in IE, but not in Mozilla 1.7. Can anyone explain to me why not? The style class works the same in both environments.
Everything works fine with Opera and IE, but not with Mozilla 1.7.3 and Firefox 1.0 PR. When I call a function previously defined inside another function I've got "function is not defined". Why?
I have a strange problem... I have a form with a text area that contains an XML document. This document can be modified by the user.
Once the document has been modified, the user pressed the "Submit" button to submit the modification (onclick=modify())... and go to another jsp page.... in my javascript, I have the following code:
function modify() { myRand=parseInt(Math.random()*99999999); // cache buster var docXML=document.forms[0].xml.value; var plist="myRand="+myRand+"&docXML="+escape(docXML); url="modify_xml.jsp?"+plist; document.forms[0].action=url; document.forms[0].submit(); }
With Firefox, the problem does not occur.... but with Explorer, the form is not even submitted!!!!! Is there a workaround for this? The XML document is not even very big.
I have an XML page I'm trying to load with javascript to display on Mozilla Firefox. I can get this to work on Internet Explorer but it would not work on Firefox. I can't figure out what I'm doing wrong. Can someone glance at my short piece of code below and tell me why this wouldn't work on firefox? Code:
We've got a server-side page (status.php) that dynamically generates a GIF image. The displayed image depends on the value of a boolean field in a database. Just calling the page displays the current value of the boolean, calling it with a parameter switch (status.php?switch) flips the database value and generates a new image. We've included headers to prevent caching of the image by the browser.
Whenever our HTML page is displayed in the browser, we just include an image that shows the current status: img src='status.php'/
We want to allow the user to click the image, which then inverts the boolean status in the database: img src='status.php' onclick='this.src=status.php?switch;'/
This works great in Internet Explorer, but both Mozilla and Opera only allow to switch once. My idea of the problem is that those browsers think like this; after one click, the src is already 'status.php?switch', so changing the src again would be redundent in their eyes, so they won't do it.
We found a temporary solution by generating the current time as a parameter in the image URL: img src='status.php' onclick='this.src=status.php?switch+(new Date());'/ However, this is not a very elegant solution.
Does anyone know a proper solution to this? This means, forcing Mozilla and Opera to load an image using JavaScript, even though the URL of the image didn't change?
Firefox has a Javascript Console that has 3 panels besides "All" and "Clear": "Errors", "Warnings", "Message".
Does anyone know a way to log a message in the Message panel with JavaScript? That would really help debugging. I know there's a way involving XPCOM, but that only works with "trusted" scripts, and scripts loaded thru html aren't trusted.
For a application I am writting I need to make some table columns apear and disapear by clicking on a link. I do this by changing the "style" property in the <td> tag.
The HTML is generated by ASP.NET, which automaticly sets the style property of the <td> tag to the right value. and makes links to the right Javascript function call to change a specific property.
had this in browsers areas but people told me I should put it here in Javascript because more people here would probably have seen it before and know why it happens. I have basic Javascript that rotates images. I've noticed any kind of Javascript code that rotates images has this same problem only in Mozilla. When the images rotate in Mozilla in between the rotations, Mozilla browser adds a little colored square that represents a blank image that are able to be seen does anyone know why Mozilla Browser adds that? For example when looking at this page in Mozilla can see it. if you know if this is some Mozilla problem with Javascript and images. Doesn't happen with IE and other browsers shows the images only and nothing else.
I am looking for a way to put all CSS values on my selected elements back to its default. I was wondering if anyone has maybe done this before and if not has any idea's to get me started.
The idea is that when I use for example:
The elements within .setDefault will return to its default font/color/height/width etc... so basically all posible values.