Manuel.Serrano | 27 Jan 2012 11:22
Picon
Picon
Favicon

Re: minor bug with dom-get-element-by-id

Hi David,

> In my code I prefer to use getElementById which is working until now.
> I build a publish subscribe system to communicate between server and
> client, the handlers that are used are all defined at client side.
> This system uses add-event-listener! and remove-event-listener!.
> 
> Example of a handler:
> 
> ~(define editor-update-handler
>                                        (lambda (h)
>                                          (let ((val (event-value h)))
>                                             (alert val)
>                                             (innerHTML-set!
> (getElementById "test") val))))
> 
> But I get the following error: ReferenceError: Can't find variable:
> getElementById
> However, when I use dom-get-element-by-id this code is working as
> expected. (I am using Safari on Mac OS X)
> 
> 
> PS: I was also wondering if you can estimate when you are going to
> release the next version of hop (with a solution to the error I mailed
> about yesterday). This is because I am using HOP for a project in my
> studies. (If it is going to take a while I will alert the other
> students that we should find a workaround for the deadline and change
> it for the defense).
Sorry for the late reply. I have just realized that I have fixed Hop but
I have forgotten to let you know about that correction. I agree with you.
(Continue reading)


Gmane