Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22

Thread: It seems so easy..am I just THAT stupid!

  1. #16
    Join Date
    Nov 2010
    huh. that's a coincidence. I've been thinking about learning ASP. Maybe we can do a language exchange

    what is the list like? is it the same one as in the code above? and when you say that they type in and the text automatically appears on the list does that mean each letter appears as they type it, or do they type the whole thing then press a button (or something) and it appears all in one hit?

    (the second one is way easier, but the first is not impossible)

    btw, I think I like the above code better if you change the select html to:
    <select NAME="Input" size=30 style="font-size:48px; visibility:hidden; width: 100&#37;" multiple></select>
    and the last line of the toggleState function to:
    Last edited by xelawho; 05-06-2012 at 11:20 PM.

  2. #17
    Join Date
    Apr 2006

    Thumbs up

    Here is how it will work.

    I will have someone check-in at a station when they walk in. The check in information will simply ask for a pin number and give them some basic information to be completed.

    Once the check-in is complete they will hit submit and the information will be updated in our database. However, I would like to have some trigger that as soon as that happens, it causes the information to appear on a list viewed by the person who is waiting to help them. I definitely don't need word by word just when they submit the form something is triggered to add that to the waiting list.

    The list would just utilize basic information pulled from their account and the form submitted.

    First Name Last Name Scheduled Time Arrived Time Appointments
    John Doe 1:45 pm 1:30 p.m. 22

    Then once I select the patient it pulls up their patient account. So I don't know that I am looking for anything too complicated.

    Any help you could offer would be great!

    Thanks again for everything.

    PS - I think ASP is a wonderful language. Fairly easy to learn and straightforward. Not as many weird combinations of letters and numbers I see in Javascript. PHP is probably easier though and will do about the same stuff.

  3. #18
    Join Date
    Nov 2010
    I suspect I'm misunderstanding - below is how you would do the first bit. Are you asking how to combine it with the second bit?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    <html xmlns="http://www.w3.org/1999/xhtml">
    First Name <input type="text" name="fn"/><br>
    Last Name <input type="text" name="ln"/><br>
    Scheduled Time <input type="text" name="st"/><br>
    Arrived Time <input type="text" name="at"/><br>
    Appointments <input type="text" name="app"/><br>
    <input type="button" value="log patient" onclick="logPat(this.form)"/>
    <textarea name="ta" cols="40"></textarea>
    function logPat(frm){
    frm.ta.value=frm.fn.value+" "+frm.ln.value+" "+frm.st.value+" "+frm.at.value+" "+frm.app.value;

  4. #19
    Join Date
    Apr 2006
    Apparently I wasn't logged in properly last time (I wrote half of my response and came back and finished the other half later) and it kicked me off due to inactivity...didn't realize my info wasn't posted....argh!

    The reason it is complex is because the client will check-in up front as well as many other clients. When they check-in they will enter some basic information about themselves and why they are here and then hit submit. This information will then be sent to the database. However, as soon as this is done (or before the data is actually stored), I need this to somehow trigger an update on a "waiting list" screen that my staff will be monitoring. This waiting list should list all of the people who are waiting and as more people are added it should auto update the list and when people are finished and we are done with them we will check them out. The waiting list screen, I would anticipate would have to be constructed more like a "chat" or "Instant Message" application because it would have to be somewhat instantaneous. (I.e. I hit enter on one screen, but see the results instantaneously on another).

    So the first station / Check-in screen
    Client enters in pin # (I can do this)
    This checks them in and prompts them to fill out a form (I can do this)
    once the form is entered this updated in the DB (I can do this)
    Once the db is entered (or any combination above) it should trigger the waiting list to auto-update (not sure how to do this)

    Second Station / Waiting list screen
    This should auto update in the order the client arrived with the client's name and the additional information listed above.
    I was thinking that this should be in more of a Table row form for easy selection.

    I understand if you can't write this out, I was more curious to know where do I start researching to find out how to do this. Or maybe this is easier than I think?

    I can't auto-refresh every 5 seconds as this would cause the waiting list to be constantly in-flux which is why I prefer more of a chat-like update.

    Hope this makes better sense.

  5. #20
    Join Date
    Nov 2010
    ah, I get it now. from what I understand you can use websockets if you can be sure that the system will always be running modern browsers. If not, AJAX would be a safer method.

    But I know very little about any of that. Here's an article that seems to do what you're talking about, written in ASP. Hope it helps

  6. #21
    Join Date
    Apr 2006
    Thanks! At least this points me in the proper direction. Surely, it can't be THAT complicated? I thought that about the last piece of code though. lol :0) Thanks again for all of your help. You really are very kind. I wish there was something I could give back to you for all of your help.

  7. #22
    Join Date
    Nov 2010
    I don't know if it does have to be that complicated - that one seemed to be interesting because you already know ASP. Like I say, I'm out of familiar territory here, but I'm not sure if there is a way for javascript/AJAX to know when a database has been updated, so the only way there that occurs to me would be querying it every second (or something) which I understand you don't want to do (and would be a rather wasteful use of system resources, imo).

    googling around, it appears that php would be the other option but I don't know how much less complicated that would be.

    good luck, anyway. when I turn up on the ASP forum in a couple of weeks asking dumb questions you can pay me back then

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.09712 seconds
  • Memory Usage 2,911KB
  • Queries Executed 13 (?)
More Information
Template Usage (36):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (7)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (72):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates