Here is a JQuery AJAX call from a tutorial
Code:<script type="text/javascript"> $(document).ready(function() { $("#getWeatherReport").click(function(){ $cityName = document.getElementById("cityName").value; $.post("WeatherServlet", {cityName:$cityName}, function(xml) { $("#weatherReport").html( $("report", xml).text() ); }); }); }); </script>
JSP page
what is report in the above code ?Code:<form method="post"> Enter City : <input id="cityName" name="cityName" size="30" type="text" /> <input id="getWeatherReport" name="getWeatherReport" type="button" value="Get Weather" /> </form> <div id="weatherReport" class="outputTextArea"></div>
Is it a JQuery keyword ?
Can I rename it to anything I like ?
Does it have any dependency elsewhere ?



Reply With Quote


Bookmarks