Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AjaxCache property #24

Closed
marcogrosseto opened this issue Jan 8, 2013 · 12 comments
Closed

AjaxCache property #24

marcogrosseto opened this issue Jan 8, 2013 · 12 comments
Assignees

Comments

@marcogrosseto
Copy link

Hi,

I'm trying to use the attribute ajaxCahce but it seems to doesn't work fine. I've tried this

data-ot-ajaxCache="false"

but the conent of the tool tip is downloaded just once.

Such suggestion ?

thanks

Marco

@enyo
Copy link
Owner

enyo commented Jan 8, 2013

I'll look into it tomorrow! Can't today. Sorry

@ghost ghost assigned enyo Jan 8, 2013
@enyo
Copy link
Owner

enyo commented Jan 8, 2013

Oh... At first glance your html attribute is wrong. It should be: data-ot-ajax-cache. All option properties in html attributes are "dasherized".
I hope this fixes your problem. Please report back.

@marcogrosseto
Copy link
Author

thanks for the answer but it doesn't work yet.

I'll try using prototype in order to bind tool tip to the object in the meanwhile

@enyo
Copy link
Owner

enyo commented Jan 8, 2013

That's strange... it should work like this. Please tell me if the setup with prototype works. If it does, there must be something wrong with your html attribute setup (or in my code parsing it).

If it doesn't work with prototype as well, I'll have to investigate.

@marcogrosseto
Copy link
Author

I'll do it

@marcogrosseto
Copy link
Author

I,ve tried but It doesn't work with Prototype as well.I mean that AJAX call is well done just once

@enyo
Copy link
Owner

enyo commented Jan 29, 2013

Sorry to not have replied. Did you fix your problem? Are you still having the same issue?

@marcogrosseto
Copy link
Author

Nope,

unluckly the Ajax call work fine just once ... after that the server
doesn't recive nothing and it's too hard for my understand why opentip
doesn't make the AJAX call twice. I've tried with prototype as well.

2013/1/29 Matias Meno notifications@github.com

Sorry to not have replied. Did you fix your problem? Are you still having
the same issue?


Reply to this email directly or view it on GitHubhttps://github.com//issues/24#issuecomment-12855324.

@enyo
Copy link
Owner

enyo commented Jan 30, 2013

Do you have a public site where I can check it out?

@marcogrosseto
Copy link
Author

No, it is an intranet application.

Today I'm quite busy and I can't help you more. Tomorrow I'll try to
provide you other information. Could be a problem with the server side
code. I'm using spring webflow.

2013/1/30 Matias Meno notifications@github.com

Do you have a public site where I can check it out?


Reply to this email directly or view it on GitHubhttps://github.com//issues/24#issuecomment-12884610.

@enyo
Copy link
Owner

enyo commented Feb 17, 2013

Hi Marco. I've tested it, and also improved the way AJAX gets loaded (3b2fa32 and cf47294) but couldn't reproduce your problem.
If you send me some more information I can look into it. I'm closing the issue for now.

@enyo enyo closed this as completed Feb 17, 2013
@marcogrosseto
Copy link
Author

Hi Matias,

sorry for the dealy ...

Today I've found time to go deep inside the opentip-prototype.js code and
changing line 152 :

return this._abortHiding(), this._clearTimeouts(), this.visible ? void 0 :
this._triggerElementExists() ? (this.debug("Showing now."),
this.options.group && t._hideGroup(this.options.group, this), this.visible
= !0, this.preparingToShow = !1, this.tooltipElement == null &&
this._buildElements(), this._updateElementContent(), !this.options.ajax ||
this.loaded && this.options.ajaxCache || this._loadAjax(),
this._searchAndActivateCloseButtons(), this._startEnsureTriggerElement(),
this.adapter.css(this.container, {

in

return this._abortHiding(), this._clearTimeouts(), this.visible ? void 0 :
this._triggerElementExists() ? (this.debug("Showing now."),
this.options.group && t._hideGroup(this.options.group, this), this.visible
= !0, this.preparingToShow = !1, this.tooltipElement == null &&
this._buildElements(), this._updateElementContent(), !this.options.ajax ||
this._loadAjax(), this._searchAndActivateCloseButtons(),
this._startEnsureTriggerElement(), this.adapter.css(this.container, {

so deleting (this.loaded && this.options.ajaxCache ||)

and changing line 312 the function - t.prototype._loadAjax = function () :

url: this.options.ajax ,

in

url: this.options.ajax + '?random='+ Math.floor((Math.random()*100)+1),

I've achieved my aim. Maybe it isn't your idea but if this can help you in
some way I'm glad.

Now, each time I pass the arrow of the mouse over the object with the tip,
I see a call to the Controller (I work with spring web-flow).

have a nice day

Marco

2013/2/17 Matias Meno notifications@github.com

Hi Marco. I've tested it, and also improved the way AJAX gets loaded (
3b2fa32 3b2fa32 and cf47294cf47294ba5)
but couldn't reproduce your problem.
If you send me some more information I can look into it. I'm closing the
issue for now.


Reply to this email directly or view it on GitHubhttps://github.com//issues/24#issuecomment-13687666.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants