vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   What ajax could be REALLY good for in conjunction w/ vb (https://vborg.vbsupport.ru/showthread.php?t=94601)

GilbertZ 08-19-2005 03:02 AM

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.

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

Quote:

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?

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

Quote:

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.

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

Quote:

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?

GilbertZ 08-19-2005 03:50 AM

Quote:

Originally Posted by Zachery
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

1 Attachment(s)
Quote:

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?

Brad 08-19-2005 04:01 AM

Quote:

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 :)

amykhar 08-19-2005 04:02 AM

1 Attachment(s)
No. It looks like this:

GilbertZ 08-19-2005 04:06 AM

1 Attachment(s)
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 ...


All times are GMT. The time now is 07:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02194 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete