Plugin Directory

Changeset 481503


Ignore:
Timestamp:
12/28/2011 02:36:00 PM (14 years ago)
Author:
lioman
Message:

0.1.2

  • The iframe is now replaced on button click
  • Changed how the url is commited from php to js to an universal way
Location:
get-link-meta/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • get-link-meta/trunk/getlinkmeta.php

    r474965 r481503  
    5151 
    5252  <input type="Hidden" name="versteckt">
    53   <input type="Button" onclick="getURL('<?php bloginfo('wpurl'); ?>')" value=GetDescription>
     53  <input type="Button" onclick="getURL('<?php echo plugins_url( 'getdescription.php', __FILE__ ); ?>')" value=GetDescription>
    5454   </form>
    5555<div id="descriptionframe">Click on button to get description</div>
  • get-link-meta/trunk/geturl.js

    r474952 r481503  
    11function getURL (blogurl)
    22{
    3 var adress = blogurl + "/wp-content/plugins/get-link-meta/getdescription.php?linkurl=";
     3var adress = blogurl + "?linkurl=";
    44var link =  document.getElementById('link_url').value
    55var getUrlLink = adress + link
     
    88   ifrm.style.width = 95+"%";
    99   ifrm.style.height = 200+"px";
    10 document.getElementById('descriptionframe').appendChild(ifrm);
     10document.getElementById('descriptionframe').replaceChild(ifrm, document.getElementById('descriptionframe').firstChild)
     11//document.getElementById('descriptionframe').replaceChild(ifrm);
    1112}
    1213
Note: See TracChangeset for help on using the changeset viewer.