#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    2
    Rep Power
    0

    Selection of searched Image and send them to an address


    Hi,
    I am a beginner in Javascript, Just started it from yesterday. I have to write a code that searches flickr and displays the top 20 results as image.
    When the image results will be displayed, then those images should be selected by cursor, and there should be a button to send the selected images into some location(local or server)

    This is the code which I wrote with the help of google:

    javascript Code:
     
     
    <div>
     
      <p> <script src="htt-p:-//ajax.googleapis..com/ajax/libs/jquery/1.9.1/jquery.min.js"></script></p>
    </div>
     
    <div>
      <h1>Show Picture App</h1>
      <p>
      <script type="text/javascript">
     
      function showpics(){
     
        var pic= $("#box").val();
        $.getJSON('htt-p:-//api.flickr..com/services/feeds/photos_public.gne?tags='
          +pic+"&tagmode=any&format=json&jsoncallback=?",
          function(data){ $("#images").hide().html(data).fadeIn('fast');
     
        $.each(data.items, function(i,item) {
     
    	if(i==10)
    	{
    		return false;
    	}
     
          $("<img/>").attr("src", item.media.m).appendTo("#images");
     
        });
      })
    };
      </script>
    </p>
    </div>
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    2
    Rep Power
    0
    Code is working, but how to select the searched images and how to send the selected images(or url of image) to a location using "send" button

IMN logo majestic logo threadwatch logo seochat tools logo