Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Newsgroup User
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19117
"esonline" <webforumsuser@macromedia.com> wrote in message
news:e6sjen$apb$1@forums.macromedia.com...
> Hello;
>
> I am new to ASP as well as Dreamweaver 8. I have been able to figure out
> a
> lot of things by self teaching but now I am stuck. (perhaps I am exhausted
> after so many hours!).
>
> I have created an ASP page where I have inserted a dynamic Listbox in it.
> I
> have successfuly populated the listbox.
>
> Here is what I m trying to do: when the user makes a selection in the
> Listbox, I would like to use the "onChange" event (which I still can't
> figure
> out how to use it) to generate a Recordset using the value of the
> selection.
> The new Recordset will give me a filename (which is in the database) that
> the
> user can download by clicking on a link. You could call it a Dynamic Link
> since everytime the user makes a different selction in the listbox, the
> link
> will link to a different filename.
>
> I have been working on this for at least 12 hours and eventhough I usually
> catchup very quickly, this one I am having a hard time with.
>
> Your help will be greatly appreciated.![]()
>
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Newsgroup User
<a href="javascript:;"
onClick="window.open(document.form1.selectChild.options[document.form1.selectChild.selectedIndex].value,'docWindow','')">Open
Document</a>
"esonline" <webforumsuser@macromedia.com> wrote in message
news:e6uevb$jt1$1@forums.macromedia.com...
>I have tried this as a hyperlink for a text but it does not work!
>
> <a href="document.form1.selectChild.selectedIndex.value">
>
> Any idea to refrence to the value of the listbox. If the above syntax
> worked,
> it would have either openned or downloaded the pdf document!!
>
> Any help would be greatly appreciated
>
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Newsgroup User
"esonline" <webforumsuser@macromedia.com> wrote in message
news:e6utin$8im$1@forums.macromedia.com...
> Thank you very much!!! The nice thing is that I placed your Javascript
> code
> into the onClick behavior of the list box and i get the same results, now
> I
> don't even need the text link. Thank You again.![]()
Perhaps onSelect would work better.
If you attach the behavior to the list itself, all
"document.form1.selectChild" references can be replaced with "this".
this.options[this.selectedIndex].value
Copy link to clipboard
Copied
quote:
Originally posted by: Newsgroup User
"esonline" <webforumsuser@macromedia.com> wrote in message
news:e6utin$8im$1@forums.macromedia.com...
> Thank you very much!!! The nice thing is that I placed your Javascript
> code
> into the onClick behavior of the list box and i get the same results, now
> I
> don't even need the text link. Thank You again.![]()
Perhaps onSelect would work better.
If you attach the behavior to the list itself, all
"document.form1.selectChild" references can be replaced with "this".
this.options[this.selectedIndex].value
Copy link to clipboard
Copied
Find more inspiration, events, and resources on the new Adobe Community
Explore Now