ckroon
Posts: 869
|
| Posted: 12/12/2007, 10:18 PM |
|
Greetings all.
I have found some limited success with an Ajax Tooltip (Tooltip with transparent shadows)
http://www.dhtmlgoodies.com/index.html?whichScript=tooltip_shadow
There is a large header block you paste in the page, and then use the following code to get the tooltip to trigger:
<a href="#" onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Text of tooltip');return false">Roll over me</a>
Now, I have been playing with having database field values display inside the tooltip, but with limited success.
I have a simple grid with the following fields: 'date', 'event_name' and 'time'. The other field in the database is 'event_details'.
I want the tooltip to show the event_details.. so I replace the 'Text of tooltip' with '{event_details}'
No go.
Now here is where it gets weird... if I use '{event_name}' it works fine, the event name shows up in the tooltip. also, if I use '{time}'. but NOT '{event_details}'.. and yes that is the name of the field I triple checked it.
It gets even weirder.. the whole purpose of this practice exercise was for a calendar where the tooltip would show all the event details.. however, in the calendar, I can't even get the '{time}' and the '{event_name}' to work.
It's an enigma, wrapped in a riddle, enclosed by brackets.. in the hands of newbie.
Anyone care to enlighten me?
_________________
Walter Kempees...you are dearly missed. |
 |
 |
matheus
Posts: 386
|
| Posted: 12/13/2007, 3:09 AM |
|
Put event_details like a label (take care about his type).
If you can put event_details in page, and works, can put inside the javascript code.
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
 |
 |
DonB
|
| Posted: 12/13/2007, 5:31 AM |
|
Try this one instead. Much easier to set up and use, with many variations
possible:
http://plugins.learningjquery.com/cluetip/demo/
--
DonB
"ckroon" <ckroon@forum.codecharge> wrote in message
news:24760cea344df0@news.codecharge.com...
> Greetings all.
>
> I have found some limited success with an Ajax Tooltip (Tooltip with
> transparent shadows)
>
>
{http://www.dhtmlgoodies.com/index.html?whichScript=tooltip_shadow}[/c
ode]
>
> There is a large header block you paste in the page, and then use the
following
> code to get the tooltip to trigger:
>
> <a href="#" onmouseout="hideTooltip()"
> onmouseover="showTooltip(event,'Text of tooltip');return false">Roll over
> me</a>
>
>
> Now, I have been playing with having database field values display inside
the
> tooltip, but with limited success.
>
> I have a simple grid with the following fields: 'date', 'event_name' and
> 'time'. The other field in the database is 'event_details'.
>
> I want the tooltip to show the event_details.. so I replace the 'Text of
> tooltip' with '{event_details}'
> No go.
> Now here is where it gets weird... if I use '{event_name}' it works fine,
the
> event name shows up in the tooltip. also, if I use '{time}'. but NOT
> '{event_details}'.. and yes that is the name of the field I triple checked
it.
>
> It gets even weirder.. the whole purpose of this practice exercise was for
a
> calendar where the tooltip would show all the event details.. however, in
the
> calendar, I can't even get the '{time}' and the '{event_name}' to work.
>
> It's an enigma, wrapped in a riddle, enclosed by brackets.. in the hands
of
> newbie.
>
> Anyone care to enlighten me?
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
 |
datadoit
|
| Posted: 12/13/2007, 6:19 AM |
|
Be wary of what {event_details} contains. It may be burping because of
some special characters in your field content, particularly character
returns and line feeds. I'll always do a str_replace() on the field
contents to remove \r\n's and replace with spaces:
event_details BeforeShow:
$Component->SetValue(str_replace("\r\n", " ", $Component->GetValue()));
|
|
|
 |
ckroon
Posts: 869
|
| Posted: 12/13/2007, 7:48 AM |
|
Thanks for all replies so far.
DonB.. thanks for the link, will look at that today and see if it returns same behavior.
As for the content of the field it has only text right now "Test event details 1" is actually what is in the first field, so no special characters.
It also displays fine on the grid if I place that label.
I found this post regarding the Title value of a tooltip in a calendar: http://forums.codecharge.com/posts.php?post_id=92176
Apparently it's a bug...?
I will rebuild and try it again, then try DonB's link. iF i get same error wil submit to Yes Software.
_________________
Walter Kempees...you are dearly missed. |
 |
 |
ckroon
Posts: 869
|
| Posted: 12/13/2007, 8:56 PM |
|
Ok. Re-did everything from scratch and it seems to be working fine.
That was strange.
_________________
Walter Kempees...you are dearly missed. |
 |
 |
|