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?
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).
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.
So, what I am trying do to is to manage some classes with javascript. It's working, but there are some things that I don't understand... Next is my sample code, and I have indicated the questions in comment Thanks for the help (I am working with IE 6)
I'm currently experiencing a problem using ANY (!) JavaScript in Mozilla - nothing seems to be working. For example (from p2 of JavaScript 101 - Part 1):
I have developed a very nice javascript-based navigation structure. My customer wants to have a flash film on his very first site which already has to have this navigation.
And now the effect: Whenever the flash film is running, the navigation submenus are not displayed ABOVE this flash film, but BEHIND it. As far as I have tried, there is no way to influence this behaviour with the "z-index" and different values.
Is there any other way to make the navigation submenu seen or - in other words - is there a way to put the flash film "a layer back"?
I need to fix the communication between the JS located in this page and the PHP form script. When the form is submitted I want the page to automatically update which is already present in the script, thanking the user for the submission. Since the PHP script was changed that communication is broken and I hope to get it communicating once again.
I am very new to web development. I would like my website to have an application which allows a user to draw images which can be displayed on other users screens in real time.
An example of this is isketch.net Also on this site i would like users to be able to create accounts and join 'rooms' where they can communicate in real time (as opposed a forum message board). I am looking for something similar to isketch.net
Could somebody please tell me the type of development and programming needed. I have been quoted 1000 a month to build these capabilities but have no idea what is involved. (also may require facebook style real-time updating)
I am new to Javascript and am trying out window communication with a popup.In the main window it opens up a popup window with a button click. The popup window is trying to grab text from the main window and put it in it's (the popup's) window. I guess it needs a test to see if the window is ready??Here's the code:
I'm trying to find a way to have a script communicate with a server without having to load a new page. The idea is to have the server act as a simple wrapper for a database, letting the client do that icky UI stuff.
I tried the obvious, putting a frame somewhere it doesn't insult the eye, changing its location, then accessing the new content via DOM. What I get from IE (6) for my pains is just a rude "permission denied". This even though I entered "localhost" as a trusted site in IE's security setting. What's amiss?
I have a web app with a game and chat updating with ajax very frequently sending thousands of XHR requests to the server during a user's session. The problem is that most clients experience intermittent connection failures or timeouts. On the server it appears to be fine, all requests are logged to have completed successfully and on time but the client gets either a communication failure or a timeout. This makes the user feel like the game or chat just got stuck.
I use YUI for making the XHR calls but I replaced that with jQuery with exact same results. I make sure that only one query is active at a time, so I am sure that I am not hitting the max 2 connections problem. The failure rate may be 1 in 200 hundred requests or something but it seems that when a client has a failure then it fails at a higher rate, say 1 in 10 until the problem goes away. I have clients send back an error request when such errors happen in order to track the problem. I have tried various things to try to figure out what is wrong but I have not found anything. I don't think that it's the client's connection as it happens to a sizable portion of my users, it doesn't look like it's the server either.
So what I am wondering is whether this failure rate is common or expected when doing heavy ajax staff and I need to find a way to work around it or this must be a problem in my system that I need to figure out. If the latter any pointers where to look at?
I have set of frames... one contains a menu and the other a status frame. I am calling a function from the menu which sets the variables however I need some help passing those variables to the status frame. How would I go about doing such a thing?
This is called from the menu in frame 1 but doesn't work:
Code: function jumpsec(cat, prod) { parent.statusbar.category=cat; parent.statusbar.product=prod; }
// then my status frame bar has: document.write(parent.statusbar.category); document.write(parent.statusbar.product);
The 2 variables are blank on statusbar onload but get populated with each click.
I have given snippet of code in that it is cgi file in which i am using iframe , source of iframe is calling another cgi file. JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
I have need to communicate between two iframes of the same domain, which live inside a parent page on a different domain that I have no control over. This is a Facebook app and the basic layout is this
apps.facebook.com/myapp L iframe1 (src='mysite.com/foo') L iframe2 (src='mysite.com/bar')
I need frame1 to talk to frame2, but in Opera I can't access window.parent. frames['frame2'] to do the usual cross-domain methods (updating location.hash for example) Is there an alternate way to accomplish this in Opera?
I am working on a robot project, that is required to create a website to control the robot via serial port.. The website is plainly html, no linking to database is needed...
I have no idea how and what language to use and can JavaScript communicate with serial port? and how?
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...
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();
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 ?