Hi,

> My problem now is how to get the value of text which is between <a>
> </a> of the clicked link, - now the scope of $(this) is different.
>
> In the first case it work because $(this) was [a.taglink
> cheeseCake...] but with the above $(this) becomes [Window
> addphoto.html]

Hm, this sounds strange. You have multiple contexts in your code:

$(document).ready(function() {
  // this should be document
  $('#getTags').click(function() {
    // this should be the element with the ID 'getTags'
    $('#taglist').load('http://tarique.sanisoft.com/cheesecake/tags/taglist', 
function() {
      // this should be the element with the ID 'taglist'
      $('a.taglink').click(tagSelect /*in tagSelect this should be a link with 
the class 'taglink'. */ );
    });
  });
});

Where exactly do you have window as this. There must be something wrong.
are you shure that you have written "$('a.taglink').click(tagSelect)" and 
not "$('a.taglink').click(tagSelect())"?

Christof

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to