How to integrate jquery code in extjs4 -


I am working in extj. I want to find the specific city season. I got the reference from "" All the information related to the given city in the JSN format by typing the following code in the HTML file -

  & lt; Script src = "http://ajax.googleapis.com/ajax/libs/JQuery/ 1.5.1/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; JQuery (document) .ready (function ($) {$ .ajax ({url: "http://api.wunderground.com/api/4ab310c7d75542f3/geolookup/conditions/q/IA/Pune.json", Data Types: "JasonP", success: function (perced_jason) {var location = parsed_jason ['location'] ['city']; var temp_c = parsed_json ['current_observation'] ['temperature_string']; warning ("current temperature" + location + "Is:" + temp_c);}}};});   

Its working correctly now I get this jquery code in the extjs controller Want to integrate it. So, no one guides me how to do it in extjs Can you guide the jquery code to integrate?

The following exts code is like yours, so that you It can be used within the controller.

  Ext.data.JsonP.request ({url: "http://api.wunderground.com/api/4ab310c7d75542f3/geolookup/conditions/q/ IA / Pune.json ", success: function (Parsed_json) {var location = parsed_json ['location'] ['city']; var temp_c = parsed_json ['current_observation'] ['temperature_string']; Warning ("Current location is + +" ":" + + temp_c);}});    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -