can you post a snippet or test page of how you're using the load
method? it's really hard to figure out why it might not be working
without any code samples.
On Sep 25, 5:07 pm, rodeored wrote:
> How do I get the callback for load() to wait until the load is
> complete?
I've had a minor success now that it's defined inside document.ready, one of
the pages is now working, however my main nav bar (
NameText etc etc ) isn't working.
You can see the page at:
http://www.ispycreativity.com/concept07.htm
the relevant jQuery is at
http://www.ispycreativity.com/
You are defining your watchLinks function outside document.ready, so
it's not available. it should look like this (pay attention to the
closing brackets/parenthesis, you had extra ones at the end):
$(document).ready(function(){
/ CHECK URL
var pageHash = window.loc
> This still doesn't work, I've stripped it down to this:
>
> $(document).click(function(e)
> {
> var $linkClicked = $(e.target);
> if( $linkClicked.is("a") )
> {
> alert("Hi");
> return false;
> }
> });
>
> but nothing registers, the return false do
This still doesn't work, I've stripped it down to this:
$(document).click(function(e)
{
var $linkClicked = $(e.target);
if( $linkClicked.is("a") )
{
alert("Hi");
return false;
}
});
but nothing registers, the return false doesn't work and neither
> I've read through both the link you suggested
> andhttp://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips...
> but I can't understand how I would make event delegation work for me.
>
> This is what I attempted:
>
> function watchLinks()
> {
> $("a").click(function(e)
>
I've read through both the link you suggested and
http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx#tip12
but I can't understand how I would make event delegation work for me.
This is what I attempted:
function watchLinks()
{
$("a").click(function(e)
{
v
> I currently have a problem with the site I am designing, I'm using jQuery to
> load the content via AJAX, however. The script I'm using to watch for when
> the user clicks a link is:
>
> function watchLinks()
> {
> $("a").click(function()
> {
> var youWantToGoTo =
> $(this).attr(
hey ricardo, thanks for the input. I found the error: i was actually
hiding the load container somewhere else in the code. *sight*...
On Tue, Dec 30, 2008 at 5:52 AM, Ricardo Tomasi wrote:
>
> I don't see any click event handlers, and from what it looks you can't
> tell visually if the load() wa
I don't see any click event handlers, and from what it looks you can't
tell visually if the load() was successful because on the 2nd time the
background is already red.
On Dec 29, 9:07 pm, "Alexandre Plennevaux"
wrote:
> Strange...
>
> i'm loading html inside a div, and have this callback:
>
>
I realized after I posted that the hide() function might be returning as
finished as the element is being unhidden. I'm not sure why this would
be (doesn't the element's "display" property get set to "inline"
immediately? Perhaps the "display" attrib gets set in that way on
-every- size and opaci
I'm still working on this problem, (and I have poured over the jQuery
group trying to find any answers,) and I'm realizing that maybe it's
not the callback's fault.
I'm thinking it might be more of a problem with (not only me,) but the
fact that when you click on any folder in the file tree, the
Is there something about using .click with a callback that I don't
know?
Everytime do a click on a target, the callback is called increasingly
multiple times thereafter.
13 matches
Mail list logo