Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-03-2008, 12:23 AM
Member
 
Join Date: Apr 2008
Posts: 1
Brucifer is on a distinguished road
Question on how to pass text of a pulldown
Alright.

So, I'm a total newbie given a task to create a small site to collect some user inputed info and pass it to an email. I found some really good examples online and basically took a few of them and mashed them into something that works 99%. the one last % is killing me.

The site takes basic info, name, email etc, and a pulldown for different configuration options. When the pulldown is selected, it loads a html file containing all the details and a picture into an iframe.

I'm using a perl script I found online to collect all the data and dump it to a email when the form is submitted. That works great except for one problem. I need to pull the txt in the pulldown, but I seem to be only able to pull the value, which is the html file being shown in the iframe.

Here is the code from my Pulldown:

<select onchange="window.open(this.options[this.selectedIndex].value,'iframe');this.selectedIndex=text;"choice=c onfig" name="config">
<option value="instructions.html"> Configuration Options </option>
<option value="option1.html"> 12311 with Dual 50" Plasma </option>
<option value="option2.html"> 12312 with 50" Plasma </option>
<option value="option3.html"> 12313 with 42" Plasma </option>
<option value="option4.html"> 12314 with 32" Plasma </option>
</select>


and my iframe code:

<iframe name="iframe" src="instructions.html" align="top" height="460" width="760"></iframe>

So I don't really understand what the majority of the java does, I just know it works 99% of the way I need it to. I can pass the "optionN.html" when i collect the value of the pulldown using Perl, but I need to pass the "12311 with Dual 50" Plasma" text in the pulldown itself.


Any help would be appreciated.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass by ref. A work around? diRisig New To Java 0 02-05-2008 08:25 PM
how to pass array in java? sivasayanth New To Java 3 01-13-2008 05:33 PM
Cannot pass the correct property value to a form piterskiy74 Web Frameworks 0 12-11-2007 04:17 PM
How to pass an html variable as an applet value fred Java Applets 1 08-06-2007 04:28 AM
Question mark colon operator question orchid Advanced Java 3 04-30-2007 11:37 PM


All times are GMT +3. The time now is 06:42 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org