Interact with HTML fields

Hello
I would return values from Applet.
My be this is possible via Java-to-Javascript Communication, but Java is inable to find netscape.javascript.*;, eg :
Clock.java:1: package netscape.javascript does not exist
import netscape.javascript.*;
^thanks
Giovanni Rossati

My CLASSPATH is
SET CLASSPATH=.;j2sdk1.4.2_04\lib\tools.jarBut also
CLASSPATH=.;j2sdk1.4.2_04\libis not working
best regards

Similar Messages

  • Interact with HTML Panel

    I've managed to create an html panel inside a tooltip, but
    can't work out how to interact with it. I've looked at the example
    of an interactive tooltip, but arn't sure how to modify this to
    interact with the panel. Can anyone advise please. Thanks. My test
    so far is here:
    http://fctu.org.uk/samplepages/tooltip2.asp

    Sorry, sorted it. Got my curly brackets in the wrong
    place.

  • Problem with Html field naming and java script

    Java Script which references html fields uses the
    notation "document.form[0].field". JATO generates field names which
    include the page (view bean). A dot is placed between viewbean name and
    field name(viewbean.field). However "document.form[0].viewbean.field"
    doesn't work as a reference. I'm not a java script person. Am I
    missing something?

    that's correct. You can use the below code for AJAX request.
    <script type="text/javascript">
    var httpObject = getHTTPObject();
    //create XMLHttpRequest object
    function getHTTPObject() {     
         var xmlhttp;
         if (window.XMLHttpRequest) // if Mozilla, Safari etc
              xmlhttp = new XMLHttpRequest();
         else if (window.ActiveXObject){ // if IE
              try {
                   xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
              catch ( e ){
                   try{
                        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                   catch ( e ){}
         return xmlhttp;
    //define the function to send the request
    function sendRequest(){
        var currDesc = document.getElementById("description").value;
        var URL =  "manageMaintAction.do"; //action mapping in your struts-config
        var queryString = "currDesc="+escape(currDesc); //get the currDesc value in your action class like request.getParameter("currDesc")
        httpObject.open( "Post", URL, true );
        httpObject.onreadystatechange = cbFn;
        httpObject.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded");
        httpObject.send(queryString);
    //callback fn
    function cbFn() {
        if (httpObject.readyState == 4)
             if (httpObject.status == 200)
              var result = httpObject.responseText;
              alert(result);
    </script>

  • Applet and interaction with html page

    Hi,
    I want to create an applet that send parameter to html page like a <FORM>.
    Can I do this? How?
    thanks

    An applet is Client based, runs inside of HTML page.
    The applet can send data to the server it came from, or to another html page on the SAME server using URLConnection.

  • Interacting with html documents from flash

    Hi,
    I'm a newbie in actionscript. I created a world map in flash. The map has regions (Europe, North America, Latin America, etc.). The regions on the map are defined as buttons.
    The final flash map will be embedded in an html document (map.html). The idea is that when you click for example the "Europe" button on the flash movie, this will open an html document called Europe.html and will show it underneath the map flash (inside map.html).
    The "Europe.html" for example contains a list of countries.
    In this mission I have 2 problems:
    1.       What script I have to attach to every region button on the flash map so it will call the right html file into the div on the map.html?
    2.       What script do I have to put inside the html document?
    Any help will be much appreciated. thank you
    Arie M.

    assign your button an instance name (in the properties panel after selecting your button) and use that name in the actions panel:
    yourbutton.addEventListener(MouseEvent.CLICK,f);
    function f(e:MouseEvent):void{
    navigateToURL(new URLRequest("map.html"),"youriframe")

  • Using java to interact with html.

    I want to create a program that goes to html pages and presses some buttons. where do I look?

    Hi duo,
    please try and use the code snippet i am pasting below.The code is accessing a page and then submitting a form on the page by making the url in the code itself.
    import java.io.*;
    import java.net.*;
    public class SubmitHTML
         public static void main(String[] args)
              System.out.println("*********** GOING TO ACCESS PAGE START ***********");
              SubmitHTML s1 = new SubmitHTML();
              s1.getHTMLPage();
              System.out.println("*********** GOING TO ACCESS PAGE END ***********");
         private void getHTMLPage()
              //phase 1
              try
                   String str = "";
                   char ch1=(char)0x0d; //\r
                   String strURL = "http://tahiti.oracle.com/pls/tahiti/tahiti.error_search";
                   URL url = new URL(strURL);
                   HttpURLConnection.setFollowRedirects(false);
                   HttpURLConnection urlConn = (HttpURLConnection)url.openConnection();
                   //urlConn.setRequestProperty ("Content-Type", "application/x-www-form-urlencoded");
                   urlConn.setDoInput(true);
                   //urlConn.setUseCaches(false);
                   System.out.println("LOGIN: Reading..." + urlConn.getHeaderField(0));
                   System.out.println("getContentEncoding ..." + urlConn.getContentEncoding());
                   System.out.println("getContent..." + urlConn.getContent());
                   System.out.println("getContentType..." + urlConn.getContentType());
                   BufferedReader br = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
                   String line;
                   boolean flag = false;
                   while((line=br.readLine())!=null) {
                        //System.out.println(line);
                        str = str + line + String.valueOf(ch1);
                   System.out.println("*********** THE FIRST PAGE RETURNED BY GOOGLE IS START ***********");
                   System.out.println(str);
                   System.out.println("*********** THE FIRST PAGE RETURNED BY GOOGLE IS END ***********");
                   String strQuery = "ORA-9989";
                   strURL = "http://tahiti.oracle.com/pls/tahiti/tahiti.error_search?search="+strQuery+"";
                   System.out.println("The url is ::" + str);     
                   url = new URL(strURL);
                   HttpURLConnection.setFollowRedirects(false);
                   urlConn = (HttpURLConnection)url.openConnection();
                   //urlConn.setRequestProperty ("Content-Type", "application/x-www-form-urlencoded");
                   urlConn.setDoInput(true);
                   //urlConn.setUseCaches(false);
                   br = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
                   str = "";
                   while((line=br.readLine())!=null) {
                        //System.out.println(line);
                        str = str + line + String.valueOf(ch1);
                   System.out.println("\n\n\n");
                   System.out.println("*********** THE PAGE RETURNED BY GOOGLE AFTER SUBMITTING START ***********");
                   System.out.println("LOGIN: Reading..." + urlConn.getHeaderField(0));
                   System.out.println("getContentEncoding ..." + urlConn.getContentEncoding());
                   System.out.println("getContent..." + urlConn.getContent());
                   System.out.println("getContentType..." + urlConn.getContentType());
                   System.out.println(str);
                   System.out.println("*********** THE PAGE RETURNED BY GOOGLE AFTER SUBMITTING END ***********");
              catch (Exception e)
    anjani

  • Interact with content loaded in html overlay / acces accelerometer?

    Hi,
    is it in any way possible to interact with html content loaded in the Web Content overlay?
    Or is there a way to acces the accelerometer in indesign?
    greetz
    Mario

    Moved to DPS forum

  • Display issue with HTML formatted text in report builder

    I am using the FCKeditor in my application to allow endusers
    the ability to create formated text on reports. We curently are
    experiencing 2 issues: 1. If you copy and paste from MS Word
    2003/2007 it will not display the text correclty in the report; 2.
    If you use the FCKeditor toolbar to insert bullets or a numeric
    list it will not align the text correctly on the report. We are
    using Coldfusion 8 with Hotfix 1 and Coldfusion Report Builder's
    lastest build release.
    Has one experiences this same issue with HTML fields not
    printing correctly using the Report Builder? What other HTML
    editors besides FCKeditor might we use?
    Thanks,
    Dan VanWieren

    Can you tell me how to use </td> for each values
    Give me your example report - using before or after report
    Thanks
    MT
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by fdenis:
    Hi Gavin,
    If I understand well, your HTML tags are coded directly in your fields in the database, right? Because if it was not the case, you could have use a format trigger checking for which destination you're generating your report...
    if UPPER(:DESFORMAT) = 'HTML' or
    UPPER(:DESFORMAT) = 'HTMLCSS'
    then
    -- insert your HTML code in the value
    -- of your field. something like...
    newValue := '<B>' | | :YOUR_FIELD | | '</B>
    srw.set_field_char( 0, newValue );
    else
    -- when generating to other format,
    -- you'd have to add the formatting as
    -- you want.
    end if
    return( true );
    Of course, if it's not acceptable to remove the HTML tag from your database fields, you could develop a procedure that would translate your HTML tags to the good formatting (eurk... ;-)
    Good luck... :-)
    Frederic
    <HR></BLOCKQUOTE>
    null

  • Java interaction with websites?

    Hey,
    I'm been learning java for a few months now, and know the basics well, I have written a few small programs, including one which transfers songs from iPod to computer.
    I need some advice on where to start on my next project. Basically I want to make a program which automatically performs tasks in the background on websites, for example listing an item on ebay, or uploading a video to youtube. And I'd also like it to read information from different pages, so that I could maybe gather a database of prices from ebay, or somthing along those lines.
    Which classes could I use java to interact with html?
    Where do I start? :)
    My java vocabulary isn't great yet ;)

    Ryanz wrote:
    Ok ... I'm checking it out at the moment, are there any other maybe simpler ways? Or can somone explain how to get the JAX-WS installed and ready to use with eclipse?Ryanz,there are few things involved here.
    1).First and foremost you need to findout whether if respective website offers you any kind of Web-Services to serve your cause.
    Just as an example eBay offers set of services to serve your cause to know more about this you can visit the below links
    [http://www.xml.com/pub/a/2005/09/28/ebay-metadata-web-services.html]
    [http://developer.ebay.com/community/featured_projects/default.aspx?name=Code%20Samples%20Project]
    Similarly identify whether if respective other focused webservice providers offer any specific services serving your cause.
    2).Analyse their service specifications
    3).Identify and Plan for list of Data Transfer Objects to which we can bind this service
    4).Implement for a Stub (may be using Apache Axis) or use JAX-RPC or use JAX-WS or any other related technologies to implement your Webservice Client.
    Coming back to using tools like Apache Axis,JAX- RPC or JAX-WS.
    you might be intrested in looking towards the below set of turtorials
    [http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html]
    [http://www.ibm.com/developerworks/webservices/library/ws-castor/]
    [http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXRPC.html]
    [http://www.ibm.com/developerworks/edu/j-dw-java-jaxrpc2-i.html]
    [http://java.sun.com/webservices/docs/2.0/tutorial/doc/]
    [http://www.myarch.com/create-jax-ws-service-in-5-minutes]
    It is not nessary that a provider has to provide relvant data in form offering webservices and sometimes they can offer you different specs which could be Like regular Java RMI services or DCOM object or something like Feeds(RSS 2.0/ATOM) for providing Latest updates on your account.I'd say it'd be more work for us to identify what kind of service the provider is provding us and how best make use of it so that we can use the relavant data in our application.
    and believe me in most of the cases only point 4 changes after going through point 1,2 & 3.
    Hope that helps :)
    REGARDS,
    RaHuL

  • Interactive pdf form with text fields. Chinese fonts

    Hi All
    We have designed an interactive pdf with text fields. We need the text fields to be in a Chinese font. I understand that this cant be done in Indesign (change the inputting font to Chinese) I have moved the file over to Acrobat Pro and used the text property to amend the font to Simsun but when we try it out the font is still in English. Any ideas on how to remedy the problem??
    Thank you in advance
    Paul

    Basically, you need to create a pdf form.
    Add a text field to your form.
    There you can choose which font your want the text to appear in.
    The trick is, when you export from InDesign, in the "Advanced Tab" — set "Subset fonts when percentage…" to 0%, so the whole font embeds.'
    I believe there's an option in Acrobat to embed the font as well, but I'm not recalling what it it.
    But that will ensure the font appears correctly.
    d

  • Rendering problem with Publishing HTML field

    All,
    I am running into an issue with a publishing HTML field. I have added this field to a content type. On a page layout which uses this content type, I have this field only in an edit mode panel. This field is not intended to be rendered on the page. However,
    if I use an HTML form web part in this field, the field is actually rendered on the page. It is rendered with a <div style='display:none'>. I need to use an HTML form web part because I don't want the markup I am entering to be altered. Is there any
    way I can avoid this and not have it rendered since it is only contained within an edit mode panel?
    Thanks

    click file/publish settings/formats, make sure the swf and html boxes are selected, and click the use default names button.  then click file/publish.  are the files in your directory with your fla?
    if not, create a new directory (that has no subdirectories), save your fla to that new directory using a new name (ie, click file/save as).  then click file/publish.  check the new directory for your 3 files.

  • Send via e-mail an interactive PDF with filled fields and signature

    Hallo all,
    I have this problem: i create a PDF DOC with some fields that can be filled (like name, address, and so on).
    Well, when i have finished filling the fields and I have also signed the DOC ( very good feature) I want to save or almost Send it by mail.
    The DOC is correctly sent...BUT I RECEIVE A DOC NOT FILLED, WITHOUT ALL THE DATA and the SIGNATURE!
    Were is my mistake?
    Thanks for your help
    Ciao
    Fabio

    Some forms do not display correctly in the Desktop Reader if field highlighting is enabled. This is something we're actively working on, but you might try disabling field highlights by clicking on the button in the purple bar at the top of the Document in the Desktop Reader to see if that helps.
    Can you please share the file? You can email it to [email protected] This way we can get a better idea what is happening.
    Thanks!
    Pat

  • Understanding logminer results -- inserting row into table with CLOB field

    In using log miner I have noticed that inserts into rows that contain a CLOB (I assume this applies to other LOB type fields as well, have only tested with CLOB so far) field are actually recorded as two DML entries.
    --the first entry is the insert operation that inserts all values with an EMPTY_CLOB() for the CLOB field
    --the second entry is the update that sets the actual CLOB value (+this is true even if the value of the CLOB field is not being set explicitly+)
    This separation makes sense as there may be separate locations that the values are being stored etc.
    However, what I am tripping over is the fact the first entry, the Insert, has a RowId value of 'AAAAAAAAAAAAAAAAAA' which is invalid if I attempt to use it in a flashback query such as:
    SELECT * FROM PERSON AS OF SCN #####'  where RowId = 'AAAAAAAAAAAAAAAAAA'The second operation, the Update of the CLOB field, has the valid RowId.
    Now, again, this makes sense if the insert of the new row is not really considered "+done+" until the two steps are done. However, is there some way to group these operations together when analyzing the log contents to know that these two operations are a "+matched set+"?
    Not a total deal breaker, but would be nice to know what is happening under the hood here so I don't act on any false assumptions.
    Thanks for any input.
    To replicate:
    Create a table with CLOB field:
    CREATE TABLE DEVUSER.TESTTABLE
            ID NUMBER
           , FULLNAME VARCHAR2(50)
          , AGE NUMBER  
          , DESCRIPTION CLOB
           );Capture the before SCN:
    SELECT DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER FROM DUAL;Insert a new row in the test table:
    INSERT INTO TESTTABLE(ID,FULLNAME,AGE) VALUES(1,'Robert BUILDER',35);
         COMMIT;Capture the after SCN:
    SELECT DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER FROM DUAL;Start logminer session with the bracketing scn values and options etc:
    EXECUTE DBMS_LOGMNR.START_LOGMNR(STARTSCN=>2619174, ENDSCN=>2619191, -
               OPTIONS => DBMS_LOGMNR.DICT_FROM_ONLINE_CATALOG + DBMS_LOGMNR.CONTINUOUS_MINE + -
               DBMS_LOGMNR.COMMITTED_DATA_ONLY + DBMS_LOGMNR.NO_ROWID_IN_STMT + DBMS_LOGMNR.NO_SQL_DELIMITER)Query the logs for the changes in that range:
    SELECT
           commit_scn, xid,operation,table_name,row_id
           ,sql_redo,sql_undo, rs_id,ssn
           FROM V$LOGMNR_CONTENTS
        ORDER BY xid asc,sequence# ascResults:
    2619178     0C00070028000000     START                  AAAAAAAAAAAAAAAAAA     set transaction read write
    2619178     0C00070028000000     INSERT     TESTTABLE     AAAAAAAAAAAAAAAAAA     insert into "DEVUSER"."TESTTABLE" ...
    2619178     0C00070028000000     UPDATE     TESTTABLE     AAAFEXAABAAALEJAAB     update "DEVUSER"."TESTTABLE" set "DESCRIPTION" = NULL ...
    2619178     0C00070028000000     COMMIT                  AAAAAAAAAAAAAAAAAA     commitEdited by: 958701 on Sep 12, 2012 9:05 AM
    Edited by: 958701 on Sep 12, 2012 9:07 AM

    Scott,
    Thanks for the reply.
    I am inserting into the table over a database link.
    I am using the new version of HTML Db (2.0)
    HTML Db is connected to an Oracle 10 database I think, however the table I am trying to insert data into (via the database link) is in an Oracle 8 database - this is why we created a link to it as we couldn't have the HTML Db interacting with the Oracle 8 database directly due to compatibility problems (or so I've been told)
    Simon

  • Access 2010, Sharepoint 2010 issue with adding field to access db table

    I needed to add an additional field to one of my access tables contained in the sharepoint list. 
    My application is a front end Access DB (run locally), and the backend is the 'data' database contained in the sharepoint lists.
    I added the field to the database (called BOM).  When I open the access list (from sharepoint) , and also look at the database in access, the field is there and things are fine.
    However, it does not show up in my linked front end.  I deleted the linked sharepoint tables from my front end, and then re-imported.  Now I see the BOM field I created, but it has replaced the 'ID' field, which was the primary key.  I had
    added the 'BOM' field as the last field in the table.  Now it is the first field, having replaced the 'ID' field. 
    What's going on here? 
    Thanks in advance!

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Office, and the issue more related to Sharepoint 2010, I'll move your question to the Sharepoint 2010 forum
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/home?forum=sharepointgeneralprevious
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • How do I create an app to interact with my Web ? like skype or msn ?

    I need to create a downloadable interface like Skype or Msn which will interact with my website that is created on PHP and MySQL...
    What will be the best practices for this ? thanks in advance...

    You might take a look at Adobe's AIR platform which can use HTML, JavaScript, and Flash to develop applications that work on the desktop like a regular app but can also connect/interact with a web service. But that question is more in line with the Dreamweaver Application Development forum.

Maybe you are looking for

  • How do I connect ethernet to macbook air

    I have purcahsed an authorized usb adapter for ethernet for my macbook air. I have made several attempts using several suggestions from the web, no luck. Any links you could share or advice would be most appreciated. Thanks, mg

  • How to Destory connections from the Pool?

    Hi, I would like to know if it is possible to destroy/refresh a connection id from the DBPool using just a javacode that either refresh the whole pool or just one specific connection. We are using a DB cluster environment and once one of the Database

  • Need Help Understanding GoldenGate DR (Standby) Switchover/Fail-over with DBFS and Fuser

    Hi, Gurus. We are about to embark on GoldenGate DR failover / switchover configuration and testing using DBFS and Fuser. The details are described in Doc ID 1436913.1 and 1322547.1. I know the basics of GoldenGate and Oracle DataGuard. But DBFS and F

  • Doubt in coding to get idoc no

    Hi , i want to get corresponding idoc no s for delivery nos      I understood the logic of how to get the idoc no for particular delivery no.but unable to code it exactly. Message type is desadv Idoc type is delvry03. Segment name is E1EDL20 can u wr

  • How do I put the hard drive icon on my desktop?

    Been awhile since I've been back in the Mac world. Bought a new iMac (Intel-based). How do I put the hard drive icon on my desktop. When I go to it from the "go" menu in the finder, making an alias isn't even a choice!