HighDots Forums  

Spry with a href rel tag

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Spry with a href rel tag in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Albert S.
 
Posts: n/a

Default Spry with a href rel tag - 03-29-2009 , 03:47 PM






Hi,

I am having a problem I have a link that uses the "rel" tag to display the
link in a floating box over the page.

When I create the page in a php recordset all is good.
When I use a spry data set the link no longer opens the floating box.

php do {
[a rel="floatbox" href="linktofile.php"]Link[/a]
} while {blah blah} //Works fine

spry:repeat
[a rel="floatbox" href="linktofile.php"]Link[/a]
// No longer opens in floatbox, just links like a normal link

TIA


Reply With Quote
  #2  
Old   
DWFAQ.info
 
Posts: n/a

Default Re: Spry with a href rel tag - 03-29-2009 , 03:58 PM






Heya Albert,

Seen your post in ADDT and provided a link to the Spry forum for future
reference.

I saw you were using lightbox. For lightbox in spry create a lightbox_spry.js
file and put the following code in the .js file

var timeoutID = null;
function XXXXX(id) {
if (typeof myLytebox != 'undefined') {
var a = document.createElement("a");
a.href = "http://page.com/page.html";
a.rel = "lyteframe";
a.title = "XXXXX";
a.rev = "width: 100px; height: 100px; scrolling: yes;";
myLytebox.start( a, false, true);
} else {
if (timeoutID) { clearTimeout(timeoutID); }
timeoutID = setTimeout('loadLytebox()', 100);
}
}

Link .js file to your page and add additional functions if more than one
lightbox link in spry. Then in Spry add a link code like this:

<a href="javascript:XXXXX()">Click Here</a>

Hope that helps!





Reply With Quote
  #3  
Old   
Albert S.
 
Posts: n/a

Default Re: Spry with a href rel tag - 03-29-2009 , 04:50 PM



That worked great,

Thank you very much.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.