Hi Peter.
Thanks for your response.
I am getting an error that ddlLocation is not defined.
The error triggers right after the = sign on locationDDL.options
I included those variables in my getDates function which is
triggered by an onClick event for the date calendar.
I am trying to pass it with the date information to
report_annual.aspx with to convert to a string.
Yep. I'm lost.
<script lang="javascript">
function getDates_reportAnnual()
{
var myList = document.getElementById("locationDDL");
var theParam = locationDDL.options[locationDDL.selectedIndex].value;
var datReport = window.showModalDialog
('datepick.aspx','','center:1;dialogHeight:260px;dialogWidth:300px;re
sizable:0;scroll:0;status:0;help:0')
if (datReport != '' && datReport != null) window.open
('report_annual.aspx?reportdates=' + datReport, +
theParam,'','location=no,toolbar=no,status=no,menubar=yes,scrollbars=
yes,resizable=yes, width=800,height=600')
}
--- In [email protected], Peter Brunone
<[EMAIL PROTECTED]> wrote:
>
> I assume you're trying to do this in your client-side JS... To get
the
> parameter from the DDL on the client, you just need to call
>
> var myList = document.getElementById("myListID");
> var theParam = myList.options[myList.selectedIndex].value;
>
>
> Peter
>
> On 10/22/05, ltrane923 <[EMAIL PROTECTED]> wrote:
> >
> > I am trying to add some functionality to an existing Web report.
> > We are using ASP.NET <http://ASP.NET>, VB.Net,SQL
> >
> > The new functionality is I want to grab a selection from a drop
down
> > menu and append it to our current querystring.
> >
> > 1) Currently the user clicks a link calling the javascript, and
> > selects a start and end date from a pop up calendar.
(datepick.aspx)
> >
> > <script lang="javascript">
> > function getDates_reportAnnual(){
> > var datReport = window.showModalDialog('datepick.aspx')
> > if (datReport != '' && datReport != null) window.open
> > ('report_annual.aspx?reportdates=' + datReport)
> > </script>
> >
> > 2) It goes to some VBcode (report_annual.aspx) which grabs the
> > selected dates.
> >
> > Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
> > System.EventArgs) Handles MyBase.Load
> > Dim strStartDate As String
> > Dim strEndDate As String
> > Dim bytPipeLocation As Byte
> >
> > 'Get the report start/end dates from the querystring
> > (format is startdate|enddate)
> > bytPipeLocation = InStr(Trim(Request("reportdates")), "|")
> > strStartDate = Left(Request("reportdates"), bytPipeLocation -
> > 1)strEndDate = Right(Request("reportdates"), Len(Request
> > ("reportdates")) - bytPipeLocation)
> > divReport.InnerHtml = Report.AppAnnual(strStartDate, strEndDate)
> >
> > 3) Then it hits more vbcode basically building the report,
stating
> > the parameters start and end date and calls the stored procedure.
> >
> > I am not sure how to append the existing (report_annual.aspx)
with
> > the additional drop down list selection so that the report
> > could be filtered by a location drop down and the dates provided
by
> > the pop up calendar.
> > The drop downs are on the same page as the javascript
> >
> > Thanks
> > LT
> >
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/