Updating Url Param - Java Applet
Feb 3, 2004I'm trying to load different java applets with a click of a button ... but with no success. Here's my code:
View 1 RepliesI'm trying to load different java applets with a click of a button ... but with no success. Here's my code:
View 1 RepliesDoes 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.
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 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?
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.
Java Applet Development - JavaScript code to check whether JRE is installed on client machine.
View 4 Replies View RelatedI'm experienceing some problems with jQuery 1.4(.1) with the "new" ajax param serialization. My code does basically this:
[Code]....
so I'm creating an array within the "ajaxparams" object, which I fill with some data. So far so good. Problem here is, the $.post request creates a string like this:
[Code]...
Release Notes Snippet: jQuery 1.4 adds support for nested param serialization in jQuery.param, using the approach popularized by PHP, and supported by Ruby on Rails. For instance, {foo: ["bar", "baz"]} will be serialized as “foo[]=bar&foo[]=baz”. since I'm working with perl and not php, this issue is getting a little bit annoying.
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 need to pass a hard coded value to a JS file:
<script language="JavaScript" src="Tracking.js"
type="text/javascript"></script>
Neither of these methods work:
<script language="JavaScript" src="Tracking.js?someid=303"
type="text/javascript"></script>
or
<script language="JavaScript" src="Tracking.js"
type="text/javascript">var someid = 303;</script>
or
<script>var someid = 303;</script>
<script language="JavaScript" src="Tracking.js"
type="text/javascript"></script>
Any suggestions?
I am trying to use a method equalTo from jquery.validate.js and could not find how to use the "param" parameter. Below is part of the js file I am referring to:
Code:
// [URL]
equalTo: function(value, element, param) {
return value == $(param).val();
},
I try to change a <param>'s attribute, but without success.
Why doesn't the last alert print "TEST" ? [code]...
For example:
arrayInfo[0] = 'Name';
arrayInfo
[1] = '22';
[code]....
I have a page working perfectly that passes up to 10-12k worth of data into a function via an 'onClick' event. That onClick is one of the <img..>'s attributes, directly. In case later that (dynamic) data gets larger, am I toying with potential problams because of some limit - either a limit in what can be passed into a JS function, or else a limit in the max num of characters allowed in an element's attribute(s)? What do you think is the reasonable amount that I can pass before things start to break? I may need to go up to 50k. 100k maybe, but I doubt that much.
View 6 Replies View RelatedI'm trying to open an email window with 200+ emails this way...
window.open('mailto:'+allList+'');
'allList' contains: xxxxx@yyyy.com; xxxxxx1@yyyy.com; and ect....
When the list consists of a few emails it works, when the list is large, I get "The data area passed to a system call is too small" error.
I guess I can make a huge mailto hyperlink, but I think that would look horrible. If anybody has an idea please help me out.
I am just wanting to use Java to change one value in my code for my project but after having gone through the basics on the web, i seem no closer to finding the solution.I am wanting one JavaScript effect of 'onmouseover' to change the autostart value to 'true' when the preceeding img element is hovered on and to go back to 'false' for onmouseout. I was hoping i'd be able to work out a simple application for an if statement but am now unsure if i'll be able to work it out.Does anyone know a simple javascript that will do the trick?
<p><a class="photo" title="video" href="head.jpg"><img class="mini" src="head.jpg" width="100" height="75" />
<img class="big" src="head.jpg" width="100" height="75" /></p>
[code].....
$('#slideshow' + ssID).before('<div id="nav">').cycle({
fx: 'scrollHorz',
timeout: 0,
[code]....
how do I pass a var (in my case ssID, since have two slideshows) to onAfter? (I know there are three params passed to this fn already... how do I pass a fourth one??)
using js to force a specific anchor call to jump after the page completely loads. The reason I am doing this is because the page I am linking to with anchors takes a long time to load and a standard browser anchor link sometimes does not work 100%. With that said, I would now like to make the script I wrote universal to get ANY anchor param in the url and jump to that spot on the page. Right now it's coded to just look for "#anchor". I want to re-code it so it will look for "#" + "anyAnchorName".
[Code].....
There are 3 tables in DB group-set,group,users. Two different type of folders 1 is group-set which contains groups and another is groups which contains the users in group.group-setcan have multiplegroup-setorgroupas a child elements.groupwill have only users as child elements.useris a leaf node.how to load it with ajax. because ajax GET request passes "id" to load childs.. but in this case we need extra parameter in GET request i.e.typeto find out whose child it needs (group-set's or group's).type will determine what needs to be loaded. users or groupshow to modify get request generated on node expand with appending type parameter in treeview ??
View 1 Replies View RelatedAnybody who knows how to embed a Java-applet in a HTA document ?
View 2 Replies View RelatedWhy doesn't the following code load my applet under WinXP with Internet Explorer 6?
<SCRIPT language="javascript" type="text/javascript">...
We have an app that uses a page to either load a full page applet, or some
html based on some params.
There are events trapped for rigth click actions that show a DIV with some
menu options. Works fine with the HTML...
But, of course, by default the Applet seems to take precedence over any DIV
etc on top.
I already feed the events back from the applet back through to the HTML via
javascript, what I need to do is display the div over the applet so that
thet user knows no different...
Can this be done?
I just installed the LoveSan security patch from MSFT and turned on
Auto-Update. Now applets do not load. I tried getting Netscape 7.1 but
it directs me to the Sun page to install JRE. I do this but still
neither IE or NS will load applets. Tried downloading some from
various websites with free applets but these do not work either. Any
ideas?
I have on a html page an applet. A javascript function call one function of
this applet. It works with IE but not with Mozilla or Netscape. I obtain
the following error on the java-plugin consol:
sun.plugin.liveconnect.OriginNotAllowedException: Javascript is not form the
same origin as je java code ...
This is my html code:
<script language="Javascript">
<!--
function askServerCmd()
{
return document.AppReaderLink.askServerCmd();
}
//-->
</script>
<applet CODE =" AppReaderLink.class"
codebase="."
ARCHIVE ="appredl.jar"
WIDTH =" 130"
HEIGHT =" 70"
NAME =" AppReaderLink"[color=blue]
>[/color]
</applet>
I tri with jre 1.4.1_05 and jre 1.4.2_02 and I obtain the same thing.
What I have to do?
I wish to get the pixels os an image to transform it. There is any posibility to do this with javascript ? I have done with java, but I can't load web images from other http servers, can I send the data of the image to the applet ?
View 3 Replies View RelatedI have an applet and want to change it's parameters with multiple links in
my page.
this is my code:
<applet code="GIS.class">
<param id="moneyID" name="money" value="100">
<param id="vicimsID" name="vicims" value="2">
<param id="countryID" name="country" value="UK">
</applet>
How to create a function that will be called from some links and change the
values according to the user's values (from a textbox or anything else).
How can I inform a Javascipt, that must submit my Applet's data, that this same Applet has produced the data in question? Or in other words, is there any way to call a JavaScript junction within the Applet? Is it the best way? What do you suggest?
View 1 Replies View Related