Quote from: kudolink at Feb 14, 2007, 10:54 AM
Mmm... I think the JS way to do this is to add the switch of the expansion to the last action of the Ajax call, when it inserts the content in the html (I don’t remember if it uses "innerhtml()"or other method) you can fire the function to change the height of the box.
I’m going to try, but I don’t expect doing it soon...
Quote from: kudolink at Feb 14, 2007, 10:54 AM
BTW I like the site.
Thanks! It’s under development.
Now I figured something out about the "history" problem and back buttom function in browsers. I did something really basic and worked. You only need to insert
onclick="document.location=’LINK’" in your links. In my case, using Wayfinder to build my menus, I did this:
onclick="document.location=’[+wf.link+]’". So my final chunk "cssplay_row" went like this:
<li[+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" class="loadinto-targetArea" rel="OnlyContent" onclick="document.location='[+wf.link+]'">[+wf.linktext+]</a>[+wf.wrapper+]</li>
Now my users can history.back their actions and even bookmark the pages correctly. And it works with my smart friendly URLs. How’s that? ;-)
[red]EDIT: Well, after running some tests, the problem about it is... the page is, in fact, reloaded. What a shame... my internet link here at work made me not notice that, but it’s true: the div shows the waiting image, then the page reloads. It’s good for nothing. Any ideas?