Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 19 Aug 2005, 04:02
GilbertZ GilbertZ is offline
 
Join Date: Nov 2004
What ajax could be REALLY good for in conjunction w/ vb

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.
Reply With Quote
  #2  
Old 19 Aug 2005, 04:21
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
isnt there a ajax hack for usernames released on here? why not just take that code and apply it to pm's
Reply With Quote
  #3  
Old 19 Aug 2005, 04:30
GilbertZ GilbertZ is offline
 
Join Date: Nov 2004
Originally Posted by AN-net
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?
Reply With Quote
  #4  
Old 19 Aug 2005, 04:31
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
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
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #5  
Old 19 Aug 2005, 04:41
GilbertZ GilbertZ is offline
 
Join Date: Nov 2004
Originally Posted by amykhar
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.
Reply With Quote
  #6  
Old 19 Aug 2005, 04:49
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
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
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #7  
Old 19 Aug 2005, 04:50
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Originally Posted by GilbertZ
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?
__________________
Looking for ImpEx?
Reply With Quote
  #8  
Old 19 Aug 2005, 04:50
GilbertZ GilbertZ is offline
 
Join Date: Nov 2004
Originally Posted by Zachery
What browser are you using?
Firefox. Which one should I use?
Reply With Quote
  #9  
Old 19 Aug 2005, 04:51
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
I'm using firefox and it works for me.
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #10  
Old 19 Aug 2005, 04:55
GilbertZ GilbertZ is offline
 
Join Date: Nov 2004
Originally Posted by amykhar
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?
Attached Images
File Type: gif amy.gif (24.8 KB, 30 views)

Last edited by GilbertZ; 19 Aug 2005 at 04:58. Reason: Automerged Doublepost
Reply With Quote
  #11  
Old 19 Aug 2005, 05:01
Brad Brad is offline
 
Join Date: Nov 2001
Originally Posted by GilbertZ
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
Reply With Quote
  #12  
Old 19 Aug 2005, 05:02
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
No. It looks like this:
Attached Images
File Type: gif popup.gif (15.2 KB, 23 views)
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #13  
Old 19 Aug 2005, 05:06
GilbertZ GilbertZ is offline
 
Join Date: Nov 2004
Ahh. Now it makes sense. Check out the attachment.

After waiting a bit longer I got it to work on Firefox.
Attached Images
File Type: gif amy2.gif (8.8 KB, 31 views)

Last edited by GilbertZ; 19 Aug 2005 at 05:11. Reason: Automerged Doublepost
Reply With Quote
  #14  
Old 19 Oct 2005, 19:23
Parker Clack Parker Clack is offline
 
Join Date: Nov 2001
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.
Reply With Quote
  #15  
Old 19 Oct 2005, 20:54
soniceffect's Avatar
soniceffect soniceffect is offline
 
Join Date: Feb 2005
Real name: Marc
would be very confusing to new members that I recon ...
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:59.

Layout Options | Width: Wide Color: