Jquery Question
- Started
- Last post
- 7 Responses
- GeorgesII
Can anyone tell me what I'm doing wrong,
I've tried this Toggle effect and it worked,
<script type="text/javascript">
$(document).ready(function() {$('.main_textbox').hide();
$('.buttons_left').click(functio... {
$('.main_textbox').toggle(400);
return false;
});
});</script>
now I want to try the samething with the slideUp and Down effect,
but it just doesn't work, what am I doing wrong?<script type="text/javascript">
$(document).ready(function(){
$('.main_textbox').hide();
$('.buttons_left').toggle(functi...
$(this).next('.main_textbox').sl...
}, function(){
$(this).next('.main_textbox').sl...
});
});</script>
- GeorgesII0
working effect
http://pastebin.com/LRtL4XH8effect I'm trying to make work
http://pastebin.com/SdM4C0gX
- GeorgesII0
^
thanks mx,
found the solution and I am too ashame to post it :)
- ********0
Doesn't look like an embarassing mistake to me. I'm curious what your fix was.
I'm still learning jQuery and not good at telling what is wrong.
How come you didn't just use slideToggle()?
- GeorgesII0
somehow, toggle always works for me, and SlideToggle doesn't ,
anyways, the solution to my problem was..
♫TA DAMMM DAMM DAM DAAAAAAAM♫♫
I was linking the jquery file from the jquery server,
es: http://code.jquery.com/jquery-1.…
instead of locally
css/jquery-1.6.1.min.jsso I would try the site on a mac (connected to internet) then try in on my px which was offline and it would give me an error,
I spent 2 hours juggling the codes around before a colleague asked me if I had linked the js well,Eure fuckn KA!!
i'm a fuckn retard- pc not px,
you see I'm still stuck in html limbo. ahhahahaGeorgesII
- pc not px,
- ********0
Aha. I was baffled looking at it as the code seemed sound.
As for not linking files. We've all done it.
My most recent balls up was in a timed test at an interview, producing a web mock in half an hour. I started off with a stylesheet in one place and decided to move it elsewhere, so I saved in another location. I assumed the application would auto-update to the new place. I spent most of my time trying to figure out why simple CSS wasn't updating, and ultimately ended up handing over some piece of shit, unstyled layout as I only realised my error a few minutes before my time was up, and didn't have time to finish the markup.
- GeorgesII0
orrinward, that fuckn sucks mate,
I remember one time at the end of a project,
I decided to move the pic folder,
ahahah the program crashed while it was moving/updating the links,the whole site was a mess when I reopened it and I didn't have a backup,
we all learn the hard way, but once upon a time, we would have lost a limb or somethin- I wasn't that upset at the time. I was just giving the job a look rather than going all-out for it.********
- It just sucked that I came across like a complete retard to the guy.********
- I wasn't that upset at the time. I was just giving the job a look rather than going all-out for it.