{"id":503,"date":"2024-08-08T11:45:20","date_gmt":"2024-08-08T11:45:20","guid":{"rendered":"https:\/\/polytech.xcaliber.network\/XPF\/?page_id=503"},"modified":"2024-08-16T13:37:57","modified_gmt":"2024-08-16T13:37:57","slug":"symbolic-substitutions-2","status":"publish","type":"page","link":"https:\/\/polytech.xcaliber.network\/XPF\/symbolic-substitutions-2\/","title":{"rendered":"Symbolic Substitutions"},"content":{"rendered":"\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\"><em>Symbolic Substitution<\/em><\/mark> provides the developer with the mechanism to control the CSS, HTML and JavaScript directly from the Java Program and greatly reduces the complexity and size of the outbound payload for faster delivery and quicker web browser rendering.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>For Example -\nJava Program:\n    addSymbol(\"<em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">&amp;ColorCode<\/mark><\/em>\",\"Red\");\n    addSymbol(\"<em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">&amp;UserMessage<\/mark><\/em>\",\"Alert\");\n    addSymbol(\"<em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">&amp;UserEmail\"<\/mark><\/em>,\"User@Email.com\");\n    String jsonData = \"{\\\"firstName\\\":\\\"John\\\",\\\"lastName\\\":\\\"Doe\\\"}\";\n    addSymbol(\"<em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">&amp;Payload\"<\/mark><\/em>,jsonData);\n\nCSS:\n    .messageText {color: <em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">&amp;ColorCode;<\/mark><\/em>}\n   <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">Renders to:<\/mark>\n    .messageText {color: <em>Red;<\/em>}\n\nHTML:\n    &lt;p class='messageText'><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">&amp;UserMessage<\/mark><\/em>&lt;p>\n  <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">Renders to:<\/mark>\n    &lt;p class='messageText'>Alert&lt;\/p>\n\nJavaScript\n    function contactMessage()\n        {\n        window.location.href = \"mailto:<em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">&amp;UserEmail<\/mark><\/em>\";\n        }\n  <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">Renders to:<\/mark>\n    function contactMessage()\n        {\n        window.location.href = \"mailto:User@Email.com\";\n        }\n\n   var userInfo = '<em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">&amp;Payload<\/mark><\/em>';\n  <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">Renders to:<\/mark>\n   var userInfo = '{\"firstName\":\"John\",\"lastName\":\"Doe\"}';\n\n<\/code><\/pre>\n\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-503","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/pages\/503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/comments?post=503"}],"version-history":[{"count":2,"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/pages\/503\/revisions"}],"predecessor-version":[{"id":599,"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/pages\/503\/revisions\/599"}],"wp:attachment":[{"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/media?parent=503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}