Results 1 to 4 of 4

Thread: How to populate child window form field

  1. #1
    Join Date
    Dec 2009
    Fresno, CA

    Red face How to populate child window form field

    I am quite an amature web disigner by anyones standards here, I just do the one for my business. I'm making the changes to keep the email invisible from the spammers and many web visitors use web based email and I think I'm missing business from individuals that don't want the hassle with my old config. My question is probably simple for some of you but I've not been able to figure it out on my own so far.

    I have a list of parts for sale and I would like to have the user be able to click on the part number, open a form window which then allows them to fill in name, email and questions. I already have the parent page and the form window, I just need to figure out the code to populate the part info automatically for the user. Here is the code I currently have.

    <a href="parts_inquiry.html" onclick="window.open(this.href, '_blank', 'width=625,height=450,left=275,top=100,resizable=no,status=no,toolbar=no,menubar=no,location=no'); return false;"><b>1969 fender part CV-1234</b></a>

    Form code

    <form action="http://www.centralvalleyclassics.com/cgi/FormMail.pl" method="post">
    <input type="hidden" name="recipient" value="admin@myemail.com.com" />
    <input type="hidden" name="subject" value="Parts Inquiry" />
    <input type="hidden" name="redirect" value="../thank_you6.html" />
    <input type="hidden" name="required" value="realname, email" />
    <input type="hidden" name="env_report" value="REMOTE_HOST, HTTP_USER_AGENT, REMOTE_USER, REMOTE_ADDR " />

    <div align="center"><table width="90%" border="0">
    <tr><td align="center"><p><font size="4"><b>Parts Inquiry</b></font></p>
    <p align="center"><font size="2" color="#FF0000">&quot;*&quot; Indicates required field.</font></p>
    <p><font>Fill out the form below to find out more about this this part.</font></p>

    <div align="center"><table width="50%" border="2" bgcolor="#99CCFF">
    <tr><td align="right" width="50%"><font color="#FF0000">*</font>Your Name : </td>
    <td align="left" width="50%"><input type="text" size="35" maxlength="256" name="realname" /></td></tr>
    <tr><td align="right" width="50%"><font color="#FF0000">*</font>Email Address : </td>
    <td align="left" width="50%"><input type="text" size="35" maxlength="256" name="email" /></td></tr>
    <tr><td align="right" width="50%">Phone Number : </td>
    <td align="left" width="50%"><input type="text" size="14" maxlength="256" name="Phone" /></td></tr>
    <tr><th colspan="2">Please type your question(s) in the space below:
    <textarea name="Question(s)" rows="5" cols="70"></textarea></th></tr></table></div><br />
    <div align="center"><table width="90%" border="0">
    <tr><td align="center">
    <input type="submit" value="Submit Form" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" value="Clear Form" />

    I know I need to somehow reference the part information as a variable on the parent page and it will have to direct it to fill in the subject field in the form page. I don't know if jave is the best way or if browsers block typicalle block it. Any assistance would be appreciated. JB

  2. #2
    Join Date
    Dec 2009
    Fresno, CA
    I hope my spelling isn't keeping anyone away, I was on the phone when I typed it up. I bet your all happy I don't text and drive. LOL

    Any help with this would be greatly appreciated. Happy Holidays!

  3. #3
    Join Date
    May 2008
    Carguy, create a file named parts_inquiry.html and copy your form code to the file.
    When you click on the link, a new window with your form will pop out.

  4. #4
    Join Date
    Dec 2009
    Fresno, CA
    Quote Originally Posted by enzhu View Post
    Carguy, create a file named parts_inquiry.html and copy your form code to the file.
    When you click on the link, a new window with your form will pop out.
    enzhu, I already am able to do what you described but I appreciate the input.

    I have quite a few parts on a single page and I currently have an email link on each one, I have noticed that many website visitors have web based email so they are left with copy and past of my email addy. I could just post it but my goal is to reduce my spam and make it simpler for my clients to inquire.

    The majority of the visitors to my site that are not computer saavy so I have focused on simplicity and easy to navigate, I've received many compliments in the past from my website visitors but complaints about the parts inquiries setup. I have put it off for a while but decided to completely overhaul the site for the new year, I wish it was something I was more proficient at because I would have tackled it sooner.

    What I was looking for was a way to have the client click on the part number or description and it send that data to populate the subject line of the current form in the new window. This would eliminate the need to have the client type the part information (or not) so I would know when I recieved the inquiry which part they were interested in.

    I don't know if java, xml or plain old html is the solution but I'm sure it can be done and looking for some guidance. Thanks.

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.08709 seconds
  • Memory Usage 2,871KB
  • Queries Executed 13 (?)
More Information
Template Usage (33):
  • (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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (4)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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 (70):
  • 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
  • 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