Steve, I may be wrong, but .tabs() can only be used on the parent page? I need to be able to reload the current tab from within generated source.
Am I making sense or just totally confused? Both? Neither? :D On Sun, Mar 29, 2009 at 9:42 PM, Ryan Meinzer <[email protected]> wrote: > Steve, I made this more complex than i needed to, sorry. In that code > below "action" is the URL that the form posts to, i just removed the actual > URL, as it changes for each form. It actually comes from the server side. > > Just saw your other reply, and sadly, I am still confused. I dont know > where to use .tabs(). When I try to use it inside of the generated page, I > get an error. I just want to reload the current tab after the form is > submitted. I am sure the answer is staring me in the face at this point, > but sadly, I am still lost. > > Thank you so much for the help! > > > > On Sun, Mar 29, 2009 at 9:25 PM, Steven Black <[email protected]>wrote: > >> >> Ryan, the prototype for a $.post is >> >> $.post( url, data, callback, type ) >> >> Looks to me like you've got the fourth parameter in the first >> position. >> >> >> **--** Steve >> >> >> On Mar 28, 11:45 pm, Ryan Meinzer <[email protected]> wrote: >> > Thanks for the reply Steve, I understand the concept, but not the >> > implementation. Where do I put this? >> > >> > Currently, here is what I run to catch the form submt: >> > >> > $(document).ready(function() { >> > $('#myForm').ajaxForm(function() { >> > $("#myForm").submit(sendForm); >> > >> > }); >> > }); >> > >> > function sendForm() { >> > >> $.post('action',$("#myForm").serialize(),function(data,status){ >> > $("#result").html(data) >> > }); >> > return false >> > >> > } >> > >> > It submits no problem, and doesnt refresh or anything, but the page just >> > sits there, mostly, I think, because of the return false, so I need to >> load >> > it prior to that. >> > >> > On Sat, Mar 28, 2009 at 9:35 PM, Steven Black <[email protected] >> >wrote: >> > >> > >> > >> > > See >> > > .tabs( 'load' , index ) >> > >> > > **--** Steve >> > >> > > On Mar 28, 3:19 pm, Xnuiem <[email protected]> wrote: >> > > > Using PHP, but I am trying to do this client side. >> > >> > > > On Mar 28, 1:08 pm, "[email protected]" >> > >> > > > <[email protected]> wrote: >> > > > > What are you using on the server side? >> > >> > > > > On Mar 27, 1:35 pm, Xnuiem <[email protected]> wrote: >> > >> > > > > > Ok, I imagine this has been answered, but I cant find it. >> > >> > > > > > I have a tab, that loads a list of users. when you click on a >> > > > > > username, it brings up a form, inside the tab. When you submit >> that >> > > > > > form, it submits the form using ajax, no problem. >> > >> > > > > > But there is where I am stuck. How do I make the content of the >> tab >> > > > > > reload back to the original content, ie the user list? >> > >> > >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
