Produced by Araxis Merge on 2/1/2017 2:57:02 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM\trunk\SDK\SampleCode\JS\WebResources | Lead_Form_Test_for_Script_in_Updated_Form.htm | Tue Dec 20 19:51:48 2016 UTC |
| 2 | Wed Feb 1 19:57:02 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 80 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | <!DOCTYPE html> | |||||
| 2 | <html> | |||||
| 3 | <head> | |||||
| 4 | <title >Lead Form Test for Script in Updated Fo rm</title> | |||||
| 5 | <script t ype="text/ javascript "> | |||||
| 6 | var now = null; | |||||
| 7 | var atte mpts = 0; | |||||
| 8 | document .onreadyst atechange = function () { | |||||
| 9 | if (doc ument.read yState == "complete" ) { | |||||
| 10 | now = new Date() ; | |||||
| 11 | writeM essage("do cument rea dy at " + now.getTim e()); | |||||
| 12 | check( ); | |||||
| 13 | } | |||||
| 14 | } | |||||
| 15 | ||||||
| 16 | function isFunctio nReady() { | |||||
| 17 | var rea dy = false ; | |||||
| 18 | try { | |||||
| 19 | ready = (typeof parent.Xrm .Page.data .entity.at tributes.g et("subjec t").getVal ue == "fun ction"); | |||||
| 20 | } | |||||
| 21 | catch ( e) { | |||||
| 22 | //error expected | |||||
| 23 | } | |||||
| 24 | return ready; | |||||
| 25 | } | |||||
| 26 | ||||||
| 27 | function check() { | |||||
| 28 | if (att empts > 20 ) { | |||||
| 29 | writeM essage("20 unsuccess full attem pts. Cance lling scri pt"); | |||||
| 30 | return ; | |||||
| 31 | } | |||||
| 32 | if (isF unctionRea dy()) { | |||||
| 33 | start( ); | |||||
| 34 | } | |||||
| 35 | else { | |||||
| 36 | now = new Date() ; | |||||
| 37 | writeM essage("pa rent.Xrm.P age.data.e ntity.attr ibutes.get (\"subject \").getVal ue not yet available at: " + n ow.getTime ()); | |||||
| 38 | attemp ts++; | |||||
| 39 | setTime out(check, 50); | |||||
| 40 | } | |||||
| 41 | } | |||||
| 42 | ||||||
| 43 | function start() { | |||||
| 44 | now = n ew Date(); | |||||
| 45 | var top ic; | |||||
| 46 | writeMe ssage("par ent.Xrm.Pa ge.data.en tity.attri butes.get( \"subject\ ").getValu e function is availa ble at: " + now.getT ime()); | |||||
| 47 | try { | |||||
| 48 | topic = parent.X rm.Page.da ta.entity. attributes .get("subj ect").getV alue(); | |||||
| 49 | } | |||||
| 50 | catch ( e) { | |||||
| 51 | writeM essage("Fa iled to ca pture Topi c value. E rror: "+e. message); | |||||
| 52 | } | |||||
| 53 | //succe ss | |||||
| 54 | writeMe ssage("Lea d Topic va lue: " + t opic); | |||||
| 55 | } | |||||
| 56 | ||||||
| 57 | //Helper function to write d ata to thi s page: | |||||
| 58 | function writeMess age(messag e) | |||||
| 59 | { | |||||
| 60 | var ol = document .getElemen tById("res ults"); | |||||
| 61 | var li = document .createEle ment("li") ; | |||||
| 62 | if (typ eof li.inn erText != "undefined ") { | |||||
| 63 | //For I E8 or lowe r | |||||
| 64 | li.inn erText = m essage; | |||||
| 65 | } | |||||
| 66 | else { | |||||
| 67 | li.tex tContent = message; | |||||
| 68 | } | |||||
| 69 | ||||||
| 70 | ol.appe ndChild(li ); | |||||
| 71 | } | |||||
| 72 | ||||||
| 73 | </script> | |||||
| 74 | </head> | |||||
| 75 | <body> | |||||
| 76 | <ol id="re sults"></o l> | |||||
| 77 | </body> | |||||
| 78 | </html> | |||||
| 79 | ||||||
| 80 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.