php - Create a link on the fly when a user enters a code in a form box -


i have form....

<form id="orderform" method="post" orderform="" name="">   <table width="533" cellspacing="0" cellpadding="2" border="0" id="ordertable">   <tbody>     <tr>       <td>product code</td>       <td>meterage</td>       <td>sample img</td>     </tr>     <tr class="item">       <td class="prodcode">         <input type="text" id="prodcode" name="prodcode">       </td>       <td class="meterage">         <input type="text" id="meterage" name="meterage">       </td>       <td class="imgsample"></td>     </tr>     </tbody>   </table> </form> 

what when user clicks out of box on prodcode searches folder image reference...creates link on under imgsample header particular item using prodcode entered...

http://www.mylink.com/images/folder/sub-folder/imageref.jpg

is impossible task, ideas?

i hope asking for.

$("#prodcode").blur(function() {   $.post(          'yourpage.php', //this page reads image code , gives image location          { action: 'searchimage', imgreference: $('#prodcode').val() },          function(data) {               //export link data                          $("td.imgsample").html('<img src="'+data+'"/>');          }         ); }); 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -