Google Groups Home
Help | Sign in
ReassignafterAjax in jq lowpro
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
michelson  
View profile
 More options 21 Apr, 04:11
From: michelson <miguelmichel...@gmail.com>
Date: Sun, 20 Apr 2008 20:11:48 -0700 (PDT)
Local: Mon 21 Apr 2008 04:11
Subject: ReassignafterAjax in jq lowpro
Hi there,

im using the JQuery Lowpro, im trying to make an ajax will_paginate
links in a rails proyect, i have the following code in application.js
        :
        jQuery(function($) {
          $('div.pagination a').attach(Remote.Link, { type: 'GET', dataType:
'script' });
        });

and in my controller:

@artists =  Role.artists.users.top_artists(50).paginate  :page =>
params[:page],:per_page => 8

    respond_to do |format|
      format.html # index.html.erb
      format.js do
        render :update do |page|
          page.replace_html 'photos', :partial => "photos"
        end
      end
    end

and the ajax call works!, but only for one time, since the ajax page
loads the links works like normal links and not like Remote.links.

i think that`s because  the paginate  links are loaded into the called
page, and I not declaring the ReassignafterAjax, is this correct?.

if that is the problem, how can I declare this behavior in jqlowpro?

regards


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wynn Netherland  
View profile
 More options 21 Apr, 15:52
From: Wynn Netherland <wynn.netherl...@gmail.com>
Date: Mon, 21 Apr 2008 07:52:48 -0700 (PDT)
Local: Mon 21 Apr 2008 15:52
Subject: Re: ReassignafterAjax in jq lowpro
Oops, I think I replied privately. Posting again here for the benefit
of the group:

Be sure you have livequery referenced in your <HEAD> before lowpro:

http://brandonaaron.net/docs/livequery/

Dan's attach method will look for it and automatically wire up this
functionality for you if the script is there.

Wynn Netherland
Bit Wrangler, Geek Herder
Squeejee
www.squeejee.com

On 20 Apr, 22:11, michelson <miguelmichel...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Webb  
View profile
 More options 21 Apr, 15:56
From: "Dan Webb" <d...@danwebb.net>
Date: Mon, 21 Apr 2008 15:56:25 +0100
Local: Mon 21 Apr 2008 15:56
Subject: Re: ReassignafterAjax in jq lowpro
Cheers Wynn, you beat me to it!

On Mon, Apr 21, 2008 at 3:52 PM, Wynn Netherland

--
Dan Webb
http://www.danwebb.net

aim: danwrong123
skype: danwrong


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miguel Michelsongs  
View profile
 More options 21 Apr, 15:53
From: "Miguel Michelsongs" <miguelmichel...@gmail.com>
Date: Mon, 21 Apr 2008 10:53:56 -0400
Local: Mon 21 Apr 2008 15:53
Subject: Re: ReassignafterAjax in jq lowpro

thanks :D

On Mon, Apr 21, 2008 at 10:52 AM, Wynn Netherland <wynn.netherl...@gmail.com>
wrote:

--
Atte.
Miguel Michelson Martinez
---------------------------------------
www.artenlinea.cl

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miguel Michelsongs  
View profile
 More options 24 Apr, 22:36
From: "Miguel Michelsongs" <miguelmichel...@gmail.com>
Date: Thu, 24 Apr 2008 17:36:58 -0400
Local: Thurs 24 Apr 2008 22:36
Subject: Re: ReassignafterAjax in jq lowpro

Hi, is me again, the solution that Wynn gave works great in Firefox, but im
noted that in IE dont work, it only alow me to paginate one time , and since
the ajax call is made, the other calls response with errors.

the IE console only show an error sintax in line 1 of my called page.

anyone had the same problem?

regards

--
Atte.
Miguel Michelson Martinez
---------------------------------------
www.artenlinea.cl

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miguel Michelsongs  
View profile
 More options 26 Apr, 18:17
From: "Miguel Michelsongs" <miguelmichel...@gmail.com>
Date: Sat, 26 Apr 2008 13:17:15 -0400
Local: Sat 26 Apr 2008 18:17
Subject: Re: ReassignafterAjax in jq lowpro

also im note that the response of the ajax call have an RJS error, but works
fine in FF :S

....
catch (e) { alert('RJS error:\n\n' + e.toString());
.....

 that could be the  problem ?

regards

On Thu, Apr 24, 2008 at 5:36 PM, Miguel Michelsongs <

--
Atte.
Miguel Michelson Martinez
---------------------------------------
www.artenlinea.cl

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google