[pLog-svn] Weird add post and update post in 2.0

Mark Wu markplace at gmail.com
Fri Nov 9 01:55:14 EST 2007


Okay, after did some research, I think I will try the following steps:

Lifetype.UI.Pages.Posts.popupTrackback = function()
{
    Lifetype.UI.ContentOverlay.createAndShow(
"http://lifetype/2.0/admin.php?op=sendTrackback&postId=XX" );
}

YAHOO.util.Event.addListener( window, "load", function() {
	Lifetype.Forms.Events.formProcessorSuccessEvent.subscribe(
Lifetype.UI.Pages.Posts.popupTrackback );
});

I'll add the scripts into posts.js. So, when we submit the article
successfully, it will popup a overlay panel for use to choose the trackback
urls ..

After send trackbacks, the error meesage will show in "newpost" & "editpost"
page with ajax way, and the overlay will close automatically ...

Mark

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of 
> Oscar Renalias
> Sent: Friday, November 09, 2007 3:29 AM
> To: LifeType Developer List
> Subject: Re: [pLog-svn] Weird add post and update post in 2.0
> 
> Good question, and I'd rather keep the ajax stuff in there.
> 
> But what do you propose? Do you have in mind an alternative 
> way of handling this?
> 
> On 8 Nov 2007, at 12:24, Mark Wu wrote:
> 
> > Or, we should not use the non-ajax way in Add Post and Update Post?
> >
> > Mark
> >
> > From: plog-svn-bounces at devel.lifetype.net 
> > [mailto:plog-svn-bounces at devel.lifetype.net
> > ] On Behalf Of Mark Wu
> > Sent: Thursday, November 08, 2007 3:28 PM
> > To: 'LifeType Developer List'
> > Subject: [pLog-svn] Weird add post and update post in 2.0
> >
> > Hi Oscar:
> >
> > I try to fixed the add post and update post in 2.0.\
> >
> > The weird thing is how to send trackbacks in the new ajax process.
> >
> > In old non-ajax way, the add post works as following:
> >
> > newPost -> addPost -> Parsing Links -> Trackbacks Url selection -> 
> > send trackback ->PostListView
> >
> > But, in new ajax way, it works as following:
> >
> > newPost -> addPost -> newPostVuew
> >
> > I can add the sendPing to new ajax way easily, but ... how 
> about send 
> > Trackbacks??
> >
> > I have no idea how to let user select urls to send  trackback after 
> > submit the post.
> >
> > Mark
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://limedaley.com/mailman/listinfo/plog-svn
> 
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list