Bogomil "Bogo" Shopov is experienced software/web developer and conference speaker with 10+ years of creating scalable and flexible web and mobile applications.
Bogomil offers development solutions in PHP 4 and 5 (OOP), database systems (MySQL, Maria DB), Wordpress 2.* and 3.*, vTiger, REST API intergration, Twitter, Facebook, SugarCRM, Firefox and Thunderbird development, Nokia WRT and other technologies and products
He is good in QA for any web application and in project and product management too.
Send me your project description to shopov.bogomil@gmail.com
I just finished my “share2″ WRT (Web Runtime Toolkit) widget. It allows me to post quick messages to my WordpPress blog or to any blog that uses MetaWeblog API.
Here are some key parts from the script:
function ajExec(url, param, callback, isXML) { var req = new XMLHttpRequest(); req.onreadystatechange = function() { if (req.readyState == 4 && req.status == 200) { if(!isXML && req.responseText != null) callback(req.responseText); else if(isXML && req.responseXML != null) callback(req.responseXML); else callback(null); } else if (req.readyState == 4 && req.status != 200) { var err = "Error: "+req.status; alert(err); callback(err); } } req.open("POST", url, true); req.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); req.send(param); }
function sendButtonClicked(event) { saved_username = widget.preferenceForKey("username"); saved_pass = widget.preferenceForKey("pass_s"); saved_tags = widget.preferenceForKey("tag"); saved_server = widget.preferenceForKey("server"); pub = blogField.getText(); ajExec(saved_server,'<?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>metaWeblog.newPost</methodName><params><param><value><string>MyBlog</string></value></param><param><value><string>'+saved_username+'</string></value></param><param><value><string>'+saved_pass+'</string></value></param><value><struct><member><param><name>title</name><value><string>This is a post</string></value></param></member><member><param><name>description</name><value><string>'+pub+'</string></value></param></member></struct></value><param><value><boolean>1</boolean></value></param></params></methodCall>',showAnswer,1); } }
The milestone was to find correct XML structure for the query, because the examples from Wordpress website and other websites are all wrong. Please see the XML and it’s structure
You can download the application and see how works from here..
The logo:

The Settings screen:

HOW?:
If you want to run it into your Symbian device – rename it to share2.wgz and upload it to your device. The Symbian will do the rest. Tested on Nokia N95.
Copyright ®2008 - TalkWeb - Log in
Powered by WordPress | Evidens [Dark] Theme by Design Disease for PremiumThemes.com