Solved

Changing this JQuery

Posted on 2012-03-10
3
168 Views
Last Modified: 2012-03-18
If you look at this link, there's a line of code:

error: function(XMLHttpRequest, textStatus, errorThrown) {
                    alert(textStatus);

Open in new window


Is there anyway NOT to display an alert..instead i want to display the msg in the page in the page...by binding it to lblmsg.Text. How can  I do this?

http://www.dotnetcurry.com/ShowArticle.aspx?ID=515
0
Comment
Question by:Camillia
3 Comments
 
LVL 15

Accepted Solution

by:
navneethegde earned 250 total points
ID: 37706691
Hi!

Add the HTML to the page

<form id="form1" runat="server">
<div class="demo">
<div id="lblmsg">
<div class="ui-widget">
    <label for="tbAuto">Enter Email: </label>
     <asp:TextBox ID="tbAuto" class="tb" runat="server">
     </asp:TextBox>
</div>
</div>
</form>

Open in new window


And

error: function(XMLHttpRequest, textStatus, errorThrown) {
                    $("#lblmsg").val(textStatus);
}

Open in new window


Is this want you are looking for?

Thanks!
0
 
LVL 75

Assisted Solution

by:Michel Plungjan
Michel Plungjan earned 250 total points
ID: 37707500
.val?

Either use .text() or .html() for a div - it will wipe the form since you did not close it either
0
 
LVL 7

Author Comment

by:Camillia
ID: 37707970
let me try
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now