{"id":46947,"date":"2019-10-27T03:01:21","date_gmt":"2019-10-26T17:01:21","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=46947"},"modified":"2019-10-27T13:13:08","modified_gmt":"2019-10-27T03:13:08","slug":"ajax-formdata-object-no-body-php-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/ajax-formdata-object-no-body-php-primer-tutorial\/","title":{"rendered":"Ajax FormData Object No Body PHP Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/no_body.php\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Ajax FormData Object No Body PHP Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/no_body.jpg\" title=\"Ajax FormData Object No Body PHP Primer Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Ajax FormData Object No Body PHP Primer Tutorial<\/p><\/div>\n<p>We think the combination of <a target=_blank title='Ajax information from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/Ajax_%28programming%29'>Ajax<\/a> and the use of <a target=_blank title='FormData object information' href='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/FormData'>FormData<\/a> objects interesting as a &#8220;navigation in midair&#8221; concept.  In fact, today, we got to use it, with PHP, to the point where we construct a webpage of some little functionality and interactivity that does not have any content in its <i>body<\/i> tag.  This webpage has &#8230;<\/p>\n<ul>\n<li><i>html<\/i> tags<\/li>\n<li><i>head<\/i> tag consisting of &#8230;<\/li>\n<ol>\n<li><i>title<\/i> tag<\/li>\n<li><i>style<\/i> tag<\/li>\n<li><i>script<\/i> (type=&#8217;text\/javascript&#8217;) tag<\/li>\n<\/ol>\n<\/ul>\n<p> &#8230; and that&#8217;s it.  And yet, we ask for interactive input in a Javascript <a target=_blank title='Javascript prompt window information from w3schools' href='http:\/\/www.w3schools.com\/jsref\/met_win_prompt.asp'>prompt<\/a> window, and change content in four &#8220;speech bubble&#8221; like places within a webpage.  So take a look at the PHP <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/no_body.php_GETME\" title=\"no_body.php\">no_body.php<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/no_body.php\" title=\"no_body.php\">live run<\/a>, dynamically constructing (HTML\/)CSS\/Javascript via <a target=_blank title='Ajax information from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/Ajax_%28programming%29'>Ajax<\/a> and the use of <a target=_blank title='FormData object information' href='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/FormData'>FormData<\/a> object returns that are &#8230;<\/p>\n<p><code><br \/>\n document.write([Ajax_FormData_return_content]);<br \/>\n<\/code><\/p>\n<p> &#8230; never leaving the initial webpage.  We try to trick you thinking otherwise perhaps, by adding to <i>document.title<\/i> the last interactively entered data snippet.  And through all this, still no need for content in any webpage <i>body<\/i> tag.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d46947' onclick='var dv=document.getElementById(\"d46947\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/style\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d46947' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We think the combination of Ajax and the use of FormData objects interesting as a &#8220;navigation in midair&#8221; concept. In fact, today, we got to use it, with PHP, to the point where we construct a webpage of some little &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/ajax-formdata-object-no-body-php-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,12,37],"tags":[69,257,281,352,2730,2212,576,652,849,932,997,1761,1209,1319,1418],"class_list":["post-46947","post","type-post","status-publish","format-standard","hentry","category-ajax","category-elearning","category-tutorials","tag-ajax","tag-content","tag-css","tag-document-write","tag-formdata","tag-head","tag-html","tag-javascript","tag-object","tag-php","tag-programming","tag-prompt","tag-style","tag-tutorial","tag-webpage"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/46947"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=46947"}],"version-history":[{"count":3,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/46947\/revisions"}],"predecessor-version":[{"id":46971,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/46947\/revisions\/46971"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=46947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=46947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=46947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}