|
Posted by luigi7up on 01/22/07 11:10
I solved the problem by executing includes at the beginning of
index.php and holding them up in $htmlOutput
variable. That way everything is executed before and information that
module gets from DB are "up to date"
Thanks...
J.O. Aho wrote:
> luigi7up wrote:
> > Aho, thanks for your reply.
> > Of course I could have done it with moving div around with CSS position
> > but I realy don't like that kind of solving this problem...
> > I was thinking of some Javascript that would be called at the end of
> > execution of the part that is making INSERT. That javascript would
> > refresh cart status...
>
> If you have the cart in it's own frame, thats no problem, as long as the use
> has javascript enabled.
> If you have only one page with everything in it, then I do suggest two methods
> 1. Use div and make the cart checkup last
> 2. Save all output to variables, when you done all that is to do, set
> together the variables in a such manner that you get the final output.
>
> There is an third option, but it will just make things more complicated for
> you, use AJAX.
>
> --
>
> //Aho
[Back to original message]
|