<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
The expected action being a reload? The in-place editor is an ajax component, so the idea is that it doesn't reload the page ;) I believe hitting enter in the field submits the request (which is gonna be the #triggerInPlaceEditor: block I think), and then it will render the new value from the text field.<br><br>If you really want a page reload, it might be easier to create another event like #onBlur: or associate a button.<br><br>RS<br><br><hr id="stopSpelling">Date: Tue, 25 May 2010 10:56:12 +0200<br>Subject: Re: [Seaside] order a refresh page (in a callback)<br>From: benoit.delmotte@gmail.com<br>To: seaside@lists.squeakfoundation.org<br><br>It doesn't do the excepted action<br><br>I render BDs by titles or by Series<br>I use the inPlaceCollectionEditor script:<br><br>(aList contains 'serie' and 'title')<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; html span<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;script: (html scriptaculous inPlaceCollectionEditor<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;collection: aList;<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cancelControl: 'button';<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; triggerInPlaceEditor: [ :value | selected := value ];<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; callback: [ :r | r render: selected.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self switchSerieTitle.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; html javascript refresh (or other solution)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;]);&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; with: selected.<br><br>I have an attribute bySerieOrTitle I can change with the switchSerieTitle method <br>When it's changed I want the modification of the render immediate, (a manuel refresh after that do it).<br>
But javascript solutions do nothing visible.<br><br><br><br><div class="ecxgmail_quote">2010/5/25 Karsten <span dir="ltr">&lt;<a href="mailto:karsten@heeg.de">karsten@heeg.de</a>&gt;</span><br><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">



  
  

<div>
yeah, every normal callback will make the page refresh. <br>
<br>
If you want to refresh the whole page via ajax, you could register a
callback, like an anchor would do. Then take its url and then submit
javascript to the webpage like: window.location.href=myURL; That's all
a bit tricky though.<br>
<br>
Karsten<br>
<br>
<br>
Am 25.05.10 10:01, schrieb AxiNat:
<div><div></div><div class="h5"><blockquote>I do it as follows:<br>
  <br>
html anchor callback: []; with: 'refresh me'.<br>
  <br>
;)<br>
  <br>
  <div class="ecxgmail_quote">2010/5/25 Benoît Delmotte <span dir="ltr">&lt;<a href="mailto:benoit.delmotte@gmail.com">benoit.delmotte@gmail.com</a>&gt;</span><br>
  <blockquote class="ecxgmail_quote" style="padding-left: 1ex;">Hello
everybody,<br>
    <br>
I just want to know if it's possible to order a refresh, with a special
call in a callback<br>
(if yes, how)<br>
    <br>
Thanks.<br>
    <br>
_______________________________________________<br>
seaside mailing list<br>
    <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
    <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
    <br>
  </blockquote>
  </div>
  <br>
  <pre><fieldset></fieldset><br>_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>  </pre>
</blockquote>
<br>
</div></div><font color="#888888"><pre>-- <br>Karsten Kusche - Dipl. Inf. - <a href="mailto:karsten@heeg.de">karsten@heeg.de</a><br>Georg Heeg eK - Köthen<br>Handelsregister: Amtsgericht Dortmund A 12812 </pre>
</font></div>

<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br>                                               <br /><hr />The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail.  <a href='http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5' target='_new'>Get busy.</a></body>
</html>