Runtime error javascript on the page of the amx

Hello im trying to run the javascript function to get the position of the camera, but it doesn't work.

<?xml version="1.0" encoding="UTF-8" ?>
<amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"
          xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt">
    <amx:panelPage id="pp1">
        <amx:verbatim id="v1">
             <![CDATA[    
     <script>
      
    CheckGPS.check(function(){
        //GPS is enabled!
        alert("GPS ON");
        alert("POR LLAMAR EL CORDOVA");
            var options = {
                maximumAge : 3000, timeout : 5000, enableHighAccuracy : true
            };
            watchID = navigator.geolocation.watchPosition(onSuccess, onError, options);


            function onSuccess(position) {
                var latitud = position.coords.latitude;
                var longitud = position.coords.longitude;
                adf.mf.api.invokeMethod("ar.com.agridata.mobile.bean.GPSBean", "setCoordenadaLatitud", latitud, onInvokeSuccess, onFail);
                adf.mf.api.invokeMethod("ar.com.agridata.mobile.bean.GPSBean", "setCoordenadaLongitud", longitud, onInvokeSuccess, onFail);
                alert(latitud + " " + longitud);
                if (watchID != null) {
                    navigator.geolocation.clearWatch(watchID);
                    watchID = null;
                }
            };


            // onError Callback receives a PositionError object
            //
            function clearWatch() {
                if (watchID != null) {
                    navigator.geolocation.clearWatch(watchID);
                    watchID = null;
                }
            }


            // onError Callback receives a PositionError object
            //
            function onError(error) {
                alert('code: ' + error.code + '\n' + 'message: ' + error.message + '\n');
            }


            navigator.geolocation.getCurrentPosition(onSuccess, onError);
    },
    function(){
        //GPS is disabled!
        alert("GPS OFF");
    });
      
     </script>
     ]]> 
        </amx:verbatim>
        <amx:facet name="header">
            <amx:outputText value="Header" id="ot1"/>
        </amx:facet>
        <amx:facet name="primary">
            <amx:commandButton id="cb1" action="__back"/>
        </amx:facet>
        <amx:facet name="secondary">
            <amx:commandButton actionListener="#{bindings.resetFeature.execute}" text="resetFeature"
                               disabled="#{!bindings.resetFeature.enabled}" id="cb3"/>
        </amx:facet>
        <amx:panelGroupLayout id="pgl1" layout="horizontal" halign="center">
            <amx:image id="i1" source="/images/Logo_Final.png" inlineStyle="width:200px;"/>
        </amx:panelGroupLayout>
        <amx:panelGroupLayout id="pgl3" layout="horizontal" halign="center">
            <amx:outputText value="#{applicationScope.nombreEstab} - #{applicationScope.nombreLote} - #{applicationScope.nombreActiv}"
                            id="ot2"/>
        </amx:panelGroupLayout>
        <amx:spacer id="s1" height="10"/>
        <amx:panelGroupLayout id="pgl2">
            <amx:outputText value="Latitud. #{bindings.latitud1.inputValue}" id="ot7"/>
            <amx:outputText value="Longitud: #{bindings.longitud1.inputValue}" id="ot5"/>
        </amx:panelGroupLayout>
        <amx:listView styleClass="adfmf-listView-insetList" showMoreStrategy="autoScroll" bufferStrategy="viewport"
                      id="lv1">
            <amx:listItem id="li1" action="goPlagas">
                <amx:tableLayout width="100%" id="tl1">
                    <amx:rowLayout id="rl1">
                        <amx:cellFormat width="60px" halign="center" rowSpan="1" id="cf2">
                            <amx:image source="/images/display-hdpi-icon.png" id="i3" inlineStyle="width:45px;"/>
                        </amx:cellFormat>
                        <amx:cellFormat width="100%" height="#{deviceScope.device.os=='Android'?'36':'32'}px" id="cf1">
                            <amx:outputText value="Plagas" id="ot3"/>
                        </amx:cellFormat>
                    </amx:rowLayout>
                </amx:tableLayout>
            </amx:listItem>
            <amx:listItem action="goEnfermedades">
                <amx:tableLayout width="100%" id="tl2">
                    <amx:rowLayout id="rl3">
                        <amx:cellFormat width="60px" halign="center" rowSpan="1" id="cf4">
                            <amx:image source="/images/display-hdpi-icon.png" id="i4" inlineStyle="width:45px;"/>
                        </amx:cellFormat>
                        <amx:cellFormat width="100%" height="#{deviceScope.device.os=='Android'?'36':'32'}px" id="cf5">
                            <amx:outputText value="Enfermedad" id="ot4"/>
                        </amx:cellFormat>
                    </amx:rowLayout>
                </amx:tableLayout>
            </amx:listItem>
            <amx:listItem id="li4" action="goBeneficios">
                <amx:tableLayout width="100%" id="tl4">
                    <amx:rowLayout id="rl7">
                        <amx:cellFormat width="60px" halign="center" rowSpan="1" id="cf10">
                            <amx:image source="/images/display-hdpi-icon.png" id="i6" inlineStyle="width:45px;"/>
                        </amx:cellFormat>
                        <amx:cellFormat width="100%" height="#{deviceScope.device.os=='Android'?'36':'32'}px" id="cf11">
                            <amx:outputText value="Beneficios" id="ot8"/>
                        </amx:cellFormat>
                    </amx:rowLayout>
                </amx:tableLayout>
            </amx:listItem>
            <amx:listItem id="li3" action="goMalezas">
                <amx:tableLayout width="100%" id="tl3">
                    <amx:rowLayout id="rl5">
                        <amx:cellFormat width="60px" halign="center" rowSpan="1" id="cf7">
                            <amx:image source="/images/display-hdpi-icon.png" id="i5" inlineStyle="width:45px;"/>
                        </amx:cellFormat>
                        <amx:cellFormat width="100%" height="#{deviceScope.device.os=='Android'?'36':'32'}px" id="cf8">
                            <amx:outputText value="Otros Daños" id="ot6"/>
                        </amx:cellFormat>
                    </amx:rowLayout>
                </amx:tableLayout>
            </amx:listItem>
        </amx:listView>
    </amx:panelPage>
</amx:view>

do not directly perform the function onSuccess (position)

I hope your help

I realized that I was wrong code to save data in the variable. now it works perfectly. Xavier Ribas Thanks for your help

adf.mf.el.setValue ({"name": "#{bindings.latitud1.inputValue}", "value": latitud}, onInvokeSuccess, onFail);

adf.mf.el.setValue ({"name": "#{bindings.longitud1.inputValue}", "value": longitud}, onInvokeSuccess, onFail);

Tags: Oracle Mobile

Similar Questions

  • Error JavaScript prevents the table of contents, Index, search view

    I produced my RoboHelp HTML project webhelp and got an error javascript (this.maCom [...] (' is null or not an object) when you view the result. See the full error text below. So the table of contents, index and search are not displayed. We'll find the javascript error in the status bar of the browser that says "error on page". I found that if I saw the result of robohelp, the browser that launched shows the table of contents, index and search, but has a security warning about a restriction of running scripts or ActiveX controls. However, when I move the generated webhelp on my production server, the help doesn't have the security warning, but produces the error so that the table of contents, index and search do not show. I had done the same process to generate webhelp about 8 months ago but had no error whatsoever. In fact, this version is still in production and works very well.

    In my search for the problem, I found that it is the same error as message of the forum 4063663 (http://forums.adobe.com/message/4063663). I didn't have a second system with RoboHelp to be able to get other whphost.js, however, I have diff had the file generated with that found in template_stock and found only two different lines. These differences were only to replace a couple of variables with static text so I do not replace this file will solve any problem for me. That is the message of only forum I could find who addressed this issue.

    I was originally on RoboHelp 8.0.0 when I first encountered the problem, but has expanded and patched to version 8.0.2 and still had the same problem. I even created a new simple project. Once I moved the simple project on the production server, it also would display the table of contents, index and search.

    The strange thing is that only 8 months ago, I used the same process to generate webhelp without any errors (on 8.0.0). The only thing I can find is there is a Windows XP patch which affected the generation of webhelp. Furthermore, I also tried chrome and also produces the error.

    I don't know what is causing this problem or how to solve the problem. Anyone have any ideas?

    Versions:
    RoboHelp 8.0.2
    Windows XP
    IE 8.0.6001.18702CO
    Chrome 18.0.1025.168 m


    JavaScript error
    -------------------------
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0 .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729;. MS - RTC LM 8; InfoPath.2;. NET4.0C;. NET4.0E)
    Timestamp: Sun, may 2, 2012 16:32 UTC


    Message: Object EXPECTED
    Online: 344
    Char: 2
    Code: 0
    URI: http://server1/robohelp/whphost.js


    Message: 'this.maCom...' is null or not an object
    Online: 171
    Char: 3
    Code: 0
    URI: http://server1/robohelp/whphost.js
    --------------------------

    After further research and testing, I found the update of security for RoboHelp 8 and 9 (http://www.adobe.com/support/security/bulletins/apsb11-23.html) posted as an ad that I had not seen before. I used the feature updates of the product, but that said I was informed and did not include this update.

    Both javascript in this update files solve the problem. The table of contents, index and search now appear.

    Update:
    As I studied the problem further (when writing this reply), I found files that are newer than the latest security patches, I was aware of that. In addition, I discovered that my security organization decided to patch with APSB12-04 I don't know. This patch is why my 8.0.0 installation magically stop working. I see the announcement of the security, the bulletin was not all the required components for specific, that the patch can be applied to 8.0.1 and 8.0.2). (8.0.0, Adobe, please give more information on the ballots of so that organizations that deploy auto will be forced to find out what is running before the update. Information such as whether they apply to all versions of Robohelp 8 or simply a specific version. If APSB12-04 was supposed to apply to all versions of 8, then it did not work. In fact, he broke my installation of 8.0.0 for the generation of webhelp, but a later installation of 8.0.1 and 8.0.2. It seems that they have done a better job for APSB11-23. Maybe the security updates should be a kind of service pack that has a plant and a cancellation process. Right now, my security organization has replaced the files based on the specification in the security bulletin.

    I'll try to patch with APSB12-04 new since I've updated version 8.0.2 database to see if I still have the webhelp. If I can't view the table of contents, I have to take off once more and be 'in non-compliance."

  • How to fix the runtime error that keeps the appearance?

    Whenever I get on a website like Facebook or a gambling site it is said there is a runtime error and it will stop. I have to keep revisiting the sites. It is also said that there is a mistake in line___

    try to uninstall and reinstall IE8. but before you do, try to install another browser as backup...
    I hope this helps... Good luck!
  • had c ++ runtime error when checking the consistency in administration tool

    Hi all

    When I press ctrl + s or access the file menu-> check for overall consistency, I received a Microsoft C++ Runtime Library admin tool error.

    I can save the repository, but when I choose check consistency, the administration tool pop up of this error and the process of the administration tool hangs up.

    but, when I right click on a physical object, layer MDB or presentation, verification of the consistency right.

    any suggestions?

    The "Microsoft Visual C++ Runtime Library error" may be due to a program or service that runs at startup. Perform the clean boot process to check what programs and services is causing this error at startup.

    Step 1: Clean boot

    Step 2: Reinstall Visual C++ Runtime Libraries

    For the most part, this kind of error can be caused by two factors:

    1. components Runtime Library Visual C++ are missing.

    2. software problem.

    If the problem is caused by #1, you can reinstall Visual C++ Library Runtime components to solve the problem.

    Package redistributable Microsoft Visual C++ 2008 (x 86)

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en

    Clean boot

    =========

    1. click on start, type "MSCONFIG" (without the quotes) in the search bar and press "Enter" to start the System Configuration utility.

    2. click on the 'Services' tab, check "Hide all Microsoft Services" and click on 'Disable All' (if it's not gray).

    3. click on the 'Startup' tab, click 'Disable All' and click on 'OK '.

    4 restart the computer and test the issue.

    Make sure that you do not allow java updates. If you are allowing them to re - install and restart the machine, it can work

    Thank you

    Sasi nanou...

  • Runtime error insert in the data source, please help

    Hello;
    I do an application small security for a newspaper in function. I have everything works, but when I try to post to the DB and leave a field empty, it generates an error. I am placing my request code and then the 2 errors I get:

    Query:
    < cfquery datasource = "#APPLICATION.dataSource #" >
    INSERT INTO Bliplist
    (rejection, HTTP_USER_AGENT)
    VALUES
    (< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.rejip #" >,)
    < cfqueryparam cfsqltype = "cf_sql_longvarchar" value = "#form.browser #">) "
    < / cfquery >
    < cflocation url = "blist.cfm" >

    Error:
    Run database query error.
    [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] Field 'Bliplist.HTTP_USER_AGENT' cannot be a string of length zero.

    The error occurred in C:\Websites\4npp8b\admin\trac\bl-action.cfm: line 28

    26: (< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.rejip #" >,)
    27: <!-< cfif HTTP_USER_AGENT is true - > >
    28: cfqueryparam cfsqltype = "cf_sql_longvarchar" value = "#form.browser #">) "
    29: <!-< / cfif >->
    30: < / cfquery >



    --------------------------------------------------------------------------------

    SQLSTATE HY000
    SQL INSERT INTO Bliplist (rejection, HTTP_USER_AGENT) VALUES ((param 1), (param 2))
    VENDORERRORCODE-3702

    So I added the code to check if the field was true, and I get this error: (here's the cfif and error):

    < cfif HTTP_USER_AGENT is true >
    < cfqueryparam cfsqltype = "cf_sql_longvarchar" value = "#form.browser #">) "
    < / cfif >

    Error message:

    Run database query error.
    [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] Syntax error in INSERT INTO statement.

    The error occurred in C:\Websites\4npp8b\admin\trac\bl-action.cfm: line 28

    26: (< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.rejip #" >,)
    27: < cfif HTTP_USER_AGENT is true >
    28: cfqueryparam cfsqltype = "cf_sql_longvarchar" value = "#form.browser #">) "
    29: < / cfif >
    30: < / cfquery >



    --------------------------------------------------------------------------------

    SQLSTATE 42000
    SQL INSERT INTO Bliplist (rejection, HTTP_USER_AGENT) VALUES ((param 1),)
    VENDORERRORCODE-3502

    What I am doing wrong and how to fix it? I have also a query on this update and that throws the same error is there, it's a blank form field, kind of lost here. How to allow length 0?

    Thank you.

    CFmonger

    jdeline wrote:
    > Under certain circumstances, HTTP_USER_AGENT will not exist. What you want to do is .

    This may not work. He has a little known gotcha with CGI variables.
    IIRC do to their fickle nature, ColdFusion will always return true for
    a test of IsDefined() for any value.

  • Active runtime error editor or any page of jnlp Java web start

    When I try to run the active Editor or Import/Export or pages that runs using Java Web Start jnlp, I get an error. Java Web start 7 starts but he throws "Could not connect to Server. Please check your browser and Java Web Start proxy settings".

    I read different opinions on the internet as to which version of JRE/JDK is required, and potentially a few issues running Java Web start with Java 7. I have 1.7.0_45 of 64 bit java JDK/JRE THAT installed and no other version. I tried to install 1.7.0_45 32-bit as well. I tried to run it from a 32-bit browser like 64-bit also. All situations are the same error.


    However, when I install JRockit, it seems to work correctly. But we cannot use jrockit. You must use IBM JDK/JRE 7 subsequently. Currently, the java web start does not work on Oracle Java as well as IBM JRE.

    Any help is very appreciated.

    I found a solution for this problem. We need to apply the hotfix 17634436.

    https://support.Oracle.com/epmos/faces/UI/patch/PatchDetail.JSPX?_afrLoop=149081897091441&patchId=17634436&_afrWindowMode=0&_adf.CTRL-State=xfsajjmff_74

    Just thought that it will be useful for all those who encounter this problem.

  • When you try to open the AOL software, I get the runtime error message

    When you try to open the AOL software, I get an error of execution as follows:

    Program C:\Program Files (x 86) \AOL Office waol.xe 9.7

    When contacting Dell to resolve this problem, told me to contact Microsoft. I have no problem with Internet Explorer. It is only with AOL.

    Hello

    1. which version of the Windows operating system is installed on your computer?

    2 have you made changes on the computer before this problem?

    I suggest you try to uninstall then reinstall the program and check if this may help.

    Step 1: Uninstall or change a program:
    http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program

    Step 2: install a program: http://windows.microsoft.com/en-US/windows-vista/Install-a-program

    For more information, see the following link:

    http://help.AOL.com/help/microsites/microsite.do?cmd=displayKC&docType=kc&externalId=54116

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-a-runtime-error

    Hope the information is useful.

  • After the installation of Trend Micro Titanium Maximum Security 2011 Visual C++ runtime error

    I installed Trend Micro Titanium Maximum Security 2011. I restarted the laptop, there is an error message:

    "Visual C++ runtime error.

    The Application requested execution to terminate in an unusual way.

    Laptop would be hanging there & not procceed further. I had to restore to the already known good restore point. I've experienced & concluded that Trend Micro creates a problem.

    A fix for this problem?

    Vishal


    This can happen when a previous antivirus product was not completely removed. Use the cleaning of the previous antivirus tool.

    Contact Trend Micro Support here http://support.antivirus.co.uk/trendmicro/kbsearch1.jsp (you may need to change this for your country)

    Trend Micro forums may be able to help http://community.trendmicro.com/

  • First elements 11 - anyone know the fix?  -Microsoft Visual C++ Runtime Error

    Microsoft Visual C ++ Runtime Error - closing of the premier 11 elements

    In my view, there are fixes out there for Photoshop elements, but cannot find the fix for Prime Minister 11 elements. Anyone know where it is?

    Alex7777

    Which operating system do you use first 11 elements? For now, I'll assume Windows 7, 8 or 8.1 64bits.

    1. delete the Adobe Premiere elements Prefs file and, if it does not, remove the whole 11.0 folder in which the Adobe Premiere elements Prefs file exists.

    Local disk C

    Users

    Owner

    AppData

    Roaming

    Adobe

    First Elements

    11.0

    and in the 11.0 folder is the Adobe Premiere elements Prefs file that you delete. If this does not work, you delete the together 11.0 folder in which the file Adobe Premiere exist. Don't forget to work with folder Option show hidden files, folders and disks active so that you can see the full quoted path.

    2 uninstall/reinstall according to the following specific

    a. disable the program in an open with Menu on/off project help

    b. uninstall the program in the usual way of Control Panel

    c. a free ccleaner Cross (parts regular cleaner and registry cleaner) to get rid of remnants of incomplete uninstalls reinstalls

    d. Resinstall with antivirus and firewall disabled

    The Adobe document that makes the Microsoft Visual C++ runtime error

    Solve the C++ runtime errors. Adobe products | Windows

    Please consult the bulletin and review, and then let us know the result.

    Thank you.

    RTA

  • Microsoft VBScript runtime error: If there is already a file in DTS

    We have a DTS (data transformation service) which is scheduled to run every 15 minutes, moderately DTS is being failed because the Microsoft VBScript runtime error but in the next race it runs successfully

    DTS is designed to generate a new text file and transfer it to a specific folder, we checked the folder when it triggers the error but I couldn't find the duplicate in the folder files

    so can someone help me solve this problem

    Here's the DTS error triggered

    DTSStep_DTSActiveScriptTask_9, error =-2147220482 (800403FE) string error: Error Code: 0 error Source = Microsoft VBScript Error Description error: file already exists error on the source of the error in line 61: Service of Microsoft data processing...  Exit code 2.  The step failed.

    Ganesh,

    Please contact the Microsoft Community.

    I wish that post you your query in MSDN for assistance more-

    http://social.msdn.Microsoft.com/forums/en-us/home?Forum=vbgeneral

    We know if you need help.

  • When I click on verification link after registry for screens LCD than the Runtime error page generates? How can I download LCD screens?

    I want to download Microsoft's LIQUID Crystal screens there that a runtime error page occurs. How can I solve?

    I am running Windows 7 and was able to record without a runtime for LCDs error. Make sure that all the fields required to leave empty.

    See if this link helps:
    http://www.Microsoft.com/learning/en/us/training/LCDs-thankyou.aspx

  • Tried the FAQ help still getting a runtime error, server with a Web site error

    I tried several times to go on texags.com forums that I have in the past, but get the following message.

    In the Application Server error ' / '.
    Runtime error
    Description: An application error occurred on the server. The current settings of error customized for this application prevent the details of the error in the application being viewed remotely (for security reasons). It could, however, be read by browsers running on the local server computer.

    Details: To enable the details of this error message specific either visible on remote machines, please create a < customErrors > tag in a "web.config" configuration file located in the root directory of the current web application. The < customErrors > tag should have its attribute of 'mode' on 'Off '.

    <!-- Web.Config Configuration File -->
    
    <configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration>

    Note: The current error page, you see may be replaced by a custom error page by modifying the "defaultRedirect" of an application < customErrors > attribute tag configuration to point to a custom error page URL.

    <!-- Web.Config Configuration File -->
    
    <configuration>
        <system.web>
            <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
        </system.web>
    </configuration>

    Other people on the forum using firefox without problems and I did in the past. I'm moving to Chrome, but it is a huge block for me. I checked the updates and erased the history and cache as suggested in the FAQ. Any advice?

    Thank you. I tried only the part about the deletion of my story. Supposedly to forget this site or adjust my cookies solved the problem.

  • I went to check the letter American Legion for this month, I get a runtime error?

    I was do my email pok, but this month I aug.2014 check with the Legion and are gone send my name and email address.incase, she was lost, but I get this server "/" application then runtime error, I don't know why

    This also happens with the current version of Firefox 31?

    You can try the following steps in case of problems with web pages:

    You can reload webpages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and cookies only from Web sites that are causing problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Can run us javascript function locally within the amx page?

    Hello

    I am totally new to the features of the MAF, let me just 1 thing right, im familiar with the implementation of javascript as on PHP. For example, (1) you can create a js file in a certain directory of your project as long as you can connect properly. And, on the php page, you link such as)<script type="text/javascript" src="file.js"></script>)to be of use inside of your php page or (2)locally run the javascript function inside your php page such as

    function myFunction(){
      
    Alert("Hello World.");
    }.


    So far what I've done on the tutorial javascript MAF, same case, you need to specify your javascript function inside a .js file and save your js file in your maf function (so that the javascript functions are available and can be called through the java method of AdfmfContainerUtilities.invokeContainerJavaScriptFunction () inside your file of java bean managed). After that, in my case to test the tutorial, I need to create a managed bean method to call the associated javascript function based on my actionlistener to the button that ive created inside my amx page, it didn't work (NOTHING HAPPENED when the button is clicked, as maybe it's because I was wrong by calling the managed bean method or class({viewScope.popupHelperBean.onPopupShowHideAction}). )


    Please follow this tutorial to understand what im referring to topic-> https://blogs.oracle.com/mobile/entry/how_to_open_and_close

    (If someone has already managed to made this javascript tutorial, please inform me so that I can see on my error).


    Now I'm trying a different approach which is to run the javascript locally, it's just that I don't have enough resources that could satisfy my investigation to start with. I met this amx: verbatim terms during my research. Fact amx: verbatim help by running the JavaScript locally.


    Thanks in advance.




    Hello Amey,

    Thanks, I had run successfully the popup alert box based on javascript this tutorial you had linked to me, it seems that I am on the right track on how to run javascript on the page of the amx. Its just that the tutorial I mentioned on my post doesn't seem to work as it should, I'll try to resolve the issues for a while. I just want to share with the community who are new to the MAF and are currently working on the custom javascript on page amx application:

    1. include your js inside your working directory file

    2. Add the javascript code that is personalized to your AMX

    3. create a managedbean and a method that could call the javascript function

    Carefully follow this tutorial as mentioned by Amey have the idea of how the javascript is running on amxpage--> https://blogs.oracle.com/mobile/entry/invoking_custom_javascript_from_an

    By the way, thank you very much Amey.

    Learner90

  • Use of javascript within the page fragment

    Im trying to use javascript code within a fragment of a page with the tag

    AF:resource

    But the second time the page reloads I got this error: "ReferenceError: works is undefined"

    <af:resource type="javascript">
          function funciona() {
              alert(123);
          }
    </af:resource>
    

    IM using JDeveloper 12 c

    Check the 'witch hunt during the use of JavaScript in the regions of the ADF' in this document http://www.oracle.com/technetwork/developer-tools/adf/learnmore/march2012-otn-harvest-1571998.pdf

    Timo

Maybe you are looking for