cancel
Showing results for 
Search instead for 
Did you mean: 

JQuery in Web App Designer

former_member202516
Participant
0 Kudos

Hi all,

I'm trying to load jquery library in my web application. I'm testing it with simple hide div on click function. I have downloaded and uploaded JQeruy file in MIME Repository via SE80 transaction and I'm calling it in script tag like this.

<script type="text/javascript"  src="bwmimerep:///sap/bw/mime/Customer/JavaScripts/jquery-2.0.3.min.js">

   $(function() {

       $('#right_button').click(function() {

           $('#middle').hide();

           return false;

       });       

   });

</script>

And this is not working, what can be wrong.

Thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member202516
Participant
0 Kudos

Never mind, i solved it...

Former Member
0 Kudos

Hello, would you share with us how you managed to load and use JQuery in the Web Application Designer?

I am loading JQuery in the <head> section, and using it in a script item, but unfortunately does not seem to work (my guess is that my script is interpreted before JQuery is loaded).

Thank you and regards, Giulio

former_member202516
Participant
0 Kudos

Hi Giulio,

i loaded it like this before closing head tag:

  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" />

  <script type="text/javascript" >Some code...</script>

   </head>

Hope this helps.

Mijodrag

former_member202516
Participant
0 Kudos

So guys, I'm trying to use JQuery in Web App Designer so I can animate sliding divs and thus create pages for reports but I don't think I'm linking JQuery library properly in XHTML editor, any suggestions?