Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
templator [2022/06/06 04:28] – [Javascript] o2wikitemplator [2022/06/06 04:30] – [Javascript] o2wiki
Line 112: Line 112:
 Your code must return the standard object indicating success and any error messages/text changes, see the next section. Your code must return the standard object indicating success and any error messages/text changes, see the next section.
  
-*Warning: Make sure your code is self-contained and does not pollute the global scope**+**Warning: Make sure your code is self-contained and does not pollute the global scope**
  
 ==ExtendScript in Illustrator== ==ExtendScript in Illustrator==
Line 148: Line 148:
 <sxh javascript; > <sxh javascript; >
 return function getWebsite(data, callback){ return function getWebsite(data, callback){
-     $.get("google.com",function(html){+     $.get("https://www.google.com",function(html){
          data.textChanges.push({find: "{html}", type: "text", value: html });          data.textChanges.push({find: "{html}", type: "text", value: html });
          callback({ success: true, data: data });          callback({ success: true, data: data });