Hi all, I''m trying to make a simple mapping application that shows to a given point (city, zip etc.) the appropriate map from Google. This is done by updating a div tag via link_to_remote with the Google map code (lot of JavaScript code; see example http://www.google.com/apis/maps/documentation/) Clicking on the ajax''ed link let crash Firefox immediately whereas IE seems to be OK :-( I tried the cartographer plugin from http://cartographer.rubyforge.org/ as well - same problem :-( Does anybody have experience with that kind of behaviour/bug or a work-around respectively? Any help is appreciated. Cheers, Thomas ps: I will post this problem to the Google Maps API mailing list as well -- Posted via http://www.ruby-forum.com/.
On Dec 19, 2005, at 4:00 AM, rails-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org wrote:> I''m trying to make a simple mapping application that shows to a given > point (city, zip etc.) the appropriate map from Google. This is > done by > updating a div tag via link_to_remote with the Google map code (lot of > JavaScript code; see example > http://www.google.com/apis/maps/documentation/) > > Clicking on the ajax''ed link let crash Firefox immediately whereas IE > seems to be OK :-( > I tried the cartographer plugin from http:// > cartographer.rubyforge.org/ > as well - same problem :-(That sounds like a complicated way of doing things. Why not just use the google map API and move the point? -- Eric Hodel - drbrain-48TerJ1FxhPk1uMJSBkQmQ@public.gmane.org - http://segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com
All, I''ve compiled and installed ruby/ldap on my unix box. If I open an IRB session, I can successfully bind to an ldap server. As a matter of fact, I have a unit test AND a functional test in my rails application which both work. IE, I have successfully tested both my authentication model and my authentication controller using Test:::UnitTest. However, if I try run this same controller in a rails application running under Webrick, the attempt to initialize an ldap connection returns "can''t initialise an LDAP session". This error message comes back to me from the c extension code that''s used to bridge from ruby to OpenLDAP. In this ruby extension code, the ruby ldap.so code attempts to call out to the ldap_init function in the OpenLDAP shared library. cldap = ldap_init (chost, cport); if (!cldap) rb_raise (rb_eLDAP_ResultError, "can''t initialise an LDAP session"); The fact that I get this error message means that I''m getting as far as the ruby/ldap extension; this error makes it seem like the ruby extension cannot find the OpenLDAP shared library. Can anyone give me a clue about what''s going on, or some hint about how to debug this? Ruby 1.8.3 Rails 1.0 Solaris 2.8 ruby/ldap 0.9.2 openldap-2.3.11 Thanks in advance, Sandi Metz _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
All, I''ve compiled and installed ruby/ldap on my unix box. If I open an IRB session, I can successfully bind to an ldap server. As a matter of fact, I have a unit test AND a functional test in my rails application which both work. IE, I have successfully tested both my authentication model and my authentication controller using Test:::UnitTest. However, if I try run this same controller in a rails application running under Webrick, the attempt to initialize an ldap connection returns "can''t initialise an LDAP session". This error message comes back to me from the c extension code that''s used to bridge from ruby to OpenLDAP. In this ruby extension code, the ruby ldap.so code attempts to call out to the ldap_init function in the OpenLDAP shared library. cldap = ldap_init (chost, cport); if (!cldap) rb_raise (rb_eLDAP_ResultError, "can''t initialise an LDAP session");/ /The fact that I get this error message means that I''m getting as far as the ruby/ldap extension; this error makes it seem like the ruby extension cannot find the OpenLDAP shared library. Can anyone give me a clue about what''s going on, or some hint about how to debug this? Ruby 1.8.3 Rails 1.0 Solaris 2.8 ruby/ldap 0.9.2 openldap-2.3.11 Thanks in advance, Sandi Metz / /
Do you need to place the openldap library in the lib folder in your webapp? On 12/19/05, Sandi Metz <sandimetz-mn4gwa5WIIQysxA8WJXlww@public.gmane.org> wrote:> > All, > > I''ve compiled and installed ruby/ldap on my unix box. > > If I open an IRB session, I can successfully bind to an ldap server. As a > matter of fact, I have a unit test AND a functional test in my rails > application which both work. IE, I have successfully tested both my > authentication model and my authentication controller using Test:::UnitTest. > > However, if I try run this same controller in a rails application running > under Webrick, the attempt to initialize an ldap connection returns "can''t > initialise an LDAP session". > > This error message comes back to me from the c extension code that''s used > to bridge from ruby to OpenLDAP. In this ruby extension code, the ruby > ldap.so code attempts to call out to the ldap_init function in the > OpenLDAP shared library. > > * cldap = ldap_init (chost, cport); > if (!cldap) > rb_raise (rb_eLDAP_ResultError, "can''t initialise an LDAP session"); > > *The fact that I get this error message means that I''m getting as far as > the ruby/ldap extension; this error makes it seem like the ruby extension > cannot find the OpenLDAP shared library. > > Can anyone give me a clue about what''s going on, or some hint about how to > debug this? > > Ruby 1.8.3 > Rails 1.0 > Solaris 2.8 > ruby/ldap 0.9.2 > openldap-2.3.11 > > Thanks in advance, > > Sandi Metz > * > * > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- Steven Ross web application & interface developer http://www.zerium.com [phone] 404-488-4364 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails