Re: [jQuery] How to make Interface work for any ID

2007-02-17 Thread Joan Piedra
Well I think you get the idea to add the link trigger with the anchor in the href and use it as an id for the new jquery object. I think that problem comes from the plugin syntax, you may take a look at it. I don't think i can help you with that. Regards On 2/17/07, [EMAIL PROTECTED] <[EMAIL P

Re: [jQuery] How to make Interface work for any ID

2007-02-17 Thread soc . mihai
Unfortunatelly I have no alert... so I've written other alerts: alert('variable crée!'); =>OK alert('test hidden passé!'); =>OK alert('window launched!');=>NO why... maybe TransferTo but why? function(){ var windowId = $(this).attr('href'); alert('variable crée!

Re: [jQuery] How to make Interface work for any ID

2007-02-17 Thread Joan Piedra
I missed some brackets and didn't wrap windowId with the jQuery object. Let's try this one (not tested either, yet): $(document).ready(function(){ $('.windowOpen').click(function(){ var windowId = $(this).attr('href'); if($(windowId+':hidden')) { $(this).TransferTo({

Re: [jQuery] How to make Interface work for any ID

2007-02-17 Thread soc . mihai
Erreur : missing ) after condition Ligne : 214, Colonne : 19 Code source : if(windowId:hidden){ The test doesn't work... I'll try to see how the if condition works in jquery... but if you see how to check if hidden is true or false I'll be greatefull if you pu

Re: [jQuery] How to make Interface work for any ID

2007-02-17 Thread Joan Piedra
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: Trigger window JS: $(document).ready(function(){ $('.windowOpen').click(function(){ var windowId = $(this).attr('href'); if(windowId:hidden) { $(this).TransferTo(

Re: [jQuery] How to make Interface work for any ID

2007-02-17 Thread soc . mihai
*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

[jQuery] How to make Interface work for any ID

2007-02-17 Thread Mihai S
*Not really... What I mean is : * $(document).ready( function() { $('#windowOpen').bind( 'click', function() { if($('#window').css('display') == 'none') {

Re: [jQuery] How to make Interface work for any ID

2007-02-16 Thread Benjamin Sterling
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 Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___

[jQuery] How to make Interface work for any ID

2007-02-16 Thread Mihai S
Hi anyone, I like the work made by Stefan (and specially his demo Floating windows[opens in new window] (uses Resizables, Transfer and Slide) and I'd like to use Interface on my website. I've looked his code but I do not know how to make for example: