SV: [HTML_AJAX-devel] Bug? Function-names that hanged execution
in IE
Joshua Eichorn
josh at bluga.net
Wed Dec 27 08:20:59 PST 2006
All HTML_AJAX functions exist within JavaScript classes, we try really
hard not to pollute the name space.
The only place I could see a problem from HTML_AJAX collision is if you
were using generated objects and wanted a method named Sync or Async
-josh
Jan Bolmeson wrote:
>
> In this case I renamed the functions in my class. I think it would be
> a good idea to raise an error or at least a warning since it took me a
> while to figure out what was wrong.
>
> Since I changed my methods I didn’t look further into it – where is
> the conflict, with predefined JavaScript functions or with the
> HTML_Ajax Javascript functions. If it is in the latter maybe a
> namespace-prefix could be something to think about?
>
> Otherwise I agree with you that it should be up to the developer to
> choose names correctly.
>
> Regards,
>
> Jan (ZCE)
>
> PS. I think the getObjectById()-collision is with one of my own
> js-libraries where I wrapped the getElementById()-function. DS.
>
> _________________________________________________
>
> *Jan Bolmeson**,** *Civ. Ing. Teknisk Fysik, ZCE
> <http://www.zend.com/store/education/certification/authenticate.php?ClientCandidateID=ZEND002239&RegistrationID=211956700>
> epost: jan.bolmeson at ecotech.se <mailto:jan.bolmeson at ecotech.se>
>
> mobiltelefon: 0735 12 86 18 | Digitalt visitkort (vCard)
> <http://www.ecotech.se/files/JanBolmeson.vcf> | LinkedIn
> <http://www.linkedin.com/in/bolmeson>
>
>
> *ECO TECH*
> Economic Technology International ETI AB
> Adress: Agnesfridsvägen 179 | SE-213 75 Malmö
> Tfn: 040 94 91 00 | Hemsida: http://www.ecotech.se
> <http://www.ecotech.se/>
>
> /Eco Tech har över 20 års erfarenhet av arbete med införande av
> ledningssystem för miljö, kvalitet och arbetsmiljö. Sedan 1986 har vi
> varit partner till över 150 företag – från multinationella koncerner
> såsom Volvo och Gambro till små företag med endast ett par anställda.
> Oberoende av bransch kan vi se till att Era investeringar i
> ledningssystem ger avkastning. Från början. Klicka här för att läsa
> mer!./ <http://www.ecotech.se/>
>
> ------------------------------------------------------------------------
>
> *Från:* Laurent Yaish [mailto:laurenty at gmail.com]
> *Skickat:* den 27 december 2006 08:15
> *Till:* Jan Bolmeson; html_ajax-devel at lists.bluga.net
> *Ämne:* Re: [HTML_AJAX-devel] Bug? Function-names that hanged
> execution in IE
>
> Josh, I think that avoiding name conflicts should be the
> responsibility of the developer.
> Jan, what did you rename the functions to?
>
> I can see how delete() might be a problem, but getObjectById() should
> be fine.
>
> Laurent
>
> On 12/26/06, *Joshua Eichorn* <josh at bluga.net <mailto:josh at bluga.net>>
> wrote:
>
> Jan Bolmeson wrote:
> >
> > Hi,
> >
> >
> >
> > I have just spent the last couple of hours trying to get my code work
> > in IE6 (it worked perfectly in FF). I noticed that in my PHP-class I
> > hade two functions:
> >
> >
> >
> > 1. delete()
> > 2. getObjectById()
> >
> >
> >
> > And this seemed to hang Internet Explorer execution. When I renamed
> > them it started to work. A potential bug?
> >
> >
> >
> > Regards,
> >
> > //jan
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Html_ajax-devel mailing list
> > Html_ajax-devel at lists.bluga.net <mailto:Html_ajax-devel at lists.bluga.net>
> > http://lists.bluga.net/mailman/listinfo/html_ajax-devel
> <http://lists.bluga.net/mailman/listinfo/html_ajax-devel>
> >
> Sounds hitting reserved words in IE. The HTML_AJAX can do is throw an
> error when registering names we know will cause problems.
>
> Thoughts anyone?
> -josh
> _______________________________________________
> Html_ajax-devel mailing list
> Html_ajax-devel at lists.bluga.net <mailto:Html_ajax-devel at lists.bluga.net>
> http://lists.bluga.net/mailman/listinfo/html_ajax-devel
> <http://lists.bluga.net/mailman/listinfo/html_ajax-devel>
>
More information about the Html_ajax-devel
mailing list