Hi Angelo,

If you aren't using a form, then it sounds like you have an actionlink
that you invoke from the drop handler using AJAX? Why not just point
window.location at the actionlink url instead and only do the request
to the server once?

Josh

On Mon, Mar 10, 2008 at 4:33 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
> Hi Chris,
>
> It's part of drag and drop operation, when item was dropped, jQuery triggers
> a call, inside the call I updated the display order of items in the page,
> then refresh the page to reflect the changes made, there is no form.
>
>
>
> Chris Lewis-6 wrote:
> >
> > Forgive me if I'm missing something obvious here, but what's the point
> > in doing an ajax operation if you're going to refresh the entire page
> > when it returns? Why not just use a classic form?
> >
> > Angelo Chen wrote:
> >> window.location.reload(true) works, but reloading seems slow, is there
> >> any
> >> way to simulate a click in the javascript?
> >>
> >> <t:actionLink t:id="refresh">Refresh</t:actionLink>
> >>
> >> then in jQuery, I did:
> >> jQuery("#refresh").click();
> >> it does not trigger the actionLink.
> >>
> >> A.C.
> >>
> >>
> >> bobpuley wrote:
> >>
> >>> StreamResponse return type
> >>>
> >>> M.
> >>>
> >>> 2008/3/9, Angelo Chen <[EMAIL PROTECTED]>:
> >>>
> >>>> Hi,
> >>>>
> >>>> I use a javascript(jQuery) to do an ajax call to an onActionFromXXX
> >>>> method
> >>>> in the page class, I'd like to refresh the page after the call, any
> >>>> idea
> >>>> how
> >>>> to do that inside a javascript? or just any other way to refresh page
> >>>> programmatically? thanks.
> >>>>
> >>>> A.C.
> >>>>
> >>>> --
> >>>> View this message in context:
> >>>> http://www.nabble.com/t5%3A-refreshing-page-inside-a-javascript-tp15934764p15934764.html
> >>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>
> >>>>
> >>>>
> >>>
> >>
> >>
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/t5%3A-refreshing-page-inside-a-javascript-tp15934764p15968052.html
>
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to