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 by Stefan at the end of his
Page (jqueryinterface) 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/


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:
a href=#window class=windowOpenTrigger 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 (jqueryinterface) 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/


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({
   to: windowId,
   className: 'transferer2',
   duration: 400,
   complete: function() {
   alert('window launched!');
   }
   });
   }
   });

});

Cheers,


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


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 put it here.

Thanks a lot



On 17 fév, 15:01, Joan Piedra [EMAIL PROTECTED] wrote:
 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=windowOpenTrigger 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 (jqueryinterface) 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
  [EMAIL PROTECTED]
 http://jquery.com/discuss/

 --
 Joan Piedra || Frontend webdeveloperhttp://joanpiedra.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/


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!');
if($(windowId+':hidden')) {
 alert('test hidden passé!');
$(this).TransferTo(
{
to: windowId,
className: 'transferer2',
duration: 400,
complete: function() {
 alert('window launched!');

$('#window').show();
}
}
);

I've just :

Avertissement : Erreur d'analyse de la valeur pour la propriété «
overflow ».  Déclaration abandonnée.
Fichier source :
Ligne : 30

The line =
#windowTop
{
height: 30px;
overflow: 30px;
background-image: url(images/window_top_end.png);
background-position: right top;
background-repeat: no-repeat;
position: relative;
overflow: hidden;
cursor: move;
}


Avertissement : Propriété « filter » inconnue.  Déclaration
abandonnée.
Ligne : 123
.transferer2
{
border: 1px solid #6BAF04;
background-color: #B4F155;
filter:alpha(opacity=30);
-moz-opacity: 0.3;
opacity: 0.3;
}

But I got those ones even with the original script so it isn't
important yet.


On 17 fév, 17:25, Joan Piedra [EMAIL PROTECTED] wrote:
 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({
 to: windowId,
 className: 'transferer2',
 duration: 400,
 complete: function() {
 alert('window launched!');
 }
 });
 }
 });

 });

 Cheers,

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





  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 put it here.

  Thanks a lot

  On 17 fév, 15:01, Joan Piedra [EMAIL PROTECTED] wrote:
   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=windowOpenTrigger 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 (jqueryinterface) 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
[EMAIL PROTECTED]
   http://jquery.com/discuss/

   --
   Joan Piedra || Frontend webdeveloperhttp://joanpiedra.com/

   

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 PROTECTED] wrote:


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!');
if($(windowId+':hidden')) {
 alert('test hidden passé!');
$(this).TransferTo(
{
to: windowId,
className: 'transferer2',
duration: 400,
complete: function() {
 alert('window launched!');


$('#window').show();
}
}
);

I've just :

Avertissement : Erreur d'analyse de la valeur pour la propriété «
overflow ».  Déclaration abandonnée.
Fichier source :
Ligne : 30

The line =
#windowTop
{
height: 30px;
overflow: 30px;
background-image: url(images/window_top_end.png);
background-position: right top;
background-repeat: no-repeat;
position: relative;
overflow: hidden;
cursor: move;
}


Avertissement : Propriété « filter » inconnue.  Déclaration
abandonnée.
Ligne : 123
.transferer2
{
border: 1px solid #6BAF04;
background-color: #B4F155;
filter:alpha(opacity=30);
-moz-opacity: 0.3;
opacity: 0.3;
}

But I got those ones even with the original script so it isn't
important yet.


On 17 fév, 17:25, Joan Piedra [EMAIL PROTECTED] wrote:
 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({
 to: windowId,
 className: 'transferer2',
 duration: 400,
 complete: function() {
 alert('window launched!');
 }
 });
 }
 });

 });

 Cheers,

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





  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 put it here.

  Thanks a lot

  On 17 fév, 15:01, Joan Piedra [EMAIL PROTECTED] wrote:
   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=windowOpenTrigger 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 (jqueryinterface) 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

 

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 mailing list
discuss@jquery.com
http://jquery.com/discuss/