Hi,
It turned out that the 1.7_rc2 version of prototype.js, which is
delivered with rails 3.0.9, had some issues with render :update. After
using the latest stable version of prototype.js (1.7.0) the problem
disappeared.
Cheers,
Zsolt
On Jan 4, 12:02 pm, Zsolt Fabok wrote:
> Hi,
>
> I have a le
Ya, I am not doing an ajax call because it is not really needed. I can
possibly have new equipment and that would require more maintenance to tell
the ajax call where to go for that piece of eqpt. The way I am doing would
just require an array entry and a controller action. Anyway, I got it to
w
Do note, that this is not really ajax. The point of ajax, and more
importantly the use of rendering a partial is that when you make the
request you are not reloading the entire page, but rather using
javascript to send a request to the server in the background while the
existing page doesn't reloa
On Feb 24, 10:49 pm, Me wrote:
> I am baffled because in the view I do this:
>
> $('shelfcards').update(<%= render :partial => 'turin2000' %>);
>
> Gives me nothing in the div.
>
Think about what actually ends up in the page:
$('shelfcards').update()
Clearly that isn't legal javascript bec
I am baffled because in the view I do this:
$('shelfcards').update(<%= render :partial => 'turin2000' %>);
Gives me nothing in the div.
On Feb 24, 4:40 pm, Chris Habgood wrote:
> Well the "page fragment" is a div with a partial in it. I need to be able
> to make a regular call and update the
Well the "page fragment" is a div with a partial in it. I need to be able
to make a regular call and update the div with the partial. I have a select
box used to go to a page. I need to be able to change out what is in the
div.
<%= select(:node, :id, $shelves,{:prompt =>'Select Equipment'},{ :
On 24 Feb 2009, at 18:32, Chris Habgood wrote:
> Not an ajax call. Does it only work for an ajax call?
Yes. if you use render :update it returns some javascript. The
prototype (and jquery etc.) libraries know to execute that javascript,
but just a generic browser page load doesn't
If you
Well the previous TRY error filled the screen.
On Tue, Feb 24, 2009 at 2:54 PM, Eric wrote:
>
> Is there an error in the log at all for your current implementation?
>
> On Feb 24, 12:02 pm, Me wrote:
> > All I am trying to do is to put a different partial in place of the
> > the once that is al
Is there an error in the log at all for your current implementation?
On Feb 24, 12:02 pm, Me wrote:
> All I am trying to do is to put a different partial in place of the
> the once that is already there. Not an ajax call to the function.
>
> On Feb 24, 12:32 pm, Chris Habgood wrote:
>
> > Not
All I am trying to do is to put a different partial in place of the
the once that is already there. Not an ajax call to the function.
On Feb 24, 12:32 pm, Chris Habgood wrote:
> Not an ajax call. Does it only work for an ajax call?
>
> On Tue, Feb 24, 2009 at 12:31 PM, Frederick Cheung <
>
> f
Not an ajax call. Does it only work for an ajax call?
On Tue, Feb 24, 2009 at 12:31 PM, Frederick Cheung <
frederick.che...@gmail.com> wrote:
>
>
> On 24 Feb 2009, at 18:14, Me wrote:
>
> >
> > I have this div in my application.rhtml file:
> >
> > <%= render :partial => 'ericssoncards' %>
> >
>
On 24 Feb 2009, at 18:14, Me wrote:
>
> I have this div in my application.rhtml file:
>
> <%= render :partial => 'ericssoncards' %>
>
> When I go to another view I am doing this:
>
> def turin2000
> render :update do |page|
> page[:shelfcards].replace_html :p
12 matches
Mail list logo