Skip Menu |

This queue is for tickets about the HTML-Prototype CPAN distribution.

Report information
The Basics
Id: 13620
Status: resolved
Priority: 0/
Queue: HTML-Prototype

People
Owner: perl [...] intertivityNOSP4M.com
Requestors: shomodj [...] slashmail.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.30
Fixed in: 1.20



Subject: link_to_remote works differently then in 1.20
Hi. I'm not sure if this is bug but today I installed 1.30 and all the links that I created with $prototype->link_to_remote return different values then in in 1.20. eg. my $img_link = $Ajax->link_to_remote( "<img src=\"". $content->get_thumbpath ."\">", { update => 'screen', url => '/content/show.asp?content_id=' . $content->content_id }); 1.30 <a href="#" onclick=" new Ajax.Updater( 'screen', '/content/show.asp?content_id=16', { asynchronous: 1 } ) ; return false">&lt;img src=&quot;/_storage/2005/07/09/16t.jpg&quot;&gt;</a> 1.20 <a href="#" onClick=" new Ajax.Updater( 'screen', '/content/show.asp?content_id=13', { asynchronous: 1 } ) ; return false;"><img src="/_storage/2005/06/29/13t.jpg"></a> There is no way for me to create a remote function on image because < and > are translated to &lt; and &gt; Thanks.
[guest - Sat Jul 9 18:07:56 2005]: Show quoted text
> Hi. > > I'm not sure if this is bug but today I installed 1.30 and all the > links that I created with $prototype->link_to_remote return different > values then in in 1.20. eg. > > my $img_link = $Ajax->link_to_remote( > "<img src=\"". $content->get_thumbpath ."\">", { > update => 'screen', > url => '/content/show.asp?content_id=' . $content->content_id }); > > 1.30 > <a href="#" onclick=" new Ajax.Updater( 'screen', > '/content/show.asp?content_id=16', { asynchronous: 1 } ) ; return > false">&lt;img src=&quot;/_storage/2005/07/09/16t.jpg&quot;&gt;</a> > > 1.20 > <a href="#" onClick=" new Ajax.Updater( 'screen', > '/content/show.asp?content_id=13', { asynchronous: 1 } ) ; return > false;"><img src="/_storage/2005/06/29/13t.jpg"></a> > > There is no way for me to create a remote function on image because < > and > are translated to &lt; and &gt;
We now use HTML::Element, so you can just hand it HTML::Element objects!
[SRI - Sun Jul 10 12:38:48 2005]: Show quoted text
> We now use HTML::Element, so you can just hand it HTML::Element > objects!
Thanks. But that means that documentation is outdated, I have not found a single occurrence of 'HTML::Element' in HTML::Prototype? Example for method link_to_remote is wrong, it should be like this: 389c389,391 < $prototype->link_to_remote( '<img src="refresh.png"/>', { --- | use HTML::Element; | my $img_tag = HTML::Element->new( 'img', src => 'refresh.png' ); | $prototype->link_to_remote( $img_tag, {