Advertisement
Guest User

Wordpress ASNC upload Sample AJAX Response

a guest
Apr 10th, 2012
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.98 KB | None | 0 0
  1.     <input type='hidden' id='type-of-106' value='image' />
  2.    
  3.     <a class='toggle describe-toggle-on' href='#'>Show</a>
  4.     <a class='toggle describe-toggle-off' href='#'>Hide</a>
  5.     <input type='hidden' name='attachments[106][menu_order]' value='0' />
  6.     <div class='filename new'><span class='title'>rain-wallpaper-3</span></div>
  7.     <table class='slidetoggle describe startclosed'>
  8.         <thead class='media-item-info' id='media-head-106'>
  9.         <tr valign='top'>
  10.             <td class='A1B1' id='thumbnail-head-106'>
  11.             <p><a href='http://localhost/real-estate/?attachment_id=106' target='_blank'><img class='thumbnail' src='http://localhost/real-estate/wp-content/uploads/2012/04/rain-wallpaper-31-150x150.jpg' alt='' /></a></p>
  12.             <p><input type='button' id='imgedit-open-btn-106' onclick='imageEdit.open( 106, "753e3c777d" )' class='button' value='Edit Image' /> <img src='http://localhost/real-estate/wp-admin/images/wpspin_light.gif' class='imgedit-wait-spin' alt='' /></p>
  13.             </td>
  14.             <td>
  15.             <p><strong>File name:</strong> rain-wallpaper-31.jpg</p>
  16.             <p><strong>File type:</strong> image/jpeg</p>
  17.             <p><strong>Upload date:</strong> April 10, 2012</p><p><strong>Dimensions:</strong> <span id='media-dims-106'>1920&nbsp;&times;&nbsp;1080</span> </p>
  18. </td></tr>
  19.  
  20.         </thead>
  21.         <tbody>
  22.         <tr><td colspan='2' class='imgedit-response' id='imgedit-response-106'></td></tr>
  23.         <tr><td style='display:none' colspan='2' class='image-editor' id='image-editor-106'></td></tr>
  24.         <tr class='post_title form-required'>
  25.             <th valign='top' scope='row' class='label'><label for='attachments[106][post_title]'><span class='alignleft'>Title</span><span class="alignright"><abbr title="required" class="required">*</abbr></span><br class='clear' /></label></th>
  26.             <td class='field'><input type='text' class='text' id='attachments[106][post_title]' name='attachments[106][post_title]' value='rain-wallpaper-3'  aria-required='true'  /></td>
  27.         </tr>
  28.         <tr class='image_alt'>
  29.             <th valign='top' scope='row' class='label'><label for='attachments[106][image_alt]'><span class='alignleft'>Alternate Text</span><br class='clear' /></label></th>
  30.             <td class='field'><input type='text' class='text' id='attachments[106][image_alt]' name='attachments[106][image_alt]' value=''  /><p class='help'>Alt text for the image, e.g. &#8220;The Mona Lisa&#8221;</p></td>
  31.         </tr>
  32.         <tr class='post_excerpt'>
  33.             <th valign='top' scope='row' class='label'><label for='attachments[106][post_excerpt]'><span class='alignleft'>Caption</span><br class='clear' /></label></th>
  34.             <td class='field'><input type='text' class='text' id='attachments[106][post_excerpt]' name='attachments[106][post_excerpt]' value=''  /></td>
  35.         </tr>
  36.         <tr class='post_content'>
  37.             <th valign='top' scope='row' class='label'><label for='attachments[106][post_content]'><span class='alignleft'>Description</span><br class='clear' /></label></th>
  38.             <td class='field'><textarea id='attachments[106][post_content]' name='attachments[106][post_content]' ></textarea></td>
  39.         </tr>
  40.         <tr class='image_url'>
  41.             <th valign='top' scope='row' class='label'><label for='attachments[106][image_url]'><span class='alignleft'>File URL</span><br class='clear' /></label></th>
  42.             <td class='field'><input type='text' class='text urlfield' readonly='readonly' name='attachments[106][url]' value='http://localhost/real-estate/wp-content/uploads/2012/04/rain-wallpaper-31.jpg' /><br /><p class='help'>Location of the uploaded file.</p></td>
  43.         </tr>
  44.         <tr class='submit'><td></td><td class='savesend'>  <a href='#' class='del-link' onclick="document.getElementById('del_attachment_106').style.display='block';return false;">Delete</a>
  45.              <div id='del_attachment_106' class='del-attachment' style='display:none;'>You are about to delete <strong>rain-wallpaper-31.jpg</strong>.
  46.              <a href='post.php?action=delete&amp;post=106&amp;_wpnonce=00a9c33a68' id='del[106]' class='button'>Continue</a>
  47.              <a href='#' class='button' onclick="this.parentNode.style.display='none';return false;">Cancel</a>
  48.              </div></td></tr>
  49.     </tbody>
  50.     </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement