Monthly Archives : June 2012

When will Nexus 7 land in Malaysia?

iPad have been dominating the tablet space and it is continue growing. With the launch of Nexus 7, will Android be able to turn it around? Amazon Kindle have been selling quite well since it's launch, but it is only available in a few countries only. This does not help
Continue Reading

XPages get value from profile document field

Instead of hardcoding values, we can store them in profile documents. Using Lotus formula language, we can use @GetProfileField(profilename; fieldname; username) to retrieve field values from profile document. In Xpages controls property, you can set computed value from profile document. Sample code is as below [code] var profileDoc:NotesDocument = database.getProfileDocument("ProfileDoc",""); return profileDoc.getItemValue("AppPath")[0]; [/code]  
Continue Reading

jQuery JSON YQL issue

I've been working on YQL (Yahoo Query Language). Using jQuery to retrieve the JSON result, it managed to retrieve the response from Yahoo but would not execute the success function. [code] var url = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D'http%3A%2F%2Ffinance.yahoo.com%2Flookup%3Fs%3Dknm%20and%20xpath%3D'%2F%2Fdiv%5B%40id%3D%22yfi_sym_results%22%5D%2Ftable%2Ftbody%2Ftr'&format=json&env=http%3A%2F%2Fdatatables.org%2Falltables.env&callback=cbfunc"; $.getJSON( url, function(data){ alert(data.query.results); }) [/code] After some search, the issue is cause by the callback in the URL. Changing the url to
Continue Reading