🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #130

Re: page[id] w RJS i $(id) w Prototype

#130
From: Marcin Mielżyński
Date: Thu, 10 Aug 2006 11:55
15 lines
1233 bytes
Nie da się zrobić tego na normalnym if - ponieważ JavaScriptElementProxy 
działa głównie na method_missing, a if to jest normalna konstrukcja 
której nie da się przechwycić.

Trzeba dodać w JavaScriptElementProxy obsługę nowej metody biorącej 
blok, np:

page[:id].exists? do

end


przechwycić to i wygenerować odpowiedni kod js

lopex
Technical Details
Message-ID: <ebf6rf$r4l$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
References: <1rmabj0apzrfc$.exi8a3zgp9qr.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
From: Marcin Mielżyński <lopx@gazeta.pl>
Newsgroups: pl.comp.lang.ruby
Subject: Re: page[id] w RJS i $(id) w Prototype
Date: Thu, 10 Aug 2006 13:55:36 +0200
Organization: Onet.pl
Lines: 15
Message-ID: <ebf6rf$r4l$1@news.onet.pl>
References: <1rmabj0apzrfc$.exi8a3zgp9qr.dlg@40tude.net>
NNTP-Posting-Host: cuo178.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1155210927 27797 83.19.70.178 (10 Aug 2006 11:55:27 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Thu, 10 Aug 2006 11:55:27 +0000 (UTC)
X-Sender: 5Da2qcG7AWj7WISFX859Php/OS6q4VnB
In-Reply-To: <1rmabj0apzrfc$.exi8a3zgp9qr.dlg@40tude.net>
User-Agent: Thunderbird 1.5.0.5 (Windows/20060719)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit