Call .xhtml file from javascript function
Hi,
Is there a way to call .xhtml page from javascript function???
BalusC wrote:
Yes there are some ways. But this question has nothing to do with JSF and certainly not with Java at all. Javascript is an entirely different language, although it has a similar syntax as Java (and unforunately also a similar name, they should never have renamed it from ECMAScript).I think ECMAScript is a renaming from JavaScript. The originally JavaScript was called LiveScript by Netscape. I've heard that the ECMAScript name was deliberately chosen to be unsexy.
Similar Messages
-
Calling jsp file from javascript function
How can i call a jsp file itself from javascript function written in it?
I do not think you can invoke the current jsp directly using javascript.
If the effect you are trying to achieve is to reload the page, then you could execute the servlet / code which called the current jsp. -
Call Java Method From JavaScript Function
hi everyone
i need a help in calling Java method from a javaScript method
ex:
function confirmAddRecord() {
cHours =document.getElementById('frmP:ChargeHours').value;
cSTime =document.getElementById('frmP:ChargeStartTime').value;
var answer = confirm("Are you sure you want to add Record?")
if (answer){
here i want to call the Java Method that is located in session bean that takes the upper params cHours & cSTime
else{
return false;
i know i can do it as an action button but it is required me to be in that way can any one help plz
Message was edited by:
casper77That depends on the nature of your parameters. I guess you calculate the params on client and then want to submit them. In this case and if you don't want to use Ajax simple add some <input type="hidden"> elements (of course there correspondend components dependent of your framework) and store the params there. If the javascript isn't invoked by a button click, you can use a button nevertheless. Set visible="false" and call
document.getElementById('client_id_of_my_hidden_button').click();
(or maybe doClick() dependent on your framework). -
How to call a method written in user control (ascx file) from javascript
Hi to All,
I have one scenario where I need to call a method written in user control (.ascx.cs file) from javascript (ascx file). I tried below code but it is not working, I found later it works only for aspx or asmx file , is it true ??
Code:
$.ajax({
type: "POST",
url: "ViewSearch/SetServerSessionText",
data: "{'name':'" + searchText + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
error: function () {
alert("error");
Can anyone please tell me how to call ascx.cs code from javascript ??
Thanks in Advance !!!yes that is true, ajax calls can only be made to an endpoint like aspx pages/web service, basically anything that can return a http response etc. User Control can be embedded inside of aspx pages.
-
How to call java files from different directories
hi, how do i call java files from a different directory??
let say i got partA.java, and i need to include functions from partB.java which is in a different folder. how can i do that?Chicon wrote:
Hi nuttynibbles,
Before the class declaration in partA.java, you must have an import statement like :
import someDirectory.partB;
public class partA {
... and before you ask... you'll probably want to read through this http://java.sun.com/docs/books/tutorial/java/package/index.html -
How to execute FM from Javascript function?
Hi All,
I have a requirement to execute ABAP FM from Javascript function in BSP Application.
How do I implement this?
Is there any document/link in SDN?
Thanks
Thruna ShanmugaHi,
When button is clicked capture the event in OnInPutProcessing and call the function module.
In layout mention the java code
Here is a sample code:
Layout Code:
< script >
document.on keydown=function( )
if (event.key Code==13)
htmlb SL(this,2,'get') Mention the button ID
< /script >
<htmlb:button id = "get"
text = "Execute"
width = "35%"
on Click = "On InputProcessing()" />
OnInPutProcessing Code:
data:
w_event type ref to cl_htmlb_event,
call method cl_htmlb_manager=>get_event
exporting
request = runtime->server->request
receiving
event = w_event.
case w_event->id.(To capture the event)
when 'get'.
<<Call the function module>>
endcase.
Hope this solves the issue, Let me know if any queries.
Regards,
Rajani -
Calling JavaFX Script from JavaScript on mobile
Hi,
We are developing a application which would run on a mobile. We have to call javafxscript from javascript in this application. Is there a way to do this on a mobile application. I am able to do this for application running on browsers.
Will javafx mobile application support this Calling JavaFX Script from JavaScript?
Please share any information related to this.
Regards,
SherlynI doubt it (but I can be wrong!).
javafx.stage.AppletStageExtension is only on the desktop profile.
[Calling From JavaScript to JavaFX Script|http://javafx.com/docs/tutorials/javafx-javascript/] article states "+this functionality requires Java SE 6 Update 10 at minimum+" which seems incompatible with mobile usage.
Beside, a quick Google search hints that JavaScript support on mobile browsers is weak or inexistent (depending on browsers). -
Passing value from javascript function to servlet
Hello everybody,
i need to pass parameter from javascript function to servlet.
what i wrote is :
function callPopulateServlet(t)
var h =document.NewRequest.services;
var y = t.selectedIndex;
alert(h.options[y].value);
var id=h.options[y].value;
<%session.setAttribute("id",id);%> // am getting error at this point
document.NewRequest.submit();
with this id am quering values from database through servlet.
any body knows plz help me.
thanks,
anil.this is the error am getting
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) -
Calling a procedure from Javascript
Hello
I have created a procedure with two input paprameters.
I have gratted access to public ... and all works well
I would now like to call this from a Javascript where I supply the input paameters. The procedure has a redirect to another URL so there is no output
Currently I used "window.location" with the prodcedure URL ... I must beable to call the produced directly?
Thanks for taking the time to look at this request
Regards
PetePete,
Have a look at this thread:
How to call stored procedure from javascript? (about Google Suggest, AJAX)
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
http://sourceforge.net/projects/plrecur
You can reward this reply by marking it as either Helpful or Correct ;-) -
Call .bat file from java code
I need to call an application that uses a .bat file to execute from a java program. Is that possible?
This is the .bat file:
importcli.exe ciaf2735 C:\Importcli\files\SAI2735*.txt
importcli.exe ciaf2735 C:\Importcli\files\CI2735*.txt
importcli.exe ciaf2735 C:\Importcli\files\SC2735*.txt
importcli.exe db1800 C:\Importcli\files\*.mdbmagaupe wrote:
I need to call an application that uses a .bat file to execute from a java program. Is that possible?
This is the .bat file:
importcli.exe ciaf2735 C:\Importcli\files\SAI2735*.txt
importcli.exe ciaf2735 C:\Importcli\files\CI2735*.txt
importcli.exe ciaf2735 C:\Importcli\files\SC2735*.txt
importcli.exe db1800 C:\Importcli\files\*.mdb
Hmmm, I wonder what would happen if there were a web search engine and you could research like this:
[http://www.google.com/search?hl=en&q=call+.bat+file+from+java] -
I want to transfer files from a functioning hard drive in a nonfunctioning MacBook Pro to an external drive. I have an IDE/SATA drive adapter. The files won't fit on the drive for a working computer I have. Can I use it to transfer files to the external drive?
Good luck and you are welcome.
Like I said, I bought one of their inexpensive enclosures and now can use the hard drive just as a source for the files that are on it...my external drives are much larger and faster so I just plug that drive in when I need something from it.
This one is on sale for $16 http://eshop.macsales.com/item/OWC/ES2.5BPU2S/ -
I wants to call .Exe file from Java Programme
I wants to call .Exe file from Java programme. Please give answer with example. This very urgent. Help me
hi
u can use Runtime.exec() method in java.lang package
to execute exe files
regards
pnp -
Calling java APIs from a function module
Hi,
Can someone tell me whether it is possible to call Java APIs from a function module in SAP system?
Thanks in advance,
VineethaHi,
I guess you have changed the properties of screen only.
I assume you have made a Ztransaction Code.
When you define a transaction code, you need to specify a screen number for radio option program and screen and you need to specify a screen and not subscreen.( I think so!!)
You changed only the code without changing the transaction code properties.
Therefore, i think u r getting a dump.
If you want to call your subscreen, call it in some screen and then call that screen using your transaction code properties.
To include a subscreen screen in the subscreen area of the main screen and call its PBO flow logic, use the following statement in the PBO event of the main screen:
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN <area> INCLUDING <prog> <dynp>.
To call the PAI flow logic of the subscreen screen, use the following statement in the PAI flow logic of the main screen:
PROCESS AFTER INPUT.
CALL SUBSCREEN <area>.
Refer:
http://help.sap.com/saphelp_webas630/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/content.htm
Regards,
Tanveer.
Please mark helpful answers.
Message was edited by: Tanveer Shaikh
Message was edited by: Tanveer Shaikh -
How to call SOAP API from JavaScript
Hi,
I'm trying to call the SOAP API to get statistics about emails. Are there any examples on how to call the API from JavaScript?
Here is a link to my original question about using the REST API. REST API URL for email statistics
Thanks,
TimTim,
In order to consume a SOAP API I recommend you use something other than JavaScript.
Any platform can offer you a good SOAP client should be OK. (.Net, Java, php, Ruby, python).
I didn't see anyone successfully used javascript and consume the Eloqua SOAP API.
I know you can create a SOAP client in Java script but it will be too much work to handle the Eloqua response in some cases.
Regards,
Daniel -
How to Call .XDO file From Java Program
Hi,
I have developed a report in using BI Publisher version 10.1.3.
I created the report and it only created XDO files. If I want to call XDO file from Java program how I can do that.
What are the APIs available to do that.
Thanks
-AshutoshHi,
the JavaAPI didn't work with the xdo-Files. But you can create a proxy stub for the Web Service API of BI Publisher which uses the xdo's in the repository.
regards
Rainer
Maybe you are looking for
-
hi...!!!! i have got a belkin wifi router and i have been using this for ever but now since i have the Airport extreme i wanted it to connect it to my existing network and access my seagate HDD wirelessly and l without plugging in any ethernet or an
-
How to delete a management agent from grid control completely?
I have installed oem grid control 10.2.0.4.0 on single host(oemlinux.oracle.com), and I removed agent10g, and reinstall a new management agent into a new location, but when I wanted to add a weblogic server to monitor, I got error as below: More than
-
Dear gurus, I want to use ABAP query. However, i wonders about its performance. Would anyone please show your opinion and experience using this tool? Is it taking long time to run this tool? Will it effect the overall performace of the
-
Creation of Tab pages in a form in C#
Hi Experts, I would like to create an 2-3 diffetent tab pages in a single form in SAP B1.(like as we have differrent tabs in a windows) I am quit new to this, can any one help me here providing the keywords, function ect.. It wold be really helfull i
-
I'm having a few problems with the Junk Mail Filter that I have set up in Mail. The Junk Mail that always seems to get through is that that contains images. Obviously the scumbags that send these emails probably know this is a floor in Junk Mail filt