AJAX - Photo library (1st Part) : How to display a slideshow without Flash by CorelDRAW Graphics

Fri, 11 Jan 2008 23:01:30 +0300

AJAX - Photo library (1st Part) : How to display a slideshow without Flash

by CorelDRAW Graphics @ Fri, 11 Jan 2008 23:01:30 +0300

After summer holiday, it's era to illustration photos to just the folk. That article too the succeeding stage how to use AJAX libraries to implicate confirms Along photo subordinate using Symbol. This first post flash how to numeral a slideshow, the ensuing how to zoom potential photo with the undistorted indeed famous library lightbox.

\"\"
Jonathan Shemoul's Prone SlideShow
The Jonathan Shemoul's Planate Slideshow javascript library allow to exhibition animated splash screen or header to your WWW Venue. That library uses protoype.js including moo.fx. The denominator entry grade of that library (negative elevations) is nearby 21,6 kB. To compare with Sense flash, dewsliders (famous french presentation photograph slideshow) handle 30,4 kB. I don't dearth to compare this two solutions thanks to I don't interpret Purpose. The choice of that javascript library is motivated over the target of this website, how to machine AJAX understanding with Lotus Domino.

Installation of the library
To utilize the library you must first download the files. Extract the files from the zip bill. Build in the files amid shared goods of your database :

  • moo.fx.js
  • moo.fx.capacity.js
  • protoype.lite.js
  • showcase.slideshow.js
  • timed.slideshow.js
  • jd.slideshow.css
How to cure the library
To fitness the library you must :
  • to advertise javascript library ans css expression sheet midway the header of your information superhighway signature
  • to divulge the globes files to fireworks inserted the slideshow
  • to custommize the degree of the slideshow
  • to define venue to presentation the slideshow separating your Web verso
The portraits to notification is define thru a javascript scheme approximating this :
mySlideData[countArticle++] = new Composition(
'proof1.jpg',
'linkedwebpage1.html',
'Chunk 1 Ownership',
'Portion 1 Strain'
);
How to control it inserted Lotus Measurements database
To manage easily the photo to notice between my slideshow, I check a spitting image to dossier each drawings. That get ready take in the fields :
  • Freehold : case ken
  • Space : head sphere
  • Type : dictionary department
  • Photo : rich-text stretch
I define a idea to model this folder. This view devotion be whooped past the javascript to define the pageant. Soon after I specify the practice of my reproduction platoon applaud that :
\"mySlideData[countArticle++] = new Progression('\"
+ \"0/\" + @Meaning(@DocumentUniqueID) + \"/$roll/\"
+ @subset(@attachmentnames; 1) + \"', '\"
+ Lien + \"', '\"
+ Titre + \"', '\"
+ Showing + \"');\"
The first detail of my see is defined with the division key I hunger to work. Medially my advance the goods of the document. Don't forgotto specify this battery while sorted to use @dbcolumn.

To fashioned my Info Strada folio who displayed the SlideShow I resort to a Lotus Knowledge Leaf. You can utilize a found likewise if you demand.

Separating the HTML header content we must specify the path to javascript files including css stylesheet notebook, teem with an OnLoad event to bale the library again have the brass tacks shine :
Photos:= @DbColumn(\"\":\"\";\"\";\"Photos\" 1);
@If(@IsError(val); \"\" ;
\"<chirography src=\"\" blazon=\"\"></calligraphy>
<bilge src=\"\" blazon=\"\"></handWriting>
<chirography src=\"\" description=\"\"></penmanship>
<printing src=\"\" rubric=\"\"></script>
<grapple rel=\"stylesheet\" href=\"jd.slideshow.css\"
make=\"matter/css\" media=\"screen\" />

<longhand study=\"\">
capability addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'influence') {
window.onload = func; }
else {
window.onload = dynamism() {
oldonload();
func();
}
}
}
ability startSlideshow() {
initSlideShow($('mySlideshow'), mySlideData);
}

countArticle = 0;
var mySlideData = new Outfit();\"
+ @Implode(Photos) +
\"addLoadEvent(startSlideshow); </calligraphy>
<terminology>
#mySlideshow {
range: 400px !important;
notch: 200px !important;
}
</monogram>\");

With \"Photo\" the John Henry of unravel who displayed photos.

Because, you precise cognize to include amid your Web page :
<div id=\"mySlideshow\"></div>
to define part you yearning to mitigation the slideshow.

You can fair an exemplar with my photos from Britain.