Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Some small improvements with AJAX

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
MarcelG Posted - 20 February 2006 : 05:20:11
Guys, I've got some ideas to improve the basic functionality, which, as far as I've understood from various articles on the net, should be very much doable by means of AJAX.
However, my own coding skills are not sufficient to craft these mods.
Therefore, I'd like to share the ideas I have, and perhaps someone takes up the challenge to create the nifty mods to improve Snitz.
They all are db-change-less, so no intensive modification of the basecode.

Idea 1: Username-check on registration page
When a user tries to register, a username has to be chosen.
When the user selects a username that's already in use, the user gets the error upon submitting the page. Instead of that, using AJAX, it should be doable to check the username that was filled in on the fly, and provide the user with a visible indication that the chosen username was already used.

Idea 2: Password-check on registration page
Same as above, but now for the duplicate version of the password.
If the two fields are not the same, show a visible indication that they do not match (for example by making the background color of the input field red or something like that.)

Idea 3: Subject check on post.asp
If a user posts a new message and forgets to enter the subject, he's prompted with a page telling him that. When he then clicks 'back' the message is gone.
To prevent this from happening, we could disable the 'post' button as long as the subject isn't filled in. We could also change the backgroundcolor of the subject-input field to red.

Idea 4: Auto-update active topics count without refresh
In the header, we can see the number of active topics. This number can be updated on the fly using AJAX, on a predefinable interval. For example 1 minute.<
15   L A T E S T    R E P L I E S    (Newest First)
dayve Posted - 21 February 2006 : 10:48:16
quote:
Originally posted by Davio

Good ideas there marcel. Has anyone used AJAX in their snitz forum yet?



I am using it for several things, nothing exactly Snitz related:

1. I use it to update the last 3 songs listened to with our Now Playing feature which displays in the upper right hand corner of the page. It updates every 5 seconds and has not impacted the forum performance the slightest.

http://www.burningsoulsforum.com/forum



2. I use it for a song rating mod where members can rate a song which will automatically update the number of stars upon voting.

http://www.burningsoulsforum.com/forum/statistics_winamp_member.asp?member=-1&view=1



...side note, the star actions do not use a single bit of javascript, all CSS thanks to: KomodoMedia

3. I use it to automatically update a Now Playing field in post.asp. I used to have a popup window appear, get the value and then throw it back to the parent form value, but the AJAX script that I am using is extremely verataile so it was easy to implement this. You can not see this feature unless you are a member using the Now Playing feature, so I will show a screenshot:


... after clicking Now Playing button, get currently playing song from database ...


I've used it on other projects and while it may not be a good practical usage of AJAX, I have not experienced any problems with using it.<
wii Posted - 21 February 2006 : 09:02:55
About guidelines, what if the user can disable AJAX, so it´s a matter of choice?<
HuwR Posted - 21 February 2006 : 09:00:31
quote:
Originally posted by MarcelG

An offense not to adhere to guidelines ?


yes I'm afraid so, it depends what your website/forum is for, but yes you can be prosecuted. I am not talking about web guidlines here, I am talking a bout disability/ accesability standards which are law not merely guidlines.<
wii Posted - 21 February 2006 : 06:44:42
Yeah, AJAX is very cool, and make it much easier to edit the forum on the fly.

I have had no browser issues with my users using AJAX.<
MarcelG Posted - 21 February 2006 : 06:32:14
An offense not to adhere to guidelines ?<
HuwR Posted - 21 February 2006 : 03:15:54
If you are going to use or try AJAX, just remember a few simple things.
1) if your server or network is slow then don't bother, AJAX will not work very well
2) Using AJAX will almost certainly make your website not adhere to accessibility guidelines (may be an offense in some countries)
3) unusual behaviour when using the back button.<
Jezmeister Posted - 20 February 2006 : 19:38:50
I've been doing a little work with AJAX lately, item 1 and 2 shouldnt be very hard to sort out so if noones had a crack at it by wednesday (I'm out all tomorrow) I'll see if I can get something working... although if you've got the time its something worth knowing, so just get a google search open and sift through a tutorial until you understand it a little bit I reccomend trying it for yourself (this is intended for everyone) even if there is a finished version done, its not gonna be too long until AJAX is completely standard and you've got 9 year old school kids doing it day in day out so learning it now might turn out to be handy.<
MarcelG Posted - 20 February 2006 : 14:25:36
Davio ; that's also an EXCELLENT idea!!! no more clicking to post.asp, just on the fly topic and subject editing!!! Marvelous!!!!

@ Sir Podge (which as I read is your appropriate title nowadays ), I guess that coolness + convenience + intuitive interface + less pageloads is enough to embrace this nifty functionality.

As I've understood, since it is not a new technology, but a combination of already existing technologies, it's supported by all the browsers that are able to run javascript.<
Podge Posted - 20 February 2006 : 14:20:09
Apart from the "coolness" factor are there any other benefits? Convenience, bandwidth savings maybe ?<
Davio Posted - 20 February 2006 : 14:11:31
Yes, you can also double click inside a cell table of a topic, and be able to edit the title. Maybe on forum.asp or active.asp.

Also using it when searching for post by member name. Enter the first few letters of a members name into the text box on the search page, and the form will show you a list of possible matches. Much easier than scrolling through 1,000's of names in a drop down box.

Editing a post without going to a new page is one of the most useful features I have encountered. Click the edit button on a post, and instantly, the post turns into a text box with the message ready to be edited. No page loading, no reloading. Submit it, and the post gets updated on the spot.

AJAX has started to spoil me. lol<
Podge Posted - 20 February 2006 : 14:02:04
Not my idea, vBulletin and CommunityServer 2.0 (released an hour ago) both have it. CS2 has a lot of AJAX.<
MarcelG Posted - 20 February 2006 : 13:52:55
Davio, I think sr_erick has done some AJAX things on Snowmobilefanatics ; one thing I remember was a spellcheck function that used AJAX.

Huw, you're probably right on that one ; there's no need for a server-client communication there. I guess one of the biggest gaps in my knowledge about AJAX is the J

Podge ; good ideas!!!! Didn't know that your number 6 was even possible!<
Podge Posted - 20 February 2006 : 10:18:44
Item 1 - You wouldn't need to submit the page.

For the search page (and elsewhere) you could have something like this when choosing members
http://www.google.com/webhp?complete=1&hl=en

Idea 5: AJAX login/logout.
Idea 6: Double click a forum description on the main page to edit it.<
HuwR Posted - 20 February 2006 : 10:06:22
item 2 and 3 just needs javascript not AJAX<
Davio Posted - 20 February 2006 : 10:02:28
Good ideas there marcel. Has anyone used AJAX in their snitz forum yet?<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000 Version 3.4.07