Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SUObject>>#render: during rendering phase inserts unwanted scripts #25

Closed
GoogleCodeExporter opened this issue Mar 25, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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',{'afterUpda
teElement':functio
n(){new
Ajax.Request('http://localhost:8081/seaside/sfe',{'parameters':['_s=QkGrWpbTSpLB
RefB','_k=CXC
QlzYF','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.

Original issue reported on code.google.com by renggli on 5 Mar 2008 at 1:12

@GoogleCodeExporter
Copy link
Author

This will be easily fixable as part of the context-refactoring.

Original comment by renggli on 24 Mar 2008 at 8:40

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Name: Seaside-Core-lr.155
Author: lr
Time: 31 May 2008, 11:48:15 pm
UUID: 51ee3880-64ae-40fe-b5ee-cca0cf446366
Ancestors: Seaside-Core-lr.154

- fixes http://code.google.com/p/seaside/issues/detail?id=25

-------------------------------------------------------------

Name: Scriptaculous-Core-lr.25
Author: lr
Time: 31 May 2008, 11:47:21 pm
UUID: 15b6bf48-b299-448b-be9c-9281aa5bd713
Ancestors: Scriptaculous-Core-lr.24

- fixes http://code.google.com/p/seaside/issues/detail?id=25

Original comment by renggli on 31 May 2008 at 9:48

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant