Welcome Guest, Not a member yet? Register   Sign In
select jquery tab in view via controller managing pagination
#1

[eluser]Hoopoe[/eluser]
I have just managed to get dynamic nested tabs to incorporate CI pagination, using jq ajax. Cool.

New problem: I am pondering how to make clicking a link on one page cause a particular, non-default jquery tab to be selected on another.

Using jquery and codeigniter with pagination, i guess you'd form a link w a uri_segment with the parameter.

The link would reference a controller/method which would show the view.

The controller would get hold of the parameter, send it to the view and echo it invisibly, where jquery would use the parameter to select a tab.

Here's the fly in the ointment: the controller would also be managing the pagination. That makes a slight confusion coz it'll get and process uri_segments from two sources - the pagination links and the page with link to it.

To my mind, before settling down and coding, that feels like a problem. Is it a problem, or am I deluded ?

Hoopoe




Theme © iAndrew 2016 - Forum software by © MyBB