Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] qtip + webservice asp.net
13th July, 22:45
Post: #1
[Solved] qtip + webservice asp.net
Hi,

This is basically what I want to do.
I have a form that has a list of users.
When i hover over the user i want to display their address.
I get how to use qtip but not sure how to make it work with a webservice.
I need to pass in the ID of the user and pass it to the webservice.
I want to return the address of the user from my webservice.
I'm not sure if this needs to be returned in some sort of format.
Can anyone help me please?
Find all posts by this user
Quote this message in a reply
14th July, 17:08
Post: #2
RE: qtip + webservice asp.net
I can't even seem to get my webservice to be called.

Any help would be appreciated.

Here is my code so far:

JS Code
<script type="text/javascript">
    $(document).ready(function() {
        $('.sample').qtip({
            content: {
                title: {
                    text: 'Sample',
                    button: 'Close'
                }
            },
            position: {
                corner: {
                    tooltip: 'leftMiddle'
                }
            },
            show: { solo: true },
            hide: {
                when: {
                    event: 'click'
                }
            },
            style: {
                border: {
                    width: 3,
                    radius: 5,
                    color: '#6699CC'
                },
                api: {
                    beforeShow: function() {
                    $.ajax({
                    url: 'Test.asmx/HelloWorld',
                    data:'{}',
                    type: 'GET',
                    contentType: "application/json; charset=utf-8",
                    dataType: "json"
                    });
 
                }
 
                },
                tip: {
                    corner: 'leftMiddle',
                    color: '#6699CC',
                    size: {
                        x: 20,
                        y: 8
}
                    },
                    width: 420
                }
            });
        });
</script>


This is my reference to my service:

ASP Code
<asp:ScriptManager ID="ScriptManager1" runat="server">
    <Services>
        <asp:ServiceReference Path = "Test.asmx" />
    </Services>
</asp:ScriptManager>
Find all posts by this user
Quote this message in a reply
19th July, 23:41
Post: #3
RE: qtip + webservice asp.net
j2, you've put your api object inside your style object, this isn't correct. Put it within the main object like the position and content objects.

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Help when using an asp.net updatepanel mark007 4 439 15th February 10:04
Last Post: mark007
  qTip & ASP.NET UpdatePanel Postback Problem qTipNoob 4 3,040 10th January 15:01
Last Post: naupadnara
  qtip with dynamic content using vb.net mrnorway 1 1,195 13th February 16:33
Last Post: Craig
  qTip, AJAX and .NET miketravis 19 5,600 21st January 20:45
Last Post: dotNETMkv
  Modal window disappear after asp.net postback mohammad 1 1,488 2nd August 09:05
Last Post: Craig
  Asp.Net AJAX Postback jpadilla 14 4,374 23rd September 18:01
Last Post: Craig
  qTip and .NET?? briandaly40 11 2,453 1st September 14:46
Last Post: Craig
  .NET MVC Html.TextBox tooltip attribute raneehyde 1 3,949 26th June 23:42
Last Post: Craig
  qTips lost after .NET ajax postback bluehog 3 1,741 20th May 06:13
Last Post: rajakvk



User(s) browsing this thread: 1 Guest(s)