Guest User

Untitled

a guest
Jul 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <script type="text/javascript">
  2. $(document).ready(function() {
  3. var $_returnvalue = false;
  4. $('.suggest_link').fancybox({
  5. onClosed: function(){
  6. alert($_returnvalue);
  7. if ($_returnvalue != false)
  8. {
  9. // I will be setting the textbox value here.
  10. }
  11. }
  12. });
  13. </script>
  14.  
  15. <script type="text/javascript">
  16. $(document).ready(function() {
  17. var $_fancyvalue = false;
  18. $(".suggestion").click(function(){
  19. alert(parent.$_returnvalue);
  20. parent.$_returnvalue = $(this).text();
  21. $.fancybox.close();
  22. });
  23. });
  24. </script>
  25.  
  26. var $_returnvalue = false;
  27.  
  28. $(document).ready(function() {
  29. $('.suggest_link').fancybox({
  30. onClosed: function(){
  31. alert($_returnvalue);
  32. if ($_returnvalue != false)
  33. {
  34. // I will be setting the textbox value here.
  35. }
  36. }
  37. });
Add Comment
Please, Sign In to add comment