Welcome Guest, Not a member yet? Register   Sign In
Load view with hashtag


I've testing some new stuff out with content on 1 page, so I pretty much load 1 view for the the entire frontpage containing the information for various things.

The main thing is that I have content and login on the same page, seperated by #home, #login etc.

Now my question is wether or not I can specify the hashtag in the load view? Specificly I need to do so if there's an error in my login form, so the user can see the errors.

Where you'd normally just have a view with the login form, I do:

$this->load->view('template', $data); //htttp://site/index.php

But I need to append the hashtag so it goes to: http://site/index.php#login

How to?

Theme © iAndrew 2016 - Forum software by © MyBB