Welcome Guest, Not a member yet? Register   Sign In
Dealing with IE caching
#11

[eluser]Twisted1919[/eluser]
I assume you are using the latest release of CI, right ? The user_agent.php file from config is up-to-date ?
If you do something like :
Code:
if($this->agent->is_browser('Firefox') {
echo "I am FF!";
}
And you go to the page with IE and FF, do you see it on IE ?
#12

[eluser]Maglok[/eluser]
Nah this is on a 1.7.3. though I see no reason why that one can't do IE vs others detection.

Everything seems to detect as anything if I do is_browser stuff.
#13

[eluser]Twisted1919[/eluser]
Then update the UA library and the config file with the ones from ci 2.0, it should work okay if you do so, i have no problem using it.
#14

[eluser]Maglok[/eluser]
So the user_agent library of 1.7.3 never worked? There has to be more to it then that.

I'll try that though, but I think it would need a bitta tweaking with the new stuff.
#15

[eluser]Twisted1919[/eluser]
No no, the UA library from 1.7.3 worked well enough, my thought is that, in 1.7.3 the is_browser() method would return the browser and won't accept it's name as a param, so it would work like:
Code:
$browser = $this->agent->is_browser();
if($browser == 'MSIE' || $browser == 'Internet Explorer')
{
[...]
}

Once again, i have forgot how 1.7.3 library really works because i don't really use 1.7.3 for some time now,
but i guess you can always open the file and see what the methods returns and what params they accept, right ?




Theme © iAndrew 2016 - Forum software by © MyBB