Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qtip with dynamic content using vb.net
12th February, 19:31
Post: #1
qtip with dynamic content using vb.net
I need an example how to create a qtip with dynamic content using vb.net. I am new to this so please be very through in your description.

I have added 4 lines to my default.aspx pointing to the .js files.
JS Code
<script type="text/javascript" src="JS/jquery.qtip-1.0.0-rc3.min.js"></script>
    <script type="text/javascript" src="JS/jquery-1.3.2.min.js"></script>

Html:
JS Code
<a id="some-link" href="#">Show a qTip</a>
<div id="hidden-element" style="display:none"></div>

In VB codebehind "default.aspx.vb" I have tried to show a dynamic tooltip by firing this:
JS Code
ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "qtip", "$('#some-link').click(function() {$('#hidden-element').qtip({content: {text:   '<div>Insert content here</div>'}, // etc, etc }); qtip = jQuery('#hidden-element').qtip('api'); qtip.show();return false;});", True)

Am I doing completely wrong ? Please give me code examples or correct above; it do not work for me !
Find all posts by this user
Quote this message in a reply
13th February, 16:33
Post: #2
RE: qtip with dynamic content using vb.net
You need to include the jQuery library before qTip. Other than that I can't really help except with the qTip config. Why are you showing it immediately using the API?

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] Dynamic Content From Page Element frogg3862 2 89 3rd May 17:12
Last Post: frogg3862
  [Solved] qtip showing content from db doesn't change when content in db changes. vtoepel 2 144 23rd April 16:02
Last Post: vtoepel
  [Solved] Help when using an asp.net updatepanel mark007 4 433 15th February 10:04
Last Post: mark007
  qTip & ASP.NET UpdatePanel Postback Problem qTipNoob 4 3,028 10th January 15:01
Last Post: naupadnara
  Dynamic contenct not working property in sortable cleung 5 733 8th December 18:45
Last Post: Craig
  [Solved] dynamic tipcreation alnikitich 1 447 8th December 18:29
Last Post: Craig
  [Solved] QTip content from existing div element on page? dcash 4 2,519 8th December 18:29
Last Post: Craig
  [Solved] Dynamic content based off map area befeetback 1 1,046 25th August 18:23
Last Post: Craig
  how to get dynamic attri('id') before displaying on content davidkhan 3 618 23rd August 18:04
Last Post: Craig
  [Solved] Dynamic content not showing? dabd 3 812 21st August 18:17
Last Post: Craig



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