|
qTip, AJAX and .NET
|
|
10th October, 04:28
Post: #1
|
|||
|
|||
|
qTip, AJAX and .NET
Hello everyone,
Having a problem with qTip and AJAX in .NET. I have a table in an updatePanel (.NET AJAX control) in which there are rel attributes for pictures in the table which tells qTip the url of the page to show in an IFrame. I have a save button that saves info in the editable table. When I click this button it saves no problem. But if I show a qTip by double clicking on the picture and then hit save it gives me a javascript error: htmlfile: Unspecified error. at: 'var G=this[0].getBoundingClientRect()' The app still works but after this when ever the page is scrolled I get the same error. Anyone have any idea of what is happening here? |
|||
|
11th October, 10:31
Post: #2
|
|||
|
|||
|
qTip, AJAX and .NET
miketravis, unfortunately that is not a qTip error, it looks like a jQuery error to me. Could you do a trace to see where this error is occuring and what methods are being called?
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
12th October, 13:08
(This post was last modified: 12th October 13:13 by jazzdrive3.)
Post: #3
|
|||
|
|||
qTip, AJAX and .NET
craig Wrote:miketravis, unfortunately that is not a qTip error, it looks like a jQuery error to me. Could you do a trace to see where this error is occuring and what methods are being called? I'm getting the exact same issue. When I scroll up/down after an AJAX call I get the error. I also tested my page without any qtip code and everything works fine so this definately looks like something having to do with qtip or how we have it implemented. Craig let me know if you want any sample code to help reproduce this behavior. |
|||
|
12th October, 23:24
Post: #4
|
|||
|
|||
|
qTip, AJAX and .NET
The error I mentioned above (htmlfile: Unspecified error. occuring at var G=this[0].getBoundingClientRect() ) is from the jquery-1.3.2.min.js. But as the above poster said, If you remove qTip from your page it everything works expected.
Looking at the Call Stack in Visual Studio it has the following next: target.position = self.options.position.target.offset(); [jquery.qtip-1.0.0-rc3.js - in updatePosition: function(event, animate)] api.updatePosition(event, true); [jquery.qtip-1.0.0-rc3.js - in function bgiframe()] |
|||
|
14th October, 00:22
Post: #5
|
|||
|
|||
|
qTip, AJAX and .NET
I have looked over my code and I believe it's due to how I'm re-initializing my qtips. After the ajax loads content to the page i'm calling a function that re-initializes the qtips since the ajax content contains tips. I think perhaps I cannot keep calling this function over and over again.
function refreshQTips() { $('.tip1').qtip({........}); $('.tip2').qtip({........}); etc. } If I call this function more than once then try to scroll up/down the jquery errors out. Is there another way I can try to re-initialize my qtips so the ajax content can also contain tooltips? Thanks for your help! |
|||
|
14th October, 07:26
Post: #6
|
|||
|
|||
|
qTip, AJAX and .NET
Hmmm looking at it now, this might be a problem with the R3C release itself. As I recall (it's been a while!) the RC3 initialized the qTip in a much different way to the improved branch releases, which could be causing this problem. It seems like the script is getting confused about what qTip it's referencing...
Looking into this as fast as I can guys so bare with me! Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
16th October, 14:25
(This post was last modified: 18th October 09:06 by jazzdrive3.)
Post: #7
|
|||
|
|||
qTip, AJAX and .NET
craig Wrote:Hmmm looking at it now, this might be a problem with the R3C release itself. As I recall (it's been a while!) the RC3 initialized the qTip in a much different way to the improved branch releases, which could be causing this problem. It seems like the script is getting confused about what qTip it's referencing... I have been playing around with this and made some progress. Before calling the ajax content I destroyed all my tooltips. Then after the ajax content is put on the page I created the tooltips again. This time I'm getting a new error when I scroll up/down. And this time the error is coming from the qtip js file: 'status' is null or not an object if(u.status.rendered===true&&(u.options.position.type!=="static" Any more ideas I can try? I'm getting ready to switch over to cluetip but love qtip and wish it would work!! |
|||
|
18th October, 02:25
Post: #8
|
|||
|
|||
|
qTip, AJAX and .NET
The good news is all the other major browsers do not throw any errors so this is only an IE issue.
I'm getting the erorrs on IE 8. I didn't test it on IE 7 or 6 yet. I will try these other browsers next. Thanks! |
|||
|
18th October, 09:07
Post: #9
|
|||
|
|||
|
qTip, AJAX and .NET
Hi Craig...Do you know what is causing the 'status' is null or not an object error in the qtip js file? Thanks!
|
|||
|
20th October, 10:44
Post: #10
|
|||
|
|||
|
qTip, AJAX and .NET
I've looked into it but this seems to be quite sporadic at my end. Maybe it's the IETester application but sometimes it works, sometimes not? Very odd. Have you tried googling this to see if it's actually a more specific problem with IE's JavaScript engine and certain AJAX calls?
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
31st October, 00:45
Post: #11
|
|||
|
|||
|
qTip, AJAX and .NET
I have been dealing with this exact same problem for the past two months. I have googled and cannot find a fix. The only thing I can see is that there seems to be something specifically with the qTips plugin being reinstantiated after the AJAX call is complete. I do not have this problem with any other plugin. My other plugins are reinstantiated after the AJAX call. The error occurs in both IE and FF.
|
|||
|
19th November, 03:12
Post: #12
|
|||
|
|||
|
qTip, AJAX and .NET
Any word on a resolution to this issue? I'm having the same problem with rc3 in ie7. Even if you know a good place for me to put a catch or something in the qtip js file that would be very helpful to get me by until there is a better solution. Otherwise these tooltips are awesome. Thanks.
|
|||
|
19th November, 04:49
Post: #13
|
|||
|
|||
|
qTip, AJAX and .NET
If anybody is still interested, I put a try/catch block around the u.updatePosition(t,true) call in jquery.qtip-1.0.0-rc3.min.js and that seems be preventing the undefined error popup in ie. If anybody has a better solution or thinks this will cause a problem please let me know.
|
|||
|
30th December, 21:12
Post: #14
|
|||
|
|||
|
qTip, AJAX and .NET
I'm seeing the same issue on IE7. While I have no idea how the plugin actually works as I haven't spend tons of time studying its code, the error seemed to be fairly simple to circumvent (I'm guessing this is "not treating the root cause but rather medicating the symptoms"). Anyway, I added typeof u!="undefined"&& to 1.0.0rc3 (as shown below), and it seemed to put an end to the error while apparently (?) not affecting the plugin adversely.
|
|||
|
21st February, 16:12
Post: #15
|
|||
|
|||
|
RE: qTip, AJAX and .NET
Will this issue be fixed in the 1.0 final release (perhaps with the patch I suggested)?
|
|||
|
23rd February, 04:24
Post: #16
|
|||
|
|||
|
RE: qTip, AJAX and .NET
Ville, this fix should be present in the al;test branch release of the 1.x series branches here:
http://bazaar.launchpad.net/~craig.craig.../1.0/files Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| qtip on element called with Ajax | sisilone | 3 | 113 |
2nd September 22:31 Last Post: Craig |
|
| Modal window disappear after asp.net postback | mohammad | 1 | 175 |
2nd August 19:05 Last Post: Craig |
|
| [Solved] qtip + webservice asp.net | j2flk | 2 | 135 |
20th July 09:41 Last Post: Craig |
|
| [Solved] AJAX / qTip / live() | snowfoxdesign | 2 | 448 |
16th May 23:22 Last Post: snowfoxdesign |
|
| qTip ajax content issue with JQuery 1.4.2 | sowji250 | 6 | 2,256 |
28th April 22:25 Last Post: elizas |
|
| [Solved] qTip ajax data | nharry | 2 | 630 |
25th March 03:32 Last Post: nharry |
|
| [Solved] qTip in ajax content | pauldoka | 16 | 2,345 |
23rd March 19:24 Last Post: min.dom |
|
| ajax generated qtip on dynamic content | gregryan999 | 3 | 807 |
1st March 23:14 Last Post: Craig |
|
| Calling qtip from an ajax request | hfidgen | 1 | 375 |
30th November 11:26 Last Post: Craig |
|
| Asp.Net AJAX Postback | jpadilla | 14 | 1,524 |
24th September 04:01 Last Post: Craig |
|

Search
Member List
Calendar
Help




