Posted By

jerryvig on 10/06/11


Tagged


Versions (?)

Mobile Donation Form 2


 / Published in: JavaScript
 

  1. <script type="text/javascript">
  2. window.onload = function() {
  3. var body = document.getElementsByTagName("body").item(0);
  4. var dataRole = document.createElement("div");
  5. var headerRole = document.createElement("div");
  6. var contentRole = document.createElement("div");
  7. contentRole.setAttribute("data-role","content");
  8. contentRole.appendChild( document.forms[0].cloneNode(true) );
  9. var footerRole = document.createElement("div");
  10. dataRole.setAttribute("data-role","page");
  11. headerRole.setAttribute("data-role","header");
  12. footerRole.setAttribute("data-role","footer");
  13. dataRole.appendChild( headerRole );
  14. dataRole.appendChild( contentRole );
  15. dataRole.appendChild( footerRole );
  16. body.innerHTML = null;
  17. body.appendChild( dataRole );
  18. var header = document.getElementsByTagName("head").item(0);
  19. var jqueryCSS = document.createElement("link");
  20. jqueryCSS.rel = "stylesheet";
  21. jqueryCSS.href = "https://ssl-proxy.my-addr.net/myaddrproxy.php/http/code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css";
  22. var jqueryScript = document.createElement("script");
  23. jqueryScript.type = "text/javascript"
  24. jqueryScript.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js");
  25. var jqueryMobile = document.createElement("script");
  26. jqueryMobile.type ="text/javascript";
  27. jqueryMobile.setAttribute("src","https://ssl-proxy.my-addr.net/myaddrproxy.php/http/code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js");
  28. header.appendChild( jqueryCSS );
  29. header.appendChild( jqueryScript );
  30. header.appendChild( jqueryMobile );
  31. document.getElementById("PC21833_thCaptionAmount").setAttribute("class","null");
  32. var titleLabel = document.getElementById("PC21833_DonationCapture1_lblTitle1");
  33. titleLabel.parentNode.setAttribute("class","null");
  34. var firstNameLabel = document.getElementById("PC21833_DonationCapture1_lblFirstName");
  35. firstNameLabel.parentNode.setAttribute("class","null");
  36. var lastNameLabel = document.getElementById("PC21833_DonationCapture1_lblLastName");
  37. lastNameLabel.parentNode.setAttribute("class","null");
  38. var countryLabel = document.getElementById("PC21833_DonationCapture1_AddressCtl_lblCountry");
  39. countryLabel.parentNode.setAttribute("class","null");
  40. var streetLabel = document.getElementById("PC21833_DonationCapture1_AddressCtl_lblAddressLine");
  41. streetLabel.parentNode.setAttribute("class","null");
  42. var cityLabel = document.getElementById("PC21833_DonationCapture1_AddressCtl_lblCityUS");
  43. cityLabel.parentNode.setAttribute("class","null");
  44. var stateLabel = document.getElementById("PC21833_DonationCapture1_AddressCtl_lblStateUS");
  45. stateLabel.parentNode.setAttribute("class","null");
  46. var zipLabel = document.getElementById("PC21833_DonationCapture1_AddressCtl_lblZipUS");
  47. zipLabel.parentNode.setAttribute("class","null");
  48. var phoneLabel = document.getElementById("PC21833_DonationCapture1_lblPhone");
  49. phoneLabel.parentNode.setAttribute("class","null");
  50. var emailLabel = document.getElementById("PC21833_DonationCapture1_lblEmail");
  51. emailLabel.parentNode.setAttribute("class","null");
  52. var cardHolderLabel = document.getElementById("PC21833_DonationCapture1_lblCardHoldersName");
  53. cardHolderLabel.parentNode.setAttribute("class","null");
  54. var ccNumberLabel = document.getElementById("PC21833_DonationCapture1_lblCCNumber");
  55. ccNumberLabel.parentNode.setAttribute("class","null");
  56. var ccTypeLabel = document.getElementById("PC21833_DonationCapture1_lblCCType");
  57. ccTypeLabel.parentNode.setAttribute("class","null");
  58. var expiryLabel = document.getElementById("PC21833_DonationCapture1_lblExpiryLbl");
  59. expiryLabel.parentNode.setAttribute("class","null");
  60. var secCode = document.getElementById("PC21833_DonationCapture1_lblSecCode");
  61. secCode.parentNode.setAttribute("class","null");
  62. var docInfo = document.getElementById("PC21833_lblPersonal");
  63. docInfo.parentNode.setAttribute("class","null");
  64. var billInfo = document.getElementById("PC21833_DonationCapture1_lblBilling");
  65. billInfo.parentNode.setAttribute("class","null");
  66. pmtInfo = document.getElementById("PC21833_DonationCapture1_lblPayment");
  67. pmtInfo.parentNode.setAttribute("class","null");
  68. }
  69. </script>
  70. <table width="320" border="0" cellpadding="2" cellspacing="2">
  71. <tbody>
  72. <tr>
  73. <td>
  74. <table width="320" border="0" cellpadding="2" cellspacing="2">
  75. <tbody>
  76. </tbody>
  77. </table>
  78. <h1>Make a Difference - Donate to the Clinton Foundation</h1>
  79. <p style="font-family: Veranda; font-size: 12pt;"><span style="font-family: Arial;">Thanks to supporters like you, the Clinton Foundation has seen record successes
  80. in our fight against HIV/AIDS, climate change, childhood obesity, and other significant
  81. challenges facing our world. </span><span style="font-family: Verdana;">
  82. <span style="font-family: Arial;">Make a<strong> tax-deductible</strong> donation today to help improve people&#8217;s lives around the world.&nbsp;</span></span>
  83. </p>
  84. </td>
  85. </tr>
  86. </tbody>
  87. </table>

Report this snippet  

You need to login to post a comment.