Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Open PDF from menu/list box?

Community Beginner ,
Jun 02, 2007 Jun 02, 2007
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
TOPICS
Server side applications
240
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 04, 2007 Jun 04, 2007
LATEST
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
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines