<div>Hi Sabine,</div>
<div>You can send more than one onClick: (). They execute in the order they are defined so you would move the onFocus: code before the existing onClick:</div>
<div> </div>
<div>html button</div>
<div> onClick: (html prototype evaluator...);</div>
<div> onClick: (JSStream on...);</div>
<div> with: &etc.</div>
<div> </div>
<div>Regarding the trigger script Johan suggested, maybe you need to add the additional argument using with: with: or one of it variants. It will probably look complex as you need an array of JSon objects but it would allow you to determine the page dynamically?</div>
<div> </div>
<div>Hope this helps</div>
<div> </div>
<div>John<br></div>
<div class="gmail_quote">On Tue, Sep 18, 2012 at 8:18 AM, Sabine Knöfel <span dir="ltr"><<a href="mailto:sabine.knoefel@gmail.com" target="_blank">sabine.knoefel@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Sorry, I did not succeed with your code.<br>I suceeded in using the code below. <br><br>Now I have the problem, that with one click at the button, I want to do 2 things:<br>
1) do some saving of my data (prototype)<br>2) update the grid (jQuery)<br>Normally both should be done within the onClick: event.<br>But I can do only one thing within the onClick, so I encroached the onFocus: event.<br>
<br>I dont like this.<br><br>Anyone having a better way for this?<br>Sabine<br>-------------------------------------------------------------------------<br>html button<br> <b>onClick</b>: (JSStream on: 'jQuery("#gridID").trigger("reloadGrid",[{page:1}]);');<br>
<b>onFocus</b>:<br> (html prototype evaluator<br> callback: [ :script | <br> self save.....<br> self update....<br>
];<br> return: false);<br> disabled: self isSaveButtonEnabled not;<br> script: (html jQuery this button primaryIcon: self iconSave);<br> with: 'save and update'.<br>
<br>
<div class="gmail_quote">
<div>On Sat, Sep 15, 2012 at 4:41 PM, Paul DeBruicker [via Smalltalk] <span dir="ltr"><<a href="http://user/SendEmail.jtp?type=node&node=4647951&i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a>></span> wrote:<br>
</div>
<blockquote style="BORDER-LEFT:#cccccc 2px solid;PADDING-BOTTOM:0px;PADDING-LEFT:1em;PADDING-RIGHT:1em;PADDING-TOP:0px" class="gmail_quote">
<div>
<div>Looks like this might work: <br><br>(html jQuery id: 'myJQGrid') call:'trigger' with:'reloadGrid'. <br><br><br><br><br><br>On 09/15/2012 05:23 AM, Sabine Knöfel wrote: </div></div>
<div>
<div>
<div>
<div><br>> Hi, <br>> <br>> I use JQWidgetBox and want to update the grid with data (which has changed <br>> outside). <br>> How can I force the whole Grid to update? <br>> How can I reload only one row? <br>
> <br>> It is something with <br>> <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3Amethods" rel="nofollow" target="_blank" link="external">http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3Amethods</a><br>
> trigger("reloadGrid") <br>> <br>> but I have no idea how to call this from smalltalk. <br>> Sabine <br>> <br>> <br>> <br>> -- <br>> View this message in context: <a href="http://forum.world.st/JQGrid-update-grid-or-single-row-tp4647572.html" rel="nofollow" target="_blank" link="external">http://forum.world.st/JQGrid-update-grid-or-single-row-tp4647572.html</a></div>
> Sent from the Seaside General mailing list archive at Nabble.com. <br>> _______________________________________________ <br>> seaside mailing list <br></div></div>> <a href="http://user/SendEmail.jtp?type=node&node=4647576&i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a> <br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" target="_blank" link="external">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>> </div><br>_______________________________________________ <br>
seaside mailing list <br><a href="http://user/SendEmail.jtp?type=node&node=4647576&i=1" rel="nofollow" target="_blank" link="external">[hidden email]</a> <br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" target="_blank" link="external">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br><br>
<hr color="#cccccc" size="1" noshade>
<div style="FONT:12px tahoma,geneva,helvetica,arial,sans-serif;COLOR:#444">
<div style="FONT-WEIGHT:bold">If you reply to this email, your message will be added to the discussion below:</div><a href="http://forum.world.st/JQGrid-update-grid-or-single-row-tp4647572p4647576.html" rel="nofollow" target="_blank" link="external">http://forum.world.st/JQGrid-update-grid-or-single-row-tp4647572p4647576.html</a> </div>
<div style="MARGIN-TOP:0.4em;FONT:11px/1.5em tahoma,geneva,helvetica,arial,sans-serif;COLOR:#666">To unsubscribe from JQGrid update grid or single row, <a rel="nofollow" link="external">click here</a>.<br><a style="FONT:9px serif" href="http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" target="_blank" link="external">NAML</a> </div>
</blockquote></div><br><br>
<hr align="left" width="300">
View this message in context: <a href="http://forum.world.st/JQGrid-update-grid-or-single-row-tp4647572p4647951.html" target="_blank">Re: JQGrid update grid or single row</a>
<div>
<div><br>Sent from the <a href="http://forum.world.st/Seaside-General-f86180.html" target="_blank">Seaside General mailing list archive</a> at Nabble.com.<br></div></div><br>_______________________________________________<br>
seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://jmck.seasidehosting.st/" target="_blank">jmck.seasidehosting.st</a><br>