Java or Javascript?

Wanting to send SMS text from a mobile phone to a webpage, the wepage has a scrollbar that will change everytime an SMS text message is sent. Is this going to be Java or Javascript to allow this to work ?.
Cheers.

Wanting to send SMS text from a mobile phone to a
webpage, the wepage has a scrollbar that will change
everytime an SMS text message is sent. Is this going
to be Java or Javascript to allow this to work ?.
Cheers.It would be a wap page for the mobile phone. You could use a jsp for that. A controller would get the info from the jsp and send it to some code using Noctor API(www.noctor.com) or something similar. Using this API you would opene an SMPP connection to an SMSc and send the message to it.
I would suggets you try to understand the SMPP API a little bit and gothrougn one of the APIs which supports the protocol.

Similar Messages

  • Java vs Javascript NOT THE SAME THING

    Since we're all just users here it might be appropriate to remind people that Java and Javascript are two distinctly different things. With the recent warnings about Java some might be inclined to also disable Javascript in their browsers. There is no need to do that.
    Even thought the two frameworks have similar names they are not related.

    drcouzelis wrote:
    grabbexi wrote:I want to understand Unix/Linux better
    Which aspect of Unix / Linux do you want to understand better?
    Options include:
    Networking
    Servers
    System administration (user accounts, permissions)
    Software development
    Package management
    Differences between distributions / operating systems
    Kernel compiling
    The Linux Standard Base (LSB)
    Shared libraries
    Version control software
    Embedded linux
    The init process, boot manager, and dual booting
    File systems
    And other stuff.
    I was thinking a basic mix of everthing above, basically. Like: What are libraries? How does the system administration work? How does the kernel work? Etc. I mean - the answers are often not so complicated to understand on a basic level. My problem is, I don't know what questions to ask.
    I think I'm looking for some "tasks" which don't require a lot of time, I don't really HAVE the need to do extremely much on my Arch - but I would love to be ABLE to do more.
    bohoomil wrote:Well, I believe you mean 'using a particular Linux distribution' in the first place.
    Yes, you are right - that is what I meant.
    General response: Thanks to all of you so far. I'm starting to understand what I should do, just hoping I'm on the right track now.

  • Java to Javascript in Mac OS

    Hi ,
    I need help . I need to communicate from applet to java script in the same page . the only thing i came across is netscape.javascript.JSObject which gives access to DOM object . but this thing does not work with MAc system . i am using power MAc with classic JVM MRJ 2.2.5 . If some body can help me on this
    Siddhu

    I dont know whether you can do the reverse communication from java to javascript or not put once method define as public can be aacessed by javascript method and define the class as public.

  • Error using java and javascript

    I have a jsp page that links to a bean and is working fine (getting data from the database).
    On a html form I have a button with a picture that fires off javascript when clicked:
    <BUTTON TYPE=reset onclick=showinfo('<%=index%>')>
    <IMG SRC="http://localhost:8080/Portal/Images/q2.bmp" ALT="Info">
    </BUTTON>
    The javascript function just opens a new window and displays the text sent in:
    <Script Language=JavaScript>
    function showinfo(arrayindex)
    InfoWin=window.open("","InfoWin","width=345,height=220");
    InfoWin.document.write(arrayindex);
    return false;
    </Script>
    Well in the above example index is a number (pulled from the database using a java bean and javascript converts it into a string then the function displays it correctly. If I replace <%=index%> with regular text it works fine as well(because java isn't used to pull data)! The problem occurs when I retrieve text data from the database and send it to the function. The web page gives errors about a nonterminating string. But I can move the code to somewhere else on the form(as long as I don't send it to java script) and it will print the text to the screen. I can also view the source of the web page and the html shows the text from the data base as if I hard coded the text into the javascript!!!!!!!!!!!!!!!!!
    This must be a bug between java and javascript!
    -can pass numbers(from a database) between the two
    -can't pass text (from a database)between the two
    Any info would help!

    Found the problem myself!
    I am using an odbc connection to msaccess and the spaces in the text was messing things up!
    After taking out the spaces it worked again.

  • What's the difference between java and Javascript?

    I a new programer, I am getting Java down. Now I want to add some java scripts to my site. Is there any difference between java and Javascript? Can I use the Java API site refference and classes? Thanks..

    Java is a programming language, Javascript is more for web pages. It is used to add interactivity to your web pages. 2 different languages.
    check out www.java.sun.com for Sun Java stuff.
    Lynn

  • Java inside javascript

    Hi
    i am getting alert messages to be displayed in the GUI from the properties file.
    can anyone tell me how can i use java inside javascript..?
    so that i can use ResourceBundle file in javascript.
    Regards
    Sonia

    Do you know how to retrieve the text you want from the properties file? If so then all you have to do is add:
    <script type="text/javascript">
    alert('<%=variablename%>');
    </script>
    to your page, where you replace variablename with the name of the String you want alerted.
    If you don't know how to retrieve what you need from the properties file, maybe you should ask that question.

  • Java and javascript cookies

    Hi
    i create a cookie called "SaveState" from javascript in my JSP dynpage.
    I want to read this from java (NOT JAVASCRIPT).
    Is this possible?
    if not, is there some kind of portal memory I can use to pass values between java and javascript?
    thanks
    Anton Kruse

    Hi,
    <b>Domain</b>
    The "domain" parameter is used to set the domain the cookie is accessable to. A path can be set for your own domain only and the domain path must include at least two periods (.domain.com). It must match your server's domain name. Therefore cookies are not a security risk since only the server that sets them can use them.
    Check this to know more about cookies:
    http://www.comptechdoc.org/independent/web/cgi/javamanual/javacookie.html
    If you still have questions, I will suggest to google on cookies.
    Greetings,
    Praveen Gudapati

  • Use plsql within java (or javascript) programs

    hi,
    to interface with oracle db, I've always used PLSQL blocks within programs written in C language but now I've to insert PLSQL blocks in java or javascript language
    I don't know if it's possibile and I don't know how to do it
    may someone explicate it to me?
    thanks a lot!

    mfran2002 wrote:
    hi,
    to interface with oracle db, I've always used PLSQL blocks within programs written in C language but now I've to insert PLSQL blocks in java or javascript language
    I don't know if it's possibile and I don't know how to do it
    may someone explicate it to me?
    thanks a lot!There is no pre-processor in the Java standard packages (don't know if there is one out there somewhere, but I imagine that there probably is) as there is for Pro*C. Oracle have one in store??? ... hope so.
    So in Java the SQL (including function calls) is built as Strings, which are then fed as arguments to the execute methods of Statement, or to the PreparedStatement itself - that tutorial will spell this all out well.
    So the SQLs can be static or build dynamically.
    ~Bill
    Also ... you can store Java stored procedures in the Oracle DB, wrapped as PL/SQL functions and then call them as such.

  • Java to javascript problems with '

    I have a class that pass some strings to a javascript alert(<....>)
    In this sting I have some < ' > and when I launch the class I get always an alert with the ASCII code of < ' >.
    I used this syntax inside the String
    String alertSctring="Let \' go";
    but I get
    Let &#39 go
    Why?

    I'm sure the problem has to do with escaping values in strings in Java and Javascript.
    Try using double-backslash quote.. like "Let \\' Go"

  • 1.6.0_10 and 11, Memory leak returning variables from Java to JavaScript

    Environment: Windows XP SP2, IE7, JScript 5.7, JRE 1.6.0_11-b03 and 1.6.0_10
    Memory allocated in Java and returned as a JavaScript variable value is not garbage collected in Java when the JavaScript variable is re-used.
    In the following simplified example, a populated HashMap is returned from the applet test1 method to the JavaScript variable hash1.
    The JavaScript variable hash1 is re-used on the next iteration so I would expect it should be marked for garbage collection.
    In 1.6.0_7 and previous releases, the memory associated with this Java HashMap is freed implicitly.
    In 1.6.0_10 and 1.6.0_11 the HashMap memory is never freed.
    Is this is what we should expect, a feature of the significant LiveConnect changes that were part of 1.6.0_10?
    Do we need to rewrite our code to call new Java methods from JavaScript explicitly freeing the memory, in this example calling the freeMem method?
    Has anybody else experienced this problem since 1.6.0_10?
    Thanks
    Rob
    Example code ...
    TestRLApplet.java
    import java.applet.Applet;
    import java.util.HashMap;
    public class TestRLApplet extends Applet
    private HashMap hash1;
    public TestRLApplet()
    public void init()
    public HashMap test1()
    hash1 = new HashMap();
    for (int i = 0; i <10; i++) {
    hash1.put(Integer.toString(i),Integer.toString(i));
    return (hash1);
    public void freeMem() {
    hash1.clear();
    hash1 = null;
    TestClient.htm
    <HEAD>
    <TITLE></TITLE>
    <SCRIPT LANGUAGE="javascript">
    function window_onload()
    var hash1;
    testAppplet = document.TestRLApplet;
    for (cnt=0; cnt < 1000; cnt++)
    hash1= testAppplet.test1();
    </SCRIPT>
    </HEAD>
    <object
    classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = 1 HEIGHT = 1 NAME = "TestRLApplet" >
    <PARAM NAME = CODE VALUE = "TestRLApplet.class" >
    <PARAM NAME = ARCHIVE VALUE = "../applets/TestRLApplet.jar" >
    <PARAM NAME = NAME VALUE = "TestRLApplet" >
    <PARAM NAME = MAYSCRIPT VALUE = true >
    <param name = "type" value = "application/x-java-applet;version=1.6">
    <param name = "scriptable" value = "false">
    </object>
    <BODY LANGUAGE=javascript onload="return window_onload()" leftMargin=40 id=body >
    </BODY>
    </HTML>
    Java Console
    Java Plug-in 1.6.0_10
    Using JRE version 1.6.0_10 Java HotSpot(TM) Client VM
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    Memory: 5,056K Free: 2,551K (50%) ... completed.
    Memory: 7,996K Free: 3,499K (43%) ... completed.
    Memory: 7,996K Free: 1,038K (12%) ... completed.
    Memory: 13,180K Free: 3,745K (28%) ... completed.
    Memory: 22,844K Free: 5,614K (24%) ... completed.
    Memory: 37,984K Free: 15,009K (39%) ... completed.
    Memory: 37,984K Free: 13,069K (34%) ... completed.
    Memory: 37,984K Free: 6,125K (16%) ... completed.
    Memory: 65,088K Free: 25,107K (38%) ... completed.
    Memory: 65,088K Free: 21,201K (32%) ... completed.
    Memory: 65,088K Free: 13,381K (20%) ... completed.
    Memory: 65,088K Free: 7,967K (12%) ... completed.
    Memory: 65,088K Free: 5,013K (7%) ... completed.
    Memory: 65,088K Free: 414K (0%) ... completed.

    What are you missing?
    I inherited this app and signing the third party jars is how it was setup, I was wondering the same thing too, why was it necessary to sign the third party jars?
    The applet runs in either JRE 1.6.0_13 or JRE 1.6.0_27 depending on the other Java apps the user uses. JRE 1.6.0_13 does not have the mixed code security (so it is like is disable), but JRE 1.6.0_27 does have the mixed code security and the applet will not launch with mixed code security enable, so we have to disable it. With all the hacking going on in the last two years, is important to improve security; so this is a must.
    Yes, I always clear up the cache.
    Any idea on how to resolve this problem?

  • Calling a Java Applet - Javascript

    Hey guys,
    I'm still fairly new to Java. I'm having a hard time getting my Applet to run properly.
    Basically, this is what I want it to do:
    I have a web page with a series of fields on it (a form). I have a submit button. When the user clicks the submit button, it activates a Javascript function in a seperate file that validates ALL of these fields. The validation that it does is merely to determine whether or not the fields are blank.
    Once it's accomplished this task, I THEN want it to run a Java applet.
    Everything works up until the point at which it runs the Java applet. I'm not sure how exactly I'm supposed to call the applet from Javascript.
    In every example of a web page that I see that has an applet, it has something that looks like this:
    <APPLET CODE="classname.class >
    </APPLET>That's all fine and good, but the problem is that it automatically calls the Applet then. I don't want it to do that. Is there a way that I can CALL the applet at the very end of a JS file? I mean, I don't want anything to load, no grey boxes or any of that stuff until I actually call it..
    Any idea?
    Thanks!
    Todd

    dude,
    have you managed to call an applet method from firefox?
    I'm not sure it is working at all.
    I've read few articles and everyone is complaining about the same error:
    Error: document.appl01 has no properties
    in the case above the applet was called "appl01"
    I've tried using
    document.applets[0].<the applet method>
    and I've got the same result..

  • Communicate with java through javascript [accessControlException]

    all right I have an applet with this method in it:
    public String getText() throws UnsupportedFlavorException, IOException {
    Clipboard clipboard = getToolkit().getSystemClipboard();
    Transferable contents = clipboard.getContents(this);
    return contents.getTransferData(DataFlavor.stringFlavor);
    }in order to access the clipboard, the applet must be signed and it is.
    Everything works fine from Java's side, but when I try accessing the method from javascript, i get this error:
    SyntaxError: java.security.AccessControlException: access denied (java.awt.AWTPermission accessClipboard)why is that?
    here is my javascript code:
         var applet = document.getElementsByTagName('APPLET')[0];
         try {
               var textFromClipboard = applet.getText();
                     alert(textFromClipboard);
         } catch (err) {
                      alert(err); // java.security error everytime...
         }

    yes, I've looked into that but my method throws Exception and I can't capture them from outside that new inner class:
    AccessController.doPrivileged(new PrivilegedAction() {
                public Object run() THROWS EXCEPTION {
                            Clipboard clipboard = getToolkit().getSystemClipboard();
                            Transferable contents = clipboard.getContents(this);
                            return contents.getTransferData(DataFlavor.stringFlavor);
    });^ won't work

  • Java and Javascript

    I am in the process of a doing my final year project. I have to make an Interactive Guide. I am going to use SQL for the database and then use Java to interact with the database. I would like advice on and if people know of any good sources on where I can find good information on how to get Java to interact with Javascript. I have looked at other interactive guide websites and found that they use Javascript but upon viewing the source code I am unable to work out how they get them to interact.
    Secondly I was wondering if I could be pointed to a good source of information or if people can pass on advice on how to create a good login system.
    Thank you.
    Tim

    msc85tjm wrote:
    I am in the process of a doing my final year project. I have to make an Interactive Guide. I am going to use SQL for the database and then use Java to interact with the database. I would like advice on and if people know of any good sources on where I can find good information on how to get Java to interact with Javascript. I have looked at other interactive guide websites and found that they use Javascript but upon viewing the source code I am unable to work out how they get them to interact.
    Secondly I was wondering if I could be pointed to a good source of information or if people can pass on advice on how to create a good login system.
    Thank you.
    TimDefine, "interact with java." Are you talking AJAX? Not too sure what you meant by that.
    And what do you mean by "good" login system. What's "good" to me may not be "good" to you. What does it need to do, how secure does it need to be, what are your implementation restrictions, etc....

  • Java calling JavaScript

    I have a peculiar problem. ..
    i need to call a javascript function from jsp and get the string value returned by the function...
    i am calling the function like this
    <BODY BGCOLOR="#FDF5E6" onload="respPrompt('<%=line%>')"> in jsp file
    here is the function..
    script language="JavaScript">
    function respPrompt(line) {
    alert("hello")
    var favorite = prompt('Edit the line?',line);
    if (favorite) alert("edited line is s: " + favorite);
    else alert("You pressed Cancel or no value was entered!");
    return favorite;
    </script>
    i need to get hold of the value "favorite" in the jsp programm...and need to write it to a file...am doing this since i cannot handle files from inside a javascript function....
    plz gimme ur suggestions..
    thanks
    rao

    Java runs on the server
    javascript runs on the client in the web-browser.
    The only communication between the two is via http.
    You send a request (with request parameters)
    You receive a response in the form of an HTML page.
    Thats all the communication there is.
    Java can't call javascript, and javascript can't call java.
    If you need to prompt the user for info, send back an html page asking for that info, and then have them submit that result back to another servlet/jsp
    Cheers,
    evnafets

  • Linux + Netscape 6 + java to javascript

    Presently I am using Netscape 6 for linux and java plugin 1.3.1_02. I am trying to use code that was used with the older 1.3.1 plugin which worked.
    My problem is that I cannot successfully make the JSObject call: win = JSObject.getWindow(this); from my applet.
    When I make the call, the system crashes. It doesn't even trap an exception. Just closes down the browser.
    So I found out how to get around this by having the javascript send the applet a valid JSObject via a call to my 'setJsobject(JSObject win)' function in my applet.
    This works fine.
    BUT, when I try to use the new found JSObject, I am getting a security violation.
    I need to know what settings or actions can be changed in my system that will allow my java applet to communicate to the javascript of its browser page.
    All help is despirately welcome.
    Mark

    Now that I have a moment of reflection, I did install 1.3.1_02 and found that to get the applet to work, the HTMLconverter stuff has to be removed (no longer needed in 1.3.1_02 according to Sun). You can try with a simple:
    <APPLET ....></APPLET>
    See if that solves the problem for you.
    V.V.
    PS: I had to removed 1.3.1_02 and went back to 1.3.1 for some reasons that I no longer remember (par for the course for an old man like me).

Maybe you are looking for

  • Solaris 8 on sunfire V245?

    Hi, does anyone know if it's possible to install Solaris 8 on a Sunfire V245? Regards JArbert

  • Lightroom won't open Import dialog box

    Lightroom was working fine, but recently started locking up as soon as I click on import to bring up the import dialog box.  Other than that, lightroom appears to be running fine and zippy, but as soon as I click the button or go through file menu it

  • N95 8GB video centre Shuting off

    Hi, I have just converted a complete movie with N series video Manager and when i copied it into N95 8GB (The file size was about 600MB) from Gallery it is working fine every thing even the thumbnail but when i try to open video centre it shut's off

  • Changing the default size of imported images

    I create slides using other programs and import them into Keynote. Whenever I import an image it comes up as 800 x 613 so I have to go through the inspector to change the proportions (after checking not to scale) to 800 x 600, then have to right clic

  • How can I download a CD I bought to my IPOD NANO?

    I bought a CD I really like and want to download it into my ipod nano.  How can I do this?