OK that worked GREAT!  I'm using the livequery plugin and it worked on the
first shot.  

Now, I'm having the same issue with forms.  

I'm bringing in legacy forms to the page and putting them in the div tag. 
When I hit submit they pop to the top.  

I tried a few form plugins, but they tend to all work with the form being
different than the target div.  I want to replace the current div with the
updated data from the form.  Basically recreating the behavior of the old
framed pages.  

I also tried using livequery for this, but it did not work correctly.  



Rik Lomas wrote:
> 
> 
> Yeah, it'll be due to the new "a" tags that are loaded into the page,
> there's more on this here:
> 
> http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F
> http://www.learningjquery.com/2008/05/working-with-events-part-2
> 
> 
> 2008/11/12 rpetras <[EMAIL PROTECTED]>:
>>
>>
>> Yes, the preventDefault() works just great, but only for "a" tags that
>> are
>> loaded with the page initially.
>>
>> When I load a sub-page within the div tags, that's where I'm having the
>> problem.  That sub-page does not respect the new "a" handler.  I suspect
>> it
>> is because the new page is loaded after the original document.ready.
>>
>>
>>
>>
> 

-- 
View this message in context: 
http://www.nabble.com/links-going-to-%22top%22-of-page-tp20447058s27240p20861558.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to