Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello friends please help me .this is my codes. and i am not able to run. these codes are not working . so please tell me where i am wrong.
XML
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <script src="script/JavaScript.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <title></title>
    <script>
        $(document).ready(function () {
            $("button").click(function () {
                $.ajax({
                    url: "demo_test.txt", success: function (result) {
                        $("#div1").html(result);
                    }
                });
            });
        });
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div>
<button>Get External Content</button>
    </div>
    </form>
</body>
</html>




and what is
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
and how to get this file
Posted
Comments
[no name] 24-Nov-14 1:23am    
What is the error ? What are you trying to achieve ?
Sinisa Hajnal 24-Nov-14 3:51am    
How it doesn't work? What do you get? Do you use Developer Tools of the browser?

The script tag you're asking about simply gets your jquery library, without it, you couldn't use ready or ajax functions (they would be undefined)
faizyab 2009 24-Nov-14 4:48am    
now i have changed the text file. now my code is working thank you so much

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900