javascript - Object doesn't support property or method 'facebox' in cshtml file -


i want show cshtml (ex.cshtml) file in facebox popup window in 1 cshtml (this cshtml file contains model also) file, showing error like:

javascript runtime error: object doesn't support property or method 'facebox'

and anchor tag is

<"a href="ex" rel="facebox">something  /a "<br /> 

here ex ex.cshtml file. here code

<script type="text/javascript" src="code.jquery.com/jquery-1.8.2.js"></script>; <link src="src/facebox.css" media="screen" rel="stylesheet" type="text/css" /> <script src="src/facebox.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $('a[rel*=facebox]').facebox({ loadingimage: '', closeimage: '' }) }) </script> 

code ex.xshtml

<html xmlns="w3.org/1999/xhtml">; <head> <title>sample file</title> </head> <body> <h2>hi welcome aspdotnet-suresh.com</h2> <img src="src/" /> </body> </html>  


Comments