Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
hi ,
i'm new for mvc3 and jquery.

i want to show the image in jquery dialog box.

i'm calling the action method using ajax and want to show that image in dialog box.

how can achieve that otherwise give other way to show image in dialog box ?

thanks in advance...
Posted
Comments
Sergey Alexandrovich Kryukov 15-Oct-13 14:45pm    

i know this is a very old question still the solution is

JavaScript
$('.ui-dialog-buttonpane')
    .find('button:contains("Noe")')
    .removeClass('ui-button-text-only')
    .addClass('ui-button-text-icon-primary')
    .prepend('<span class="ui-icon ui-icon-closethic"></span>');



Regards,
VRN
 
Share this answer
 
Comments
CHill60 8-Feb-16 9:32am    
Seems a little long-winded compared to the solutions in the links in Solution 1
I don't see how showing an image could make any difference, compared with showing anything else in that dialog. You should have paid attention for the fact that this jQuery plug-in is designed to work with any <div> element which may already present in your HTML. So, you can write inner HTML of this element the way you want and put anything you want in it.

The simplest code sample with an image is shown, for example, here: http://stackoverflow.com/questions/4452099/display-images-with-jquery-ui-dialog-widget-like-in-fancybox[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900