<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: UI5: No output ( Java script not working ) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/ui5-no-output-java-script-not-working/qaa-p/11420258#M4243563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajit,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Try using&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; data-sap-ui-libs="sap.m,sap.ui.commons" in your index.html &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;or use&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt; var oButton = new &lt;STRONG&gt;sap.m.Button();&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp; oButton.setText("Click me");&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp; oButton.attachPress(oController.handleButtonClicked);&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp; return oButton;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Naren L Naik&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Dec 2015 06:18:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-12-13T06:18:06Z</dc:date>
    <item>
      <title>UI5: No output ( Java script not working )</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-no-output-java-script-not-working/qaq-p/11420257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to develop my first UI5 application. I have followed the steps written in a book and did the coding part exactly written in that book. and still output is not coming. I am just trying to display a button and on click it should just alert a message. followed the MV pattern and java script paradigm. Can you please tell me what's wrong in the below codes ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;index.html&lt;/P&gt;&lt;P&gt;===================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE HTML&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;script src="resources/sap-ui-core.js"&lt;/P&gt;&lt;P&gt;&amp;nbsp; id="sap-ui-bootstrap"&lt;/P&gt;&lt;P&gt;&amp;nbsp; data-sap-ui-libs="sap.m"&lt;/P&gt;&lt;P&gt;&amp;nbsp; data-sap-ui-theme="sap_bluecrystal"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;!-- only load the mobile lib "sap.m" and the "sap_bluecrystal" theme --&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; sap.ui.localResources("zui5_with_mvc");&lt;/P&gt;&lt;P&gt;&amp;nbsp; var app = new sap.m.App({initialPage:"idmain1"});&lt;/P&gt;&lt;P&gt;&amp;nbsp; var page = sap.ui.view({id:"idmain1", viewName:"zui5_with_mvc.main", type:sap.ui.core.mvc.ViewType.JS});&lt;/P&gt;&lt;P&gt;&amp;nbsp; app.addPage(page);&lt;/P&gt;&lt;P&gt;&amp;nbsp; app.placeAt("content");&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;body class="sapUiBody" role="application"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;div id="content"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main.view.js&lt;/P&gt;&lt;P&gt;=================================&lt;/P&gt;&lt;P&gt;sap.ui.jsview("zui5_with_mvc.main", {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /** Specifies the Controller belonging to this View. &lt;/P&gt;&lt;P&gt;&amp;nbsp; * In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.&lt;/P&gt;&lt;P&gt;&amp;nbsp; * @memberOf zui5_with_mvc.main&lt;/P&gt;&lt;P&gt;&amp;nbsp; */ &lt;/P&gt;&lt;P&gt;&amp;nbsp; getControllerName : function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp; return "zui5_with_mvc.main";&lt;/P&gt;&lt;P&gt;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed. &lt;/P&gt;&lt;P&gt;&amp;nbsp; * Since the Controller is given to this method, its event handlers can be attached right away. &lt;/P&gt;&lt;P&gt;&amp;nbsp; * @memberOf zui5_with_mvc.main&lt;/P&gt;&lt;P&gt;&amp;nbsp; */ &lt;/P&gt;&lt;P&gt;&amp;nbsp; createContent : function(oController) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*return new sap.m.Page({&lt;/P&gt;&lt;P&gt;&amp;nbsp; title: "Title",&lt;/P&gt;&lt;P&gt;&amp;nbsp; content: [&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;&amp;nbsp; });*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var oButton = new sap.ui.commons.Button();&lt;/P&gt;&lt;P&gt;&amp;nbsp; oButton.setText("Click me");&lt;/P&gt;&lt;P&gt;&amp;nbsp; oButton.attachPress(oController.handleButtonClicked);&lt;/P&gt;&lt;P&gt;&amp;nbsp; return oButton;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main.controller.js&lt;/P&gt;&lt;P&gt;==========================================&lt;/P&gt;&lt;P&gt;sap.ui.controller("zui5_with_mvc.main", {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/**&lt;/P&gt;&lt;P&gt;* Called when a controller is instantiated and its View controls (if available) are already created.&lt;/P&gt;&lt;P&gt;* Can be used to modify the View before it is displayed, to bind event handlers and do other one-time initialization.&lt;/P&gt;&lt;P&gt;* @memberOf zui5_with_mvc.main&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;// onInit: function() {&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;// },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/**&lt;/P&gt;&lt;P&gt;* Similar to onAfterRendering, but this hook is invoked before the controller's View is re-rendered&lt;/P&gt;&lt;P&gt;* (NOT before the first rendering! onInit() is used for that one!).&lt;/P&gt;&lt;P&gt;* @memberOf zui5_with_mvc.main&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;// onBeforeRendering: function() {&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;// },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/**&lt;/P&gt;&lt;P&gt;* Called when the View has been rendered (so its HTML is part of the document). Post-rendering manipulations of the HTML could be done here.&lt;/P&gt;&lt;P&gt;* This hook is the same one that SAPUI5 controls get after being rendered.&lt;/P&gt;&lt;P&gt;* @memberOf zui5_with_mvc.main&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;// onAfterRendering: function() {&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;// },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/**&lt;/P&gt;&lt;P&gt;* Called when the Controller is destroyed. Use this one to free resources and finalize activities.&lt;/P&gt;&lt;P&gt;* @memberOf zui5_with_mvc.main&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;// onExit: function() {&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;// }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; handleButtonClicked: function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp; alert("Pressed");&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Ajit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Dec 2015 05:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-no-output-java-script-not-working/qaq-p/11420257</guid>
      <dc:creator>Ajit_K_Panda</dc:creator>
      <dc:date>2015-12-13T05:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: UI5: No output ( Java script not working )</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-no-output-java-script-not-working/qaa-p/11420258#M4243563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajit,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Try using&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; data-sap-ui-libs="sap.m,sap.ui.commons" in your index.html &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;or use&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt; var oButton = new &lt;STRONG&gt;sap.m.Button();&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp; oButton.setText("Click me");&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp; oButton.attachPress(oController.handleButtonClicked);&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp; return oButton;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Naren L Naik&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Dec 2015 06:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-no-output-java-script-not-working/qaa-p/11420258#M4243563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-13T06:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: UI5: No output ( Java script not working )</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-no-output-java-script-not-working/qaa-p/11420259#M4243564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Naren. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Dec 2015 06:21:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-no-output-java-script-not-working/qaa-p/11420259#M4243564</guid>
      <dc:creator>Ajit_K_Panda</dc:creator>
      <dc:date>2015-12-13T06:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: UI5: No output ( Java script not working )</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-no-output-java-script-not-working/qaa-p/11420260#M4243565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anytime Ajit &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Dec 2015 06:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-no-output-java-script-not-working/qaa-p/11420260#M4243565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-13T06:23:02Z</dc:date>
    </item>
  </channel>
</rss>

