Welcome Guest, Not a member yet? Register   Sign In
Problem in integrating jquery thickbox to call view pages on it
#1

[eluser]Biran[/eluser]
Hi!
I am new in CodeIgniter. Recently I am getting problem in integrating jquery thickbox and call view page on in. Thickbox is displayed but page on it is not displaying.
Please any one can have a idea on it?
#2

[eluser]skunkbad[/eluser]
[quote author="Biran" date="1271146979"]Hi!
I am new in CodeIgniter. Recently I am getting problem in integrating jquery thickbox and call view page on in. Thickbox is displayed but page on it is not displaying.
Please any one can have a idea on it?[/quote]

Show some code.
#3

[eluser]Biran[/eluser]
I had included js and css files in my template.php
And in my view page I have following script,
a href="&lt;?php echo $main_url.$ajaxpages;?&gt;edit.php" id="edit" class="thickbox">Edit</a>

edit.php is in my ajaxpages folder.
#4

[eluser]Zeeshan Rasool[/eluser]
Try facebox , its very easy to use and integrate.
#5

[eluser]skunkbad[/eluser]
Well, I can only show you what I've used (slimbox), and perhaps it can help you.

On a product detail page of my Community Cart application, the thumbnails for the product are enlarged with Slimbox. I'm using the Mootools version of Slimbox because it looks better than the jQuery version. Regardless, it's an example. Check it out at BitBucket:

http://bitbucket.org/skunkbad/community-cart/
#6

[eluser]Zeeshan Rasool[/eluser]
Just find out these files and do it simple:

Code:
&lt;link rel="stylesheet" type="text/css" href="/css/facebox.css" /&gt;    
script src="/js/jquery.js"> // include js file
script src="/js/facebox.js" // include js file

// js code
jQuery(document).ready(function($) {
  $('a[rel*=facebox]').facebox()
})
// js code

And how you use this :

Code:
<a href="your_popup_view_path" rel="facebox">Login</a>
or
Code:
<a href="www.example.com/images/test.jpg" rel="facebox">Image</a>

Thats It Smile
#7

[eluser]Biran[/eluser]
Thank you for suggesting me to use facebox or slim box. While using thickbox, it displays the popup overlay but the page that I called is not displayed.
My script is:
a href="http://192.168.0.87/sports/web/myadmin/index.php/events/listing" id="edit" class="thickbox" >Edit</a>

I am confused that is that correct path I am using in CodeIgniter ? Please suggest




Theme © iAndrew 2016 - Forum software by © MyBB