View Full Version : What ajax could be REALLY good for in conjunction w/ vb
GilbertZ
08-19-2005, 03:02 AM
Here's a real cool hack I'd love to see (and would certainly use in a plugin I'm going to create soon). It uses ajax and javascript in a way that helps you achieve something that is otherwise a royal pain in the ass. This is exactly what ajax is made for IMO.
When you go to your PM box and want to write a PM to someone, you have to remember the username EXACTLY. If not your whole PM goes to the server, you get an error message. You risk losing the PM. By copying the functionality in Google Suggest:
http://www.google.com/webhp?complete=1&hl=en
you type a letter, javascript detects it, makes a call to the server for all members starting with that character in a drop down, type more letters it filters more users.
I have yet to learn enough ajax or javascript to quite make this work in a cross browser compatible manner. But if someone wants to run with the idea, please let me know. I can really use it for what I want to build.
AN-net
08-19-2005, 03:21 AM
isnt there a ajax hack for usernames released on here? why not just take that code and apply it to pm's
GilbertZ
08-19-2005, 03:30 AM
isnt there a ajax hack for usernames released on here? why not just take that code and apply it to pm's
Cool. Do you have a url?
amykhar
08-19-2005, 03:31 AM
actually, the 3.5 version now has a username hint. When you are typing the username in the to box, a list of possible choices pops up that you can select from
GilbertZ
08-19-2005, 03:41 AM
actually, the 3.5 version now has a username hint. When you are typing the username in the to box, a list of possible choices pops up that you can select from
It isn't working for me. Are you talking about the PM system? I just tried it in vb.com. No go.
amykhar
08-19-2005, 03:49 AM
Yes. It's working on my site. I just tried it on vb.com and it works there too. Compose a new pm. Type fil and a list of names pops up that starts with fil.
Amy
Zachery
08-19-2005, 03:50 AM
It isn't working for me. Are you talking about the PM system? I just tried it in vb.com. No go.
What browser are you using?
GilbertZ
08-19-2005, 03:50 AM
What browser are you using?
Firefox. Which one should I use?
amykhar
08-19-2005, 03:51 AM
I'm using firefox and it works for me.
GilbertZ
08-19-2005, 03:55 AM
I'm using firefox and it works for me.
That is very weird. I just tried in I.E. also and it doesn't work there either. Could it be a setting? Maybe I need advanced editor turned on?
Nah. That doesn't seem to be the problem. Maybe some graphics will help. Does your input box look like this?
Here's a real cool hack I'd love to see (and would certainly use in a plugin I'm going to create soon). It uses ajax and javascript in a way that helps you achieve something that is otherwise a royal pain in the ass. This is exactly what ajax is made for IMO.
When you go to your PM box and want to write a PM to someone, you have to remember the username EXACTLY. If not your whole PM goes to the server, you get an error message. You risk losing the PM. By copying the functionality in Google Suggest:
http://www.google.com/webhp?complete=1&hl=en
you type a letter, javascript detects it, makes a call to the server for all members starting with that character in a drop down, type more letters it filters more users.
I have yet to learn enough ajax or javascript to quite make this work in a cross browser compatible manner. But if someone wants to run with the idea, please let me know. I can really use it for what I want to build.
Try doing a hard refresh (ctrl + f5). Short of that how long are you waiting for the pop-up? It takes a second or two to come up, the delay is there to lessen the server load :)
amykhar
08-19-2005, 04:02 AM
No. It looks like this:
GilbertZ
08-19-2005, 04:06 AM
Ahh. Now it makes sense. Check out the attachment.
After waiting a bit longer I got it to work on Firefox.
Parker Clack
10-19-2005, 06:23 PM
How would you go about adding this function to the registration page? When someone types in a username to sign up with it gives them a popup window with the names already in use.
soniceffect
10-19-2005, 07:54 PM
would be very confusing to new members that I recon ...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.