Welcome Guest, Not a member yet? Register   Sign In
any suggestion for thickbox plugin
#1

[eluser]Unknown[/eluser]
Hi,

I am just wondering, there is any suggestion and sample for implemented thickbox for URI in Codeigniter ?

Thanks before
#2

[eluser]doccer[/eluser]
Yes!
First of all Im NOT a fan of changing these lines: $config[‘uri_protocol’] = “PATH_INFO”;
$config[‘enable_query_strings’] = TRUE; in CI. You can make most any jQuery plugin requiring
query strings work with out changing the way CodeIgniter creates its URL variables. As
far as thick box, I when into thickbox.js and changed one line.

I changed line 234 from:
Code:
$("#TB_ajaxContent").load(url += "&random;=" + (new Date().getTime()),function(){...

to:

Code:
var newurl = url.replace(queryString,'');
$("#TB_ajaxContent").load(newurl,function(){...

Basically thickbox needs the query string for the height and width parameters. But after that you can through it away in the javascript before thickbox loads the CodeIgniter function for you.

I hope this is what you might be asking. If not let me know and I can explain more on how I got thickbox to work in CI.

But for further info read this thread: http://ellislab.com/forums/viewthread/66974/
#3

[eluser]pixelazion[/eluser]
try modalbox ^_^ works for me, just google it ^_^ (me too lazy)
#4

[eluser]Unknown[/eluser]
Hi Doccer,

Excellent mate. I was struggling for hours to work. Finally I got your help. It works. Great. Thanks.
#5

[eluser]MihaiD[/eluser]
I had excelent results with fancybox - integrating it is really easy and it works great.

http://fancy.klade.lv/




Theme © iAndrew 2016 - Forum software by © MyBB