I don't think the code could look any better...The option values are correct,
they're all unique, and it appears that they are pulled when I select an
area. Why am I getting an error on the page? That's a little
frustrating...kind of like working with me, huh? Any more suggestions?
Thanks.
:
Couple questions...I put that text in like you said but now it returns
"Undefined" for every Area. Is that because some of the Areas are more than 1
word?
No, I don't think so, but it depends on the specific piece of code.
Or should it be pulling up the AreaNumber?
BTHOOM. It's your application.
In the DRW, do you pull out both the area and number and
on page 4 select the number to return? Thanks.
If you want selecting an Area to return a number, rather than the
textual name, then yes, on page 4 of the DRW:
Display Values From This Field should specify the field
that contans the area names
Submit Values From This Field should specify the field
that contains the area numbers
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
:
Oh, is the "area" drop-down list coming from the DRW?
If so, and on page 4 of the DRW, the "Display Values" field and the
"Submit Values" field are the same, you get a drop-down list that has
no value= attributes in its <option> tags. So, instead of
document.forms[0].area.value
you need to code
document.forms[0].area.text
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
I don't really know what my boss's plan are for creating the .pdf's. I'm just
in charge of making the first web page connect to the pages he tells me. I
took out the array that I had in the code before and replaced it with code
similar to the coffee shop you talked about. I only have one problem
left...The values from the second and third list boxes are read fine but the
area value will not pass into the function you mentioned below. I have tried
everything with DRW to no avail. Those last few posts were very confusing so
don't even worry about them. Thanks Jim.
:
So everything works pretty well when I choose a property type with just the
default levels but they are passed across every property type including the
ones with different levels, like condominium. Can I put option values into
the array?
What array?
If that works then it's just a matter of getting the database to
return values
What database?
and populating the .pdf's.
Wait a minute. What do you mean by "populating the .pdf's"? How
are you going to do this?
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
Thanks alot Jim...you're a life
saver.
:
Huh?
You should code the "example" drop-down list like this:
<select name="example" size="1">
<option value="1">Suburban (Less Than 1 Acre)</option>
<option value="2">Suburban or Rural (More Than 1 Acre)</option>
<option value="3">Urban or Historic</option>
<option value="4">Villa, Cluster, or Zero Lot Line</option>
<option value="5">Condominium</option>
</select>
and then code the stage2 drop-down list the same way. Then, you should
assemble the URL in the event handler for the Go button, as I showed
you in my previous response.
You might want to take a look at the code for the Coffee Break Deli at
http://www.interlacken.com/tricks/trick09/coffeebk.htm
in which changing the Bakery Item selection reloads the Topping list.
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
Hey Jim, would I put the code in like this? Thanks.
group[0][1]=new Option("Atrium Ranch", document.location.href=
"
http://www.somewebpage.com/firstform/" +
document.forms[0].area.value + "_0_1.pdf";
Here's the page if you want to look at it...
http://www.stlmoves.com/mkteval
:
No, you don't need a function. You just code:
document.location.href=
"
http://www.somewebpage.com/firstform/" +
document.forms[0].area.value + "_" +
document.forms[0].box2.value + "_" +
document.forms[0].list3.value + ".pdf";
Assuming that area, box2, and box3 are the names of your
drop-down list boxes.
Now, let me ask you a question. Is all this starting to
make sense, so that you understand how all the various
scripts you've asked about work together on the page, and
so you can understand the Microsoft doc?
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
-----Original Message-----
I have a set of three list boxes in a form. The first list box contains
several areas but the value returned by your choice is a number corresponding
to that area. The second and third boxes are dependent upon each other and
are populated by an array. Is there a way to manipulate the URL to determine
what page will follow? For example, an area is code 271, the first list box
is array value 0, and the third value is array number 5. I would like to
have the next page be named as follows...
http://www.somewebpage.com/firstform/271_0_5.pdf. Now, the 0 and the 5 come
straight out of the array but do I have to call a function to insert the 271
in the string? Any suggestions would help greatly. Thanks.
.