Autor Thema: Problem mit dojox.image.Lightbox  (Gelesen 1939 mal)

Offline eknori

  • @Notes Preisträger
  • Moderatoren
  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 11.728
  • Geschlecht: Männlich
Problem mit dojox.image.Lightbox
« am: 12.10.10 - 19:29:52 »
Ich schreibe das hier mal in English. Habe keine Lust, den Text noch einmal auf Deutsch zu schreiben. Ist im Übrigen ein Doppelposting; habe den gleichen text im IBM Design Partner Forum gepostet. Ach ja, Browserversion ist FF 3.5 und Domino 8.5.2.

I'm trying to use dojox.image.Lightbox and have encountered an issue with dojoType=
I can insert a link to a file into an richtext item and display this link in an xpage.

The source in the RTItem looks like

Code
[ <a href="432D7102A37E69FAC12577B900509ABF/$file/blug.jpg"> REPLACE TEXT </a> ]

In my xpage I see the REPLACE Text string as clickable link. When I click on it, the file is displayed.
I then added dojox.image.Lightbox and Lightbox.css as resources to my custom control.

I also added dojoType="dojox.image.Lightbox" to the above link.

Code
[ <a dojoType="dojox.image.Lightbox" href="432D7102A37E69FAC12577B900509ABF/$file/blug.jpg"> REPLACE TEXT </a> ]

The link is displayed in the browser, but no Lightbox opens when I click the link.
I have looked at the sourcecode in the browser and found that the dojoType is always empty.

Code
<a dojoType="" href="432D7102A37E69FAC12577B900509ABF/$file/blug.jpg"> REPLACE TEXT </a>

Is this a known issue or am I doing something wrong?

PS: I am aware of the fact that there is a space between the square brackets and the HTML code.
« Letzte Änderung: 12.10.10 - 19:33:40 von eknori »
Egal wie tief man die Messlatte für den menschlichen Verstand auch ansetzt: jeden Tag kommt jemand und marschiert erhobenen Hauptes drunter her!

Offline Mark Devaney

  • Frischling
  • *
  • Beiträge: 2
Re: Problem mit dojox.image.Lightbox
« Antwort #1 am: 13.12.10 - 22:11:56 »
Guten Abend.  Ich schreibe das hier mal auf Englisch weil mein Deutsch nicht so gut ist.

I have got exactly the same problem with dojoType in a richtext field.  I have spent a day trying to work around this but can not find a solution.  If I find a way to make this work I will let you know.

Best regards,
Mark

Offline Mark Devaney

  • Frischling
  • *
  • Beiträge: 2
Re: Problem mit dojox.image.Lightbox
« Antwort #2 am: 13.12.10 - 22:32:35 »
 :) Guten Abend again!!!  I have found the solution.  After pulling all my hair out on Friday I have now worked out how to make the Lightbox work through a richtext field.

To make this work change the htmlFilter option on the All Properties - Basics for the Richtext control to "identify" (sorry, I do not know what it is called in German).  This worked for my database.  I hope it works for you.

I will now let my hair grow back.... until the next problem  ;)

Best regards,
Mark

 

Impressum Atnotes.de  -  Powered by Syslords Solutions  -  Datenschutz