Skip to main content
Participant
June 2, 2007
Question

Open PDF from menu/list box?

  • June 2, 2007
  • 1 reply
  • 243 views
I would like to be able to have site visitors view a list of PDF's in a menu/list box and then be able to open the PDF they select. Now, I have the menu box in a form. Selecting a PDF, then clicking the forms submit button, brings up another form. the second form shows the record (the PDF which was selected) - and clicking the submit button brings up the PDF. I would like it to be a one-click process versus what I have now.
I don't know what code to palce for the 'action' attached to the first submit button.
I would appreciate any help. I am using ASP js.
Thanks
This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Inspiring
June 5, 2007
You still need to have a single action on the first form to handle the
selection but what I would do is send it to a page and use a
Response.Redirect to send them to the write page. The following is vb script
by you should be able to convert it to js.

<%
dim gotoPDF
gotoPDF = request.form("SelectName")
Response.Redirect gotoPDF
%>

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"MontanaBill" <webforumsuser@macromedia.com> wrote in message
news:f3sb74$fm7$1@forums.macromedia.com...
>I would like to be able to have site visitors view a list of PDF's in a
> menu/list box and then be able to open the PDF they select. Now, I have
> the
> menu box in a form. Selecting a PDF, then clicking the forms submit
> button,
> brings up another form. the second form shows the record (the PDF which
> was
> selected) - and clicking the submit button brings up the PDF. I would
> like it
> to be a one-click process versus what I have now.
> I don't know what code to palce for the 'action' attached to the first
> submit
> button.
> I would appreciate any help. I am using ASP js.
> Thanks
>