Welcome Guest, Not a member yet? Register   Sign In
trouble with load event in javascript class
#2

[eluser]Giorgio Nordo[/eluser]
Well, I have solved by associating the load event to a dummy image contained in the view.
It seems that jquery is not able to check the loading of a generic div.
So, this is the code in my controller:
Code:
$codice = $this->javascript->hide('#divlogin');
$this->javascript->load('#dummyimage', $codice);
$this->javascript->compile();
and the view contains the line
Code:
<img id="dummyimage" src="&lt;?php echo site_url(); ?&gt;application/views/images/dummy.png" />
where dummy.png is the old friendly one-pixel transparent image.
I hope this can help.
Giorgio


Messages In This Thread
trouble with load event in javascript class - by El Forum - 03-03-2011, 06:01 PM
trouble with load event in javascript class - by El Forum - 03-03-2011, 06:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB