[Seaside] Wrapping ProtoTip

Hwee-Boon Yar hboon at motionobj.com
Wed Mar 5 08:53:15 UTC 2008


On Wed, Mar 5, 2008 at 2:35 PM, Lukas Renggli <renggli at gmail.com> wrote:

>  Have a look at SUElement>>#update:, #insert:, #replace:, ...

I'm probably doing it wrongly, but in a attempt to debug, I change my
SUTip>>content to:

    Transcript
		nextPutAll: (String
				streamContents: [:stream | self render: aBlock on: stream]);
		 endEntry.


Then I can see in the transcript that what's printed is the XHTML
string which I have generated (great). followed by some SU* related
javascript from a previous use of SUAutocompleter:

<span>test4</span><script type="text/javascript">/*<![CDATA[*/new
Ajax.Autocompleter('query','id6','http://localhost:8081/seaside/sfe',{'afterUpdateElement':function(){new
Ajax.Request('http://localhost:8081/seaside/sfe',{'parameters':['_s=QkGrWpbTSpLBRefB','_k=CXCQlzYF','5',$('query').serialize()].join('&')})},'evalScripts':true,'parameters':['_s=QkGrWpbTSpLBRefB','_k=CXCQlzYF','4'].join('&')})/*]]>*/</script>


<span>test4</span> alone is what I am expecting. Any suggestion on
what I am doing wrongly? Thanks again.

-- 
Hwee-Boon


More information about the seaside mailing list