Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Some small improvements with AJAX
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 20 February 2006 :  05:20:11  Show Profile  Visit MarcelG's Homepage  Reply with Quote
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.<

portfolio - linkshrinker - oxle - twitter

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 20 February 2006 :  10:02:28  Show Profile  Reply with Quote
Good ideas there marcel. Has anyone used AJAX in their snitz forum yet?<

Support Snitz Forums
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 February 2006 :  10:06:22  Show Profile  Visit HuwR's Homepage  Reply with Quote
item 2 and 3 just needs javascript not AJAX<
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 20 February 2006 :  10:18:44  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
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.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 20 February 2006 :  13:52:55  Show Profile  Visit MarcelG's Homepage  Reply with Quote
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!<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 20 February 2006 :  14:02:04  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Not my idea, vBulletin and CommunityServer 2.0 (released an hour ago) both have it. CS2 has a lot of AJAX.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 20 February 2006 :  14:11:31  Show Profile  Reply with Quote
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<

Support Snitz Forums
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 20 February 2006 :  14:20:09  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Apart from the "coolness" factor are there any other benefits? Convenience, bandwidth savings maybe ?<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 20 February 2006 :  14:25:36  Show Profile  Visit MarcelG's Homepage  Reply with Quote
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.<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 20 February 2006 :  19:38:50  Show Profile  Visit Jezmeister's Homepage  Reply with Quote
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.<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 21 February 2006 :  03:15:54  Show Profile  Visit HuwR's Homepage  Reply with Quote
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.<
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 21 February 2006 :  06:32:14  Show Profile  Visit MarcelG's Homepage  Reply with Quote
An offense not to adhere to guidelines ?<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 21 February 2006 :  06:44:42  Show Profile  Reply with Quote
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.<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 21 February 2006 :  09:00:31  Show Profile  Visit HuwR's Homepage  Reply with Quote
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.<
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 21 February 2006 :  09:02:55  Show Profile  Reply with Quote
About guidelines, what if the user can disable AJAX, so it´s a matter of choice?<
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 21 February 2006 :  10:48:16  Show Profile  Visit dayve's Homepage  Reply with Quote
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.<


Edited by - dayve on 21 February 2006 10:56:21
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07