Hi, I'm wanting to make a web app that will provide a "Post this to Livejournal" style functionality. Either a link to the site or embedding media. I'd like it to be as simple as possible, i.e. a link that will take you straight to the "Update Journal" page with the embedded stuff/link already filled in and the user only having to add comments if
(
Read more... )
Comments 11
It should be a pretty trivial javascript exercise.
Reply
Just add subject and event params with the subject and prefill text as args respectively and it does exactly what I need.
Reply
Of course, if someone's already done the work, there's no point in reinventing the wheel.
Reply
Just create a form that will send something like this:
http://www.livejournal.com/update.bml?&subject=Post+Subject+Goes+Here&event=insert+post+text+here
You can also have it add a particular tag (check out Writer's Block on the homepage for an example) and although I haven't tested, you can also do fancy hings like make it post to a journal, select a non-default userpic if they have one with a given keyword, fill in the mood or the location or the music, change the security, change comment settings.
You can pretty much see what all the options are called just by reading the page source.
Reply
That only works for very short posts; and if there's any HTML or other "abnormal" characters in your post text, you'll have to convert them ("<" into "%3C", etc.)
Reply
Reply
After reading this, I wrote a macro to urlencode special characters open it up in a broswer- that's why I saw that there's a definite size limit.
Most of my posts are too long, so I'll continue with the copy/paste; but I have the macro now for short ones... Until I get around to working out how to get my program to post directly.
Reply
Leave a comment