User Tools

Site Tools


java-script:jquery-fetch

Differences

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

Link to this comparison view

Next revision
Previous revision
java-script:jquery-fetch [2023/08/03 16:29] – created odeftajava-script:jquery-fetch [2023/08/03 16:37] (current) odefta
Line 2: Line 2:
  
 This example is using jquery to fetch data from a remote server. This example is using jquery to fetch data from a remote server.
-See also examples [[java-script:fetch-using-async-await|using Java Script async/await]], or [[java-script:ajax-fetch|pure AJAX]].+See also examples [[java-script:fetch-using-async-await|using Java Script async/await]], or [[java-script:ajax-fetch|AJAX style]].
  
 <code javascript fetch-jquery-ajax.html> <code javascript fetch-jquery-ajax.html>
Line 25: Line 25:
         html += `<p>Login: ${user.login}</p>         html += `<p>Login: ${user.login}</p>
                  <p>ID: ${user.id}</p>                  <p>ID: ${user.id}</p>
-                 <!-- Rest of the properties... -->+                 <img src="${user.avatar_url}" width="50" height="50" /> 
 +                 <p>Gravatar ID: ${user.gravatar_id}</p> 
 +                 <p>URL: <a href="${user.url}" target="_blank">${user.url}</a></p> 
 +                 <p>Html URL: <a href="${user.html_url}" target="_blank">${user.html_url}</a></p> 
 +                 <p>Followers Url: ${user.followers_url}</p> 
 +                 <p>Following Url: ${user.following_url}</p> 
 +                 <p>Gists Url: ${user.gists_url}</p> 
 +                 <p>Starred Url: ${user.starred_url}</p> 
 +                 <p>Subscriptions Url: ${user.subscriptions_url}</p> 
 +                 <p>Organizations Url: ${user.organizations_url}</p> 
 +                 <p>Repos Url: ${user.repos_url}</p> 
 +                 <p>Events Url: ${user.events_url}</p> 
 +                 <p>Received Events Url: ${user.received_events_url}</p> 
 +                 <p>Type: ${user.type}</p> 
 +                 <p>Site Admin: ${user.site_admin}</p>
                  <hr>`;                  <hr>`;
       }       }
java-script/jquery-fetch.1691069399.txt.gz · Last modified: 2023/08/03 16:29 by odefta