|
Showing tips on load, destroying on ajax request begin, and recreating
|
|
18th May, 18:51
(This post was last modified: 18th May 20:14 by tones411.)
Post: #1
|
|||
|
|||
|
Showing tips on load, destroying on ajax request begin, and recreating
I'm working in ASP.NET (2008)
What my site needs is to show tooltips when a user hits the page. I found that when I left tooltips up jquery would get null object errors while the user is using other parts of the page, even when the parts of the page being used were not touching the tooltips target. Where jquery was getting upset: JS Code
The code I'm currently using to show on page load: JS Code
So I thought I would destroy the tips before each ajax call and recreate them after. The code wiring the begin and end request: JS Code
Lastly the code that destroys the tips: JS Code
This approuch has failed also the inlineHelpTempClose() does get called on a ajax call but now qtip is throwing an error saying that the value is null at this point: JS Code
Any suggestions on a better approuch or whats going wrong? Thank you. |
|||
|
19th May, 14:09
Post: #2
|
|||
|
|||
|
Showing tips on load, destroying on ajax request begin, and recreating
I found my issue there was nothing wrong with the code, but where I implemented it in the cycle. I added the script in the footer of the page but there is currently many other scripts included in the page header. When I added it near the top of the header scripts it worked well.
|
|||
|
19th May, 19:16
Post: #3
|
|||
|
|||
|
Showing tips on load, destroying on ajax request begin, and recreating
Glad to hear you got it sorted mleduc. I literally only just noticed you're post as you replied to the problem, sorry about that.
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help




