[jQuery] Re: how to use another javascript funtion (and outside variables) inside jquery model

2008-11-12 Thread Oli
Thanks Mike and Ricardo, One of the things that Ricardo was right about was he used . rather than # and the reason why he did that was he declared 'links' as a class and not ID. Hope it make sense. And Mike I like your tricks on making hide me button works in that simple way. All cool. Just to s

[jQuery] Re: how to use another javascript funtion (and outside variables) inside jquery model

2008-11-11 Thread Michael Geary
That looks like just what Oli needs - thanks, Ricardo. The selector is not quite right in the click handler. Don't strip off the leading '#' character, because you would just have to add it back in to make a jQuery selector. Also, for efficiency, I would suggest using IDs instead of classnames f

[jQuery] Re: how to use another javascript funtion (and outside variables) inside jquery model

2008-11-11 Thread ricardobeat
The most clear way is to assign a single click handler: HTML: Bla bla bla bla Bla bla bla bla How to write an Abstract How to write something else And in the document's : (hope google groups doesn't break it too much) $(document).ready(function(){ $('.links a').cl

[jQuery] Re: how to use another javascript funtion (and outside variables) inside jquery model

2008-11-11 Thread Oli
Thanks Mike for your reply. Okay, I have implemented this in a static mode: http://www.uniquebrand.co.uk/education/index.php Under Online resources if you click on these two links How to write an Abstract How to Write a Good Essay You will see the effect that I am trying to achieve. It does se

[jQuery] Re: how to use another javascript funtion (and outside variables) inside jquery model

2008-11-11 Thread Michael Geary
Could we back up a bit and have you describe very simply how you want this page to work? Leave out all of the implementation details like the IDs and the JavaScript code. Simple HTML is OK if that helps describe what you want. It looks like you're pretty far off track on the implementation (no of