• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load view with hashtag

#1
[eluser]Kola[/eluser]
Hey,

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?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.