WordPress database error: [INSERT, UPDATE command denied to user '51213-2'@'10.10.20.62' for table 'wp_options']
INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('_transient_doing_cron', '1714247965.8055529594421386718750', 'yes') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`)


Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372
{"id":1266,"date":"2012-12-07T10:25:47","date_gmt":"2012-12-07T09:25:47","guid":{"rendered":"http:\/\/www.jonathanantoine.com\/?p=1266"},"modified":"2012-12-06T16:26:41","modified_gmt":"2012-12-06T15:26:41","slug":"winjs-how-to-post-a-message-from-an-iframe-to-your-win8-app","status":"publish","type":"post","link":"http:\/\/www.jonathanantoine.com\/2012\/12\/07\/winjs-how-to-post-a-message-from-an-iframe-to-your-win8-app\/","title":{"rendered":"#WinJS : how to post a message from an iFrame to your #Win8 app"},"content":{"rendered":"

\"\"Sometimes, you display information in an iframe and you need to communicate it back to your Windows 8 app. You may think like I did “just navigate to a specific page with the arguments in the URL and make the Win8 app read the location of the iframe”…. Cool but all you’ll get is an “access denied”.<\/p>\n

To have this kind of scenario, you have to do some more code on the server page …<\/p>\n

\n
\nThe solution is maybe well known by the web developpers : use the postMessage function<\/a>.<\/strong><\/p>\n

In the page displayed by the Windows8 App in an iframe, just call the postMessage<\/strong> on the window to send a message to the app. Don’t forget to set the origin to “*”:
\n[javascript]window.parent.postMessage("this is a messsage very important","*");[\/javascript]<\/p>\n

In the windows 8 app, you can register to this kind of message with a very classic code. Also,you can check the origin field to be sure that the message comes from your web site<\/strong>.
\n[javascript]
\nwindow.addEventListener("message", messageReceived, false);<\/p>\n

function receiveMessage(e) {
\n if (e.origin === "http:\/\/jonathanantoine.com") {<\/p>\n

}
\n};[\/javascript]<\/p>\n","protected":false},"excerpt":{"rendered":"

Sometimes, you display information in an iframe and you need to communicate it back to your Windows 8 app. You may think like I did “just navigate to a specific page with the arguments in…<\/p>\n","protected":false},"author":3,"featured_media":1271,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[28],"tags":[],"_links":{"self":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts\/1266"}],"collection":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/comments?post=1266"}],"version-history":[{"count":7,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts\/1266\/revisions"}],"predecessor-version":[{"id":1274,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts\/1266\/revisions\/1274"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/media\/1271"}],"wp:attachment":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/media?parent=1266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/categories?post=1266"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/tags?post=1266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}