i have all my functions in a java class file....how do i call the function using ajax? does anyone know?
izzit possible to call the java function from the class file by ajax?
plz let me know if u know...
quite urgent...thx very much..
i have all my functions in a java class file....how do i call the function using ajax? does anyone know?
izzit possible to call the java function from the class file by ajax?
plz let me know if u know...
quite urgent...thx very much..
link?
why?
more info?
I mean.... I don't know myself, but it's a pretty general question.
You need to call a remote function on a different page via ajax?
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
What's a class file?
Do you mean a .js file?
If so, as long as the file is available to the page, you may use its functions. You can also use the DOM to make the file available. There are scripts here on DD (and probably elsewhere) that (among other things) 'load' .js files on a page.
See:
http://www.dynamicdrive.com/dynamicindex17/indexb.html
These scripts do this by creating a script tag element, assigning the .js file as its src attribute, and attaching it to the head element of the page. Although these actions are used with scrips that also use AJAX to load content, this part (loading a script) is purely a DOM operation.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
A class file is a file containing a Java class.Originally Posted by John
melvinoyh: Is it a server-side or a client-side class? Should it be used in an applet, or a servlet?
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Geez, I knew that. I got so used to folks saying java and meaning javascript, I thought this was the case here. After all, this is the javascript forum.Originally Posted by Twey
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Unfortunately, we haven't a Java forum.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Anyways, the OP may still be able to write a tag for the class using the DOM. In fact, with IE these days, any sort of object/embed is best done that way or with innerHTML or document.write (for this, all of these are best run from an external .js file) to avoid the 'click to activate this control' 'security feature' that MS recently added - not their finest hour.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Not if it's a server-side JSP page, to which I believe s/he is referring. There is no other reason to use AJAX, or to want to simply call a function and do nothing with the result, of which I can think.Originally Posted by John
Not their lowest, eithernot their finest hour.![]()
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Well, let's not get too excited until we find out what the reason(s) is/are and what type the class is.Originally Posted by Twey
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
its a java class file that contain java function.
yes, its a server side JSP page that have AJAX use POST method to post data to server and call the function in the java class file to perform some processing and return back the processed info back to jsp page...
how to do so?
Bookmarks