Just a thought, but can't you use a class to the link and specify the other
id window in the href?

_Not tested_


HTML:
<a href="#window" class="windowOpen">Trigger window</a>

JS:
$(document).ready(function(){

$('.windowOpen').click(function(){
   var windowId = $(this).attr('href');
   if(windowId:hidden) {
       $(this).TransferTo({
           to: windowId,
           className: 'transferer2',
           duration: 400,
           complete { function() {
           alert('window launched!');
       });
   }
});

});


Let me know if it works!


On 2/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

*Not really...

What I mean is :

*

$(document).ready(
function()
{
$('#windowOpen').bind(
'click',
function() {
if($('#window').css('display') == 'none') {
$(this).TransferTo(
{
to:'window',
className:'transferer2',
duration: 400,
complete: function()
{

That is the beginning of the JS code used by Stefan at the end of his
Page (jquery&interface) to make a window.
If we see he pointed
=>windowOpen (id link)
=>window (id div)

What I mean is: how to make a similar script but which has an
attribute writen in the link/function
function(id link, id div)

Because this code works only for one link and one div... I do not thik
that I'll must write X times this code for each of my div.

Thank a lot

Mihai
(sorry for my another post)

On 17 fév, 00:37, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
> Not exactly sure what your asking, but if you what a specific link to
show a
> div, you would do something like: (using your ids)
>
> $('#id1).click(function(){$('#div#n1').show();});
>
> Is this what you were asking?
>
> --
> Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com
>
> _______________________________________________
> jQuery mailing list
> [EMAIL PROTECTED]://jquery.com/discuss/


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/




--
Joan Piedra || Frontend webdeveloper
http://joanpiedra.com/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to