Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 18, 2012 08:18 AM by Young Yang - MSFT
Member
113 Points
304 Posts
May 16, 2012 09:17 PM|LINK
Hi
I have a view where i have a button which when clicked needs to display the facebox dialog.
But it just not seem to work. All my js and css files are being referenced in the _layouts. page.
Is there something i am missing?
my code is simple
<p> <a href="#info" rel="facebox">View the 'info' div in the Facebox</a> </p> <div id="info" style="display:none;"> <p> Hey, I'm the 'info' div! </p> <p> I look like this: </p> <code> <div id="info" style="display:none;"> <br/> text<br/> </div> </code> </div> <script type="text/javascript"> jQuery(document).ready(function ($) { $('a[rel*=facebox]').facebox() }); </script>
All-Star
137670 Points
22146 Posts
Moderator
MVP
May 16, 2012 09:27 PM|LINK
tejp $('a[rel*=facebox]').facebox()
$('a[rel*=facebox]').facebox()
Where did you get the
facebox
function?
May 17, 2012 07:46 AM|LINK
That was from the facebox website as i wanted it basically to fire so thoguht would start by using the example code
21742 Points
1825 Posts
Microsoft
May 18, 2012 08:18 AM|LINK
Since facebox is third-party plugin, I suggest you post this question to their forum, you may get someone's help from there.
Regards
tejp
Member
113 Points
304 Posts
how can i get facebox to fire within a view
May 16, 2012 09:17 PM|LINK
Hi
I have a view where i have a button which when clicked needs to display the facebox dialog.
But it just not seem to work. All my js and css files are being referenced in the _layouts. page.
Is there something i am missing?
my code is simple
<p> <a href="#info" rel="facebox">View the 'info' div in the Facebox</a> </p> <div id="info" style="display:none;"> <p> Hey, I'm the 'info' div! </p> <p> I look like this: </p> <code> <div id="info" style="display:none;"> <br/> text<br/> </div> </code> </div> <script type="text/javascript"> jQuery(document).ready(function ($) { $('a[rel*=facebox]').facebox() }); </script>ignatandrei
All-Star
137670 Points
22146 Posts
Moderator
MVP
Re: how can i get facebox to fire within a view
May 16, 2012 09:27 PM|LINK
Where did you get the
facebox
function?
tejp
Member
113 Points
304 Posts
Re: how can i get facebox to fire within a view
May 17, 2012 07:46 AM|LINK
Hi
That was from the facebox website as i wanted it basically to fire so thoguht would start by using the example code
Young Yang -...
All-Star
21742 Points
1825 Posts
Microsoft
Re: how can i get facebox to fire within a view
May 18, 2012 08:18 AM|LINK
Since facebox is third-party plugin, I suggest you post this question to their forum, you may get someone's help from there.
Regards
Feedback to us
Develop and promote your apps in Windows Store