[Kss-devel] Problems changing form fields in Firefox
Godefroid Chapelle
gotcha at bubblenet.be
Thu Mar 22 10:26:29 CET 2007
Hedley Roos wrote:
>> content = '<h1>%s</h1>' % (callsign,)
>> core.replaceInnerHTML('#portal-siteactions', content)
>
> I was under the impression you had to do
>
> core.replaceInnerHTML(core.getHtmlIdSelector('portal-siteactions'), content)
>
> Does that work?
Both will work.
if you specify a string, it is considered a css selector.
What you propose is however slightly more performant in the client as it
call getElementById directly.
--
Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be
More information about the Kss-devel
mailing list