Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9169

Jquery fadeout() function not working

$
0
0

Hi All,

 

I again ran into issues. I followed the steps mentioned by you and now I am able to install SAPUI5 on my remote machine.

 

However, the code mentioned in the tutorial for fade-out "Hello World" button is not working.

 

Issue 1

 

I created the SAPUI5 Application project as per the instructions in video, the index.html file did run and a button with Hello world was also displayed but when clicked, it did not fade out. I guess the rendering did not work properly.

 

 

Then I changed the function to:

 

sap.ui.jsview("exercise_ui.HelloWorld", {

 

      getControllerName : function() {

         return "exercise_ui.HelloWorld";

      },

 

      createContent : function(oController) {

          var myButton = new sap.ui.commons.Button("btn");

 

          myButton.setText("Hello World");

 

          myButton.attachPress(function()

 

     {

     ("#btn").fadeOut();

     }

     );

 

          return myButton;

      }

 

Then it showed the error as shown below:

 

Issue 2

 

After encountering the above issue, I deleted the Exercise SAPUI from Project Explorer, It got deleted. Then I went to the SAP HANA Repository and tried to Delete the Instances from repository but it did not allow me to delete from Repository( I guess, without checkout).

 

I rewrote the entire program and it worked and showed the Hello World button. But again "fade out" did not work.

 

 

 

Please advice.

 

Regards,

 

Rahul


Viewing all articles
Browse latest Browse all 9169

Trending Articles