function cache(type) {
if (w3c||ie){
if(type){
affiche= “affiche”+type
}
affiche=false;
laBulle.style.visibility=“hidden”
laBulle.style.top = ‘-1000px’
laBulle.style.backgroundColor = ‘’
laBulle.style.width = ‘’
}
}[/code]
It doesn’t work at all. Maybe because I write an div in a div? And will the “infobulle” be over all the scheduler?
One thing more: Into event, when I write that: " or that: " it’s replaced by that: " or that:’
Maybe this is my mistake?
Thank you very much and one more time: nice scheduler!
I’m gonna look at this “magic quotes” tonight but there is not PHP, this is only html .
I’m not sure to understand, I have to insert all? my popup code at the place where you wrote " … here some code, which…" ?
Client side part of scheduler doesn’t change code in any way, so its quite strange if you have such behavior with static HTML. The common reason of similar problem id data saving script, which can escape special chars during saving in DB.
You need to call the “montre” method with necessary parameters. Basically this code will be called when mouse is moved over any event. So it is the place to show custom tooltips or something similar.
You were right, “magic quotes” were enable. I turned it off into php.ini. I meant that there were no php code into the event but I save my data into SQL DB. Sorry, I’m newbie
So, that’s work sometimes, I don’t know why, it’s looks like my event color “problem”, I have to click on my event and (sometimes) after, it works but popup is totaly out of the presumed area: Event on the left= popup at ~100px of it; Event on the middle= popup at ~500px of it;Event on the right= popup is out of my screen.
Another thing: I wrote the following code to show new fields into event:
This for make appear the symbols € or $ after my text. When I make a new event, there is only these symbols but sometimes, I don’t write anything before it. Do you have an idea for fix it?
After these problems, I’m on the good way for ending my project.
In fact, In my “real” project, I write in event the part between tags. I have CSS and JS files but If you copy/paste the code I wrote in my last reply (with CSS & JS included), you’ll see this example and it’s works great. I tested this code into your live demo and the problem is the same, can you try it?
Now, I can’t see exactly how it works (maybe tonight I’ll be available) but could I write in each event the picture I want (everytime different)? I’m working with sql DB.
but could I write in each event the picture I want (everytime different)?
Sure, you can load path to image as some event property and use code similar to next in your template.
Another thing (should I open a new topic?):
I have a lot of text field in the lightbox, most of them contains small text (for a price for example) and I would like to know where could I change the width of them and the layout (3 by ligne for example and not only one) for having more space.
Thanks.
Few days ago, I installed Scheduler on Joomla!, very nice implementation and it’s easier for me (access rights, custom fields, etc.).
I wrote the code that we spoke about before (from your sample)'return "<a onmouseover= \"showTooltip('<div class=\\'info\\'><img id=\\'big\\' src=
...into
scheduler.templates.event_text=function(start,end,event){
in Joomla! administrations. The tooltip (infobulle) seems to work great (I wrote an alert to check the “onmouseover”) but nothing happening into the event when my mouse is on (exept my alert ). I tried lots of stuff: changing css, replace the js by my “old” js but that’s not OK. The problem is the same
I think that the layout & display in Joomla are blocking the “onmouseover” (but why my alert works?). Do you have an idea?
(PS: exactly the same code works in a independant html file)
Thanks.
scheduler assigns very high z-index value for main html element of scheduler ( necessary for some joomla themes ) , so in your case infobulle can be shown, but rendered behind the scheduler
You can try to locate and decrease the next rule in dhtmlxscheduler.css