CopyPastor

Detecting plagiarism made easy.

Score: -1; Reported for: Open both answers

Possible Plagiarism

Plagiarized on 2014-06-26

Original Post

Original - Posted on 2011-08-31



            
Present in both answers; Present only in the new answer; Present only in the old answer;

may be this code may give you some idea.
**http://blog.nemikor.com/2009/04/18/loading-a-page-into-a-dialog/**
$(document).ready(function() { $('#page-help').each(function() { var $link = $(this); var $dialog = $('<div></div>') .load($link.attr('href')) .dialog({ autoOpen: false, title: $link.attr('title'), width: 500, height: 300 }); $link.click(function() { $dialog.dialog('open'); return false; }); }); });

Well you obviously cant get the link and title from the "Link/A" if it isnt there?

$(document).ready(function() { $('.classfordialog').each(function() { var $dialog = $('<div></div>') .load('somefile.php #content') .dialog({ autoOpen: false, title: 'Some title', width: 500, height: 300 }); $('.inputdialog').click(function(e){ e.preventDefault(); $dialog.dialog('open'); }); }); });

        
Present in both answers; Present only in the new answer; Present only in the old answer;