Java Applet Development - Code To Check Whether JRE Is Installed On Client Machine?
Aug 19, 2009Java Applet Development - JavaScript code to check whether JRE is installed on client machine.
View 4 RepliesJava Applet Development - JavaScript code to check whether JRE is installed on client machine.
View 4 RepliesI'm looking for a javascript, that can detect which java VM is installed and
what the current version is. Can any of you give me some details?
i have a Trajan Pro font on my site. when i put in the web, the people that don´t have the font installed on computer is unable to see with the font that i choose. how can i load the font on my server? i beliave there is some way to do this
View 4 Replies View Related<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
<title>Run Executable HTA</title>
[code].....
I need to find the information about Client machine by using Javascript : Information like : How much Avaliable sapce on clinet's machine ? Need to find RAM size . Operation System. Can we have any built in Active X control to get all these values ?
View 7 Replies View RelatedDoes anyone know how to use a prompt on java applet?
I was to create a very simple calculator. Two prompts will appear asking for inputs. Then the sum, product, difference, and quotient will appear on java applet.
i want to open filedialog on client machine in javascript (in jsp page) ,Following is the code i have written but it is not working
var Frame = new java.awt.Frame();
var fd = new java.awt.FileDialog(Frame, "Browse File",java.awt.FileDialog.SAVE);
fd.toFront();
fd.show();
var getDirectory = new java.awt.FileDialog(Frame);
[Code]...
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).
I'm trying to load different java applets with a click of a button ... but with no success. Here's my code:
View 1 Replies View RelatedI recently "inherited" a project which involves an applet on a web
page, and some Javascript event handling functions. The handler definition looks
like this:
<SCRIPT LANGUAGE=javascript FOR=Foo EVENT=mouseReleased>
<!--
Foo_mouseReleased();
//-->
</SCRIPT>
where Foo is an applet with parameter FiresScriptEvents set to TRUE.
The function Foo_mouseReleased() is a simple javascript function that just
alerts a fixed message so I know it's been called.
When I run this applet in a vanilla IE5.5 or IE6, it does exactly what
I expect - when the mouse is released, up pops my alert. BUT when I
run it on the same browser with Java Plug-In 1.4.2 installed, I don't
see it. Is there some compatibility issue with 1.4.x? Can the code be
changed relatively simply to work with both VMs, or am I looking at a
big rebuild to support browsers both with and without the plug-in?
in Gmail (I've noticed it in other services too..)after you log in, progress bar appears. What does it do? Uploads all the JS(containing ajax) files into client's machine? or what?
View 1 Replies View RelatedI 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.
I am attempting to develop a completely web-based set of tools that can
match the functionality of a set of Tcl/Tk programs that are used in
our control system environment. I believe that I can do everything that
the Tcl/Tk tools are doing except this one thing:
The Tcl/Tk app allows the user to pick two points on their screen
(which defines a rectangle) and then automatically grabs that potion of
the screen as an image and embeds it into the Tcl/Tk app as an object
which is then uploaded to a database when the user has submitted the
Tcl/Tk form.
I would like to have a web-page with a form that allows file-uploads
(this I can do), but I would like the page to include an embedded Java
applet (presumably) that allows the web-client to capture a portion of
the screen and automatically attach it to the html form which can then
be uploaded to a database when the client submits the form.
An important requirement of this project is that it not require the
user to install anything prior to visiting the web-page. The applet (or
whatever) can be installed but not a separate program. I really want
this entire function to be provided from the web-page. I can provide
more information if necessary, but I though that a broad statement of
the problem would allow more people to chime-in with their thoughts. I
am eager to find out how this might be possible.
I am attempting to develop a completely web-based set of tools that can
match the functionality of a set of Tcl/Tk programs that are used in
our control system environment. I believe that I can do everything that
the Tcl/Tk tools are doing except this one thing:
The Tcl/Tk app allows the user to pick two points on their screen
(which defines a rectangle) and then automatically grabs that potion of
the screen as an image and embeds it into the Tcl/Tk app as an object
which is then uploaded to a database when the user has submitted the
Tcl/Tk form.
I would like to have a web-page with a form that allows file-uploads
(this I can do), but I would like the page to include an embedded Java
applet (presumably) that allows the web-client to capture a portion of
the screen and automatically attach it to the html form which can then
be uploaded to a database when the client submits the form.
An important requirement of this project is that it not require the
user to install anything prior to visiting the web-page. The applet (or
whatever) can be installed but not a separate program. I really want
this entire function to be provided from the web-page. I can provide
more information if necessary, but I though that a broad statement of
the problem would allow more people to chime-in with their thoughts. I
am eager to find out how this might be possible.
How do I display a message applet is loading when a applet is getting
loaded. Without using Mediatracker.I want the message to be provided as
PARAM NAME.
I am writing an administration panel for a web site. I want to check if the client's browser javascript enabled and if it is not enabled, a warning DIV comes telling the client to enable javascript and disable the actual page (make the actual page non-usable).
View 13 Replies View RelatedI have a form with 2 submit buttons, each with a different value attribute. I can tell which one was clicked after the form has been submitted but I need to check it client side. Here's why: I am doing form validation using the onSubmit event, but I only want to validate if one of the buttons was clicked and not the other.
What's the best way to do this? I thought about having a hidden form field that I set with the onClick of the button I don't want to validate. Is this the best way?
Here are my 2 input tags:
<input type="submit" name="Submit" value="Add reply">
<input type="submit" name="Submit" value="Close">
I tried checking myform.Submit.value in my form validation but it comes up "undefined". I guess it isn't defined until the values are actually posted to the server. Or am I missing something here?
I am a php programmer and not a Javascript programmer and I am trying to help a friend out with his shopping cart. The original programmer (who wrote this years ago and is no longer around) has a button that looks up the quantities in the database for the submitted items, and then displays a prompt if you selected a quantity that is less than the minimum purchase amount.The issue is if the user enters a smaller amount than allowed and hits the enter key instead of the "Buy" button, it allows the order.how to use the current code to also check for an Enter key submission.I can handle the PHP and the db lookup for minimum quantities. Here is the page code and the Javascript code.
Code:
<a href="javascript:checkQuantity(document.form<?php echo $formCount; ?>,
<?php echo $row_rsProduct['lotQty']; ?>,
[code]....
My website was recently ftp hacked and a file inserted into it - js.php - which seems to be some sort of advertising spam programme. Having spotted the file I have renamed it to hide it but lots of other sites are still referring into my site looking for this php file. What I would like to do is to *just* open a java alert box on the referring sites to alert the users that the site has been hacked and that they should notify the webmaster so that he can fix his site.The line referring into my site is -
<script type="text/javascript" src="http://www.mysite.com/js.php"></script>
Is this something simple to do?
Can you place java code in an external javascript file (.js).
For example can I do the following in my xx.js file.
Can I do the above?
Another question ...I know <% %> is to execute java code inside html. But what does <%-- - -%> mean?
Have a question regarding the comparison function on the At & t website URL...The site allows you to select different types of phones then generate a comparison chart based on your selection. I need to construct a similar comparison chart, but have no idea how to start the coding process.
View 1 Replies View RelatedI want to generate dynamic html code via java serlvets.from the class LightServlet
public void getAllLights(HttpServletRequest request,
HttpServletResponse response) throws IOException,
NumberFormatException, InvalidSyntaxException {
[code]....
I think, the problems should be in the jQuery code, because it works with normal strings without any html tags.
I have an assignment to code a java class that plays rock, paper, or scissors. The class can access the history of past gestures played by both itself and its opponent, but nothing else. The class will be played against others in 10,000 matches and the winner will be determined via round robin format. Other than using a greedy algorithm to determine statistically the best choice from prior gestures and basic pattern recognition I have no decent ideas.
View 6 Replies View RelatedIf you follow the evolution of software development on Internet, you
may have the impression that every new development is Web based and
that the main areas of concern are whether you should develop new
application with Ruby on Rail or if you should choose Flash rather
than Ajax for the interface. However, if you ask developers, you may
find that the Web is not as ubiquitous in their work as you may think.
Even if 66% of the participants develop the majority of their new
applications with a browser as the interface, there is still a large
portion of developers that are working today for operating contexts
that are outside the Web world, like embedded software or Windows
applications. Code:
In order of priority, I need the following for Safari:
* a debugger (with watch)
* a console (with errors and command line)
* Web Developer toolbar (edit css, validate local)
* DOM inspector (like Firebug or IE's DOM inspector). Firebug is awesome, though...
* Possibly a source editor
* anything else that is useful (like http://www.squarefree.com/jsenv/ or the other bookmarklets on squarefree.com that work for safari).
Does safari support hasOwnProperty now? What about named functions in object literals? syntax example:
Code:
{
f : function f() {}
}
I'm currently building a new search engine that will search around 15,000 products and would like some general advice as to the best way to approach it.I want to offer instant results, so the user will click an icon and the results change, no submit buttons or postbacks.My database is MS SQL and my frontend is ASP.Net, but for this I'm looking to develop the majority of the search functionality in JavaScript.What I'm asking really is what people recommend for the best way to approach providing instant results.
My current thinking is an initial database query loads the data into XML, then use JavaScript and XSLT to filter the XML and display the results, then as filters change these can be handled by the JavaScript and XSLT rather than going back to the database.Does anyone have any general advice on the best performing way to provide this sort of functionality that ultimately will give the quickest results?