Log in

No account? Create an account
editevent protocol question - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

editevent protocol question [Jul. 22nd, 2002|11:20 pm]
LiveJournal Client Discussions


[mood |confusedconfused]
[music |Sarah Brightman - Tu Quieres Volver]

I am attempting to add the ability to edit previous posts to livelizard however everytime I attempt to send the modified event via editevent, I get the following error:

Client error: Invalid argument(s): Invalid year value.

The year property/variable is listed as only needed if it is being modified. What am I doing wrong?

  modifyevent : function(eventid, subject, event, mood, custom, music, pickw, 
autoformat, allowcomments, security)
var body = "mode=editevent";
body = "&ver=1";
body = "&user=" escape(this.username);

body = "&hpassword=" escape(this.hpassword);

body = "&itemid=" escape(eventid);

body = "&subject=" escape(subject);

body = "&event=" escape(event);

body = "&prop_picture_keyword=" escape(pickw);

/* If mood is not composed of digits, its a moodid */
if ((mood[0]>'0')&&(mood[0]<='9')) {
body = "&prop_moodid=" escape(mood);
} else {
body = "&prop_mood=" escape(custom);

body = "&prop_music=" escape(music);

body = "&security=" escape(security);
if (security == "usemask") {
body = "&allowmask=" escape("1");

body = "&prop_opt_preformatted=" escape(autoformat);
body = "&prop_opt_nocomments=" escape(allowcomments);

var response = sendRequest(body, this.postURL);

if (getResponseData("success", response) == "OK") {
return response;
} else {
alert(getResponseData("errmsg", response));
return null;



[User Picture]From: xb95
2002-07-22 08:34 pm (UTC)
You have to send it anyway. The documentation is wrong. :)
(Reply) (Thread)
[User Picture]From: satchmoz
2002-07-23 09:31 am (UTC)


Would have been nice for the program if the year/date/time wasnt required...

Oh well...
(Reply) (Parent) (Thread)
[User Picture]From: igrokme
2002-07-27 04:46 pm (UTC)
I don't recognize the language. Still, I'm curious -- what language treats subsequent assignment statements as appends to a variable's current value?

body = "&ver=1";
body = "&user=" escape(this.username);
(Reply) (Thread)