I have a traditional view on the web… most columns are field values, etc. I have the 1st column hidden and “show links…” so no links are shown to users. We want users to be able to view all products (name, price, overview) but not click to access document. Our issue… some product descriptions are long (info. overload in view column). Is there a way (since no links) to have a user see an icon or text (e.g. product description) and allow them to hover and see product description popup? …sort of like when you hover over the subject in this forum (exceptio a paragraph of information)… I tried <span=fieldname>fieldname but this just put <span=… all the way down the column. The span… was in the column value section (formula). Is it because it needs to be treated as HTML? I just used “<span=… ” Was it supposed to have brackets in the formula? Thanks…
Subject: yes – TITLE ---- for hover in HTML view
Here’s an example:
Internal
Subject: RE: yes – TITLE ---- for hover in HTML view
Thanks all… want to make sure I’m clear on the syntax. Does the TITLE = the hover text? and does the “…>Internal<…” = the field like ProductOverview or is the text that shows in link? We have 1500 products… I want the column to be intelligent enough to show a link on each line that contains the product overview. The TITLE= seems hard-coded… obviously the text in TITLE would be different. Want to make sure I’m 100%… thanks all.
Subject: RE: yes – TITLE ---- for hover in HTML view
Yep, the title attribute is what does the trick. Since your column value is a piece of formula code, you can compute it to anything and you can of course compute the whole string to nothing, if the field ProductOverview is empty.
However, note that the amount of data and line wrapping in titles differs from browser to browser, so there might be subtle (or not so subtle) differences.
One more note: To have a view not show a link, you don’t have to hide the first column. Simply check the property “show values in this column as links” on the advanced tab for the first column, save the view and then uncheck the property again. Magically, the link disappears. Don’t ask me why Domino even generates the link initially, although the property is unchecked by default.
Subject: RE: yes – TITLE ---- for hover in HTML view
You know… I have heard about the check/uncheck & hidden column (but forgot all about it!). Would something like this produce the results?
“[span title='” + ProductOverview + “'>“Hover Here”]”
***I think this forum strips the left bracket… but it was there.
Subject: RE: yes – TITLE ---- for hover in HTML view
UPDATE… my previous formula worked. There’s always a catch, right? IE displays all text but Firefox only displays the first “so many” characters. Any way around this with FF?
Subject: Title attribute vs. JavaScript
Nope, no way around it. That’s exactly what I was referring to.
Of course, there are more powerful solutions than that. Adding a title attribute is just the easiest to do and requires no JavaScript. You could also call a JavaScript function that dynamically builds an HTML DIV, inserts the contents of the desired field as text node in that DIV, appends the DIV to the DOM and adds style information to position the div near the cursor. You’d also need to add event handlers for the onMouseOver event of the text and add some event handling for removing the DIV again (on click? onMouseOut?).
In case you don’t feel like programming this yourself, luckily, there are ready build JS libraries that do all that stuff for you, but you still have to learn their API. One of the most popular solutions is OverLIB:
http://www.bosrup.com/web/overlib/
The page also shows some examples of what it can do for you, just mouse over any link. This lib is free, which also makes it a good choice. ![]()
See if it fits your needs and if it’s worth the additional effort.
Subject: RE: Title attribute vs. JavaScript
Thanks Harkpabst! Will check it out…
Subject: for hover in HTML view
If you put HTML code in the coulmn formula, you need to add square bracket to tell Domino it is passthrough HTML:
A := “<span … >” + Fieldname + “”;
“[” + A + “]”
Any HTML supported by the browser can be sent that way to the view.
HTH
Nicolas Abesdris