1 Replies - 1578 Views - Last Post: 07 March 2013 - 07:23 PM

#1 azamalvi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 14-February 13

my fancy-box does not work mean it does not open form it jst open imag

Posted 14 February 2013 - 05:38 AM

 <a id="new_msg" href="<?=base_url()?>message/create_message">New message</a>

       
    <script>
	$(document).ready(function(){
		$("#new_msg").fancybox({
				'autoScale'	: true
				});
			});


	</script>


If i give an image to href it open it in fancy-box but if i pass a URL then it don't open it in fancy-box it open it as new page

Is This A Good Question/Topic? 0
  • +

Replies To: my fancy-box does not work mean it does not open form it jst open imag

#2 screenprintr  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 14-September 11

Re: my fancy-box does not work mean it does not open form it jst open imag

Posted 07 March 2013 - 07:23 PM

I think your issues is the .fancybox. You need .fancybox() {. You included the squigglies within a function the way you did it .fancybox({ your code});

Hope this helps.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1