[jQuery] Calling a user-defined function

2009-10-19 Thread cachobong
How do i use a function like this? $.clientCoords = function() { var dimensions = {width: 0, height: 0}; if (document.documentElement) { dimensions.width = document.documentElement.offsetWidth; dimensions.height = document.documentElemen

[jQuery] Re: Dynamically Created anchor tags

2009-08-26 Thread cachobong
callback function of > your $.ajax call so it would then look like: > > .appendTo('#thumbs').click(function(){...}); > > As it is you're trying to bind onto anchors which don't exist yet. > Using $().live() allows you to bind onto all exisiting elements, and &

[jQuery] Dynamically Created anchor tags

2009-08-26 Thread cachobong
Hello! I need help on this. i created image links by reading an xml and creating the img and a tags in jquery. how do i put a function in it? i tried the function below but it doesnt seem to work. These image links are stored in the div: "thumbs" Below is the code: $(function() { $("#thu