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="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
> > > > [EMAIL PROTECTED]
> > > >http://jquery.com/discuss/
>
> > > --
> > > Joan Piedra || Frontend webdeveloperhttp://joanpiedra.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
[email protected]
http://jquery.com/discuss/