Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Expand/Collapse Categories

Aloittaja Elmacik, elokuu 28, 2005, 06:30:29 IP

« edellinen - seuraava »

Elmacik

When we click on the board name, page starts to reload with that board closed if opened and opened if closed.
I think this should be done WITHOUT reloding the page. (Should be done just like the quickreply function; when you click on the quickreply link, it doesnt need reloading, just opens and closes immediately)
Home of Elmacik

[Unknown]

You mean categories, right?

-[Unknown]

Elmacik

yes, sorry for the wrong word :)
i mean the categories.
Home of Elmacik

1MileCrash

I HIGHLY agree with you, there.

Why does it reload anyways? Doesnt it use javascript?
The only thing php can't do is tell you how much milk is left in the fridge.



[Unknown]

It's more efficient not to load data it won't need.... it could collapse using JavaScript, but I'd be against it expanding with it, myself.

Using XMLHttpRequest would be possible, but would make it much more difficult to write templates.

-[Unknown]

Elmacik

Home of Elmacik

Sheepy

You see, elmacik, that it is not just collapsing the catagory.  The forum also remembers the choice so that next time the user comes, collapsed catagories will stay collapsed.  You have to send something to the server, in this case with the effect of a reload.

As [Unknown] said, it's possible to do it without reload, but it will make things more complicated.  What I am thinking is, if this makes its way into default template, it may gives users a pass to ask for similiar features, and soon JS will conquer the interface...

Yes I seems to be pessimistic.  I think once upon a time I was optismistic...

Elmacik

bump !

what i noticed:

upshrink works without reload and it DOES remember the last position when you LOG BACK IN.
yes, you logout, log back in and upshrink still remembers your last choice..

so please make this available for collapsing / expanding the categories too...
Home of Elmacik

Oldiesmann

That works great if you log in from the same computer all the time, but if you login from a different computer, the category would be expanded even if you had collapsed it the last time you logged in. This is why the page re-loads - so SMF can update the database to indicate that you collapsed (or expanded) that category.
Michael Eshom
Christian Metal Fans

Christian Land

And by the way: thats what I always liked about YSE/SMF... that it stores most data in the DB instead of using cookies - most of the time, I'm using 4 different PCs - and I like the fact that the forum stays the same on all of them without the need to configure it on every PC seperatly...

Oldiesmann

I love it too. In particular, one popular "professional" system still stores quick reply data in cookies, and I get tired of having to go into my profile and tell it to always show the quick reply box each time I log in from a new computer.
Michael Eshom
Christian Metal Fans

Dannii

I'd love to see SMF+AJAX... but prehaps I'm just dreaming :P
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Elmacik

Lainaus käyttäjältä: eldacar - lokakuu 21, 2005, 09:35:57 AP
I'd love to see SMF+AJAX... but prehaps I'm just dreaming :P

Wow! Your dreams came true :D
How about Ajax with this request? :)
Home of Elmacik

1MileCrash

can someone tell me wtf AJAX is ?
The only thing php can't do is tell you how much milk is left in the fridge.



Elmacik

Take a look: Life after Ajax
Its used for inline editing in SMF.
Home of Elmacik

Advertisement: