Ohh wow I'm ashamed....I just had to set the url from $
('div.sidebar_readout').load('sidebar'); to $
('div.sidebar_readout').load('/sidebar'); Anyways hope this helps
someone out there.
Thanks,
Mathew
On Jan 7, 5:49 pm, Mathew <[email protected]> wrote:
> Let me explain, I have this jQuery function that loads a "sidebar"
> html snippet via ajax. All is well and good until I created a
> update_profile class that takes a ID as a part of it's get request.
>
> sample code:
>
> jquery code:
> $('div.sidebar_readout').load('sidebar');
>
> application.py:
> urls = (
> //usual stuff up here
> '/update_profile/(\d+)', 'update_profile'
> )
>
> class update_profile:
> def GET(self,id):
> title = 'Profile'
> return render.update_profile(title,id)
>
> Now my problem starts when I click on the update profile link. I see
> the page and all which means everything is working fine. But I don't
> see my sidebar anymore. A cursory check on firebug reveals this
> error...
>
> GEThttp://127.0.0.1:40/update_profile/sidebar
>
> Whereas I want this to happen in order for ajax to properly load the
> sidebar.
> GEThttp://127.0.0.1:40/sidebar
>
> I think I missed something trivial here and I'm pretty sure I forgot
> to set something. Can anyone please help me out?
>
> Thanks,
> Mathew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---