Frames Navigation Help, Please.

Discussion in 'ASP .Net' started by Martin Schmid, May 12, 2004.

  1. I've got a page w/ frames... one is a navigation frame with some
    ImageButtons. In the navigation frame, there is also a drop-down list. I
    need to redirect the mainFrame based on which ImageButton is selected, and
    which value is selected in the drop-down list.

    I.e., each ImageButton is a thumbnail image, and the dropdown lets the
    viewer select the result size of the image... 25%, 50%, 100%. I need to
    dynamically generate something that tells the mainFrame to go to:
    showimage.aspx?file=/myweb/photos/Chihuly/09300002.JPG&size=0.25 where after
    the file= is based on which thumbnail selected and the size= is based on the
    value in the drop down.

    My showimage.aspx works... I just need to nail down this navigation. Any
    ideas?

    --
    Thanks,
    Martin Schmid, EIT, CCSA, MCDBA, MCSE
    Martin Schmid, May 12, 2004
    #1
    1. Advertising

  2. Hi

    <ELEMENT onclick="doIt(this.src)".....
    Where ELEMENT is a <img or <input type="image, if its a input then return
    false
    so it won't submit: <input type="image" onclick="doIt();return false"...

    function doIt(sImgSrc){
    var e = document.forms["FORMNAME"].SELECTNAME;
    parent.FRAMENAME.location.href = "showimage.aspx?file=" + sImgSrc + "&size="
    + e.options[e.selectedIndex].value;
    }
    Where SELECTNAME is the name of the dropdown and FRAMENAME the name
    of the target frame

    More info:
    http://msdn.microsoft.com/library/d...hor/dhtml/reference/dhtml_reference_entry.asp

    --
    Best Regards
    Vidar Petursson
    ==============================
    Microsoft Scripting MVP
    http://www.microsoft.com/technet/scriptcenter
    ==============================
    "Martin Schmid" <> wrote in message
    news:...
    >
    > I've got a page w/ frames... one is a navigation frame with some
    > ImageButtons. In the navigation frame, there is also a drop-down list. I
    > need to redirect the mainFrame based on which ImageButton is selected, and
    > which value is selected in the drop-down list.
    >
    > I.e., each ImageButton is a thumbnail image, and the dropdown lets the
    > viewer select the result size of the image... 25%, 50%, 100%. I need to
    > dynamically generate something that tells the mainFrame to go to:
    > showimage.aspx?file=/myweb/photos/Chihuly/09300002.JPG&size=0.25 where
    > after
    > the file= is based on which thumbnail selected and the size= is based on
    > the
    > value in the drop down.
    >
    > My showimage.aspx works... I just need to nail down this navigation. Any
    > ideas?
    >
    > --
    > Thanks,
    > Martin Schmid, EIT, CCSA, MCDBA, MCSE
    >
    >
    >
    >
    Vidar Petursson, May 12, 2004
    #2
    1. Advertising

  3. Needed a little work... but it got me there..

    Thanks!

    --
    Thanks,
    Martin Schmid, EIT, CCSA, MCDBA, MCSE
    "Vidar Petursson" <> wrote in
    message news:evT8Zt$...
    > Hi
    >
    > <ELEMENT onclick="doIt(this.src)".....
    > Where ELEMENT is a <img or <input type="image, if its a input then return
    > false
    > so it won't submit: <input type="image" onclick="doIt();return false"...
    >
    > function doIt(sImgSrc){
    > var e = document.forms["FORMNAME"].SELECTNAME;
    > parent.FRAMENAME.location.href = "showimage.aspx?file=" + sImgSrc +

    "&size="
    > + e.options[e.selectedIndex].value;
    > }
    > Where SELECTNAME is the name of the dropdown and FRAMENAME the name
    > of the target frame
    >
    > More info:
    >

    http://msdn.microsoft.com/library/d...hor/dhtml/reference/dhtml_reference_entry.asp
    >
    > --
    > Best Regards
    > Vidar Petursson
    > ==============================
    > Microsoft Scripting MVP
    > http://www.microsoft.com/technet/scriptcenter
    > ==============================
    > "Martin Schmid" <> wrote in message
    > news:...
    > >
    > > I've got a page w/ frames... one is a navigation frame with some
    > > ImageButtons. In the navigation frame, there is also a drop-down list.

    I
    > > need to redirect the mainFrame based on which ImageButton is selected,

    and
    > > which value is selected in the drop-down list.
    > >
    > > I.e., each ImageButton is a thumbnail image, and the dropdown lets the
    > > viewer select the result size of the image... 25%, 50%, 100%. I need to
    > > dynamically generate something that tells the mainFrame to go to:
    > > showimage.aspx?file=/myweb/photos/Chihuly/09300002.JPG&size=0.25 where
    > > after
    > > the file= is based on which thumbnail selected and the size= is based on
    > > the
    > > value in the drop down.
    > >
    > > My showimage.aspx works... I just need to nail down this navigation.

    Any
    > > ideas?
    > >
    > > --
    > > Thanks,
    > > Martin Schmid, EIT, CCSA, MCDBA, MCSE
    > >
    > >
    > >
    > >

    >
    >
    Martin Schmid, May 12, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U2FjaGluIEt1Y2hpbmFk?=

    Screen flashes :- Smart Navigation under Frames

    =?Utf-8?B?U2FjaGluIEt1Y2hpbmFk?=, Jul 22, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    546
    John Saunders
    Jul 26, 2004
  2. Spacen Jasset

    Frames and a navigation bar & CSS

    Spacen Jasset, Jul 22, 2004, in forum: HTML
    Replies:
    26
    Views:
    1,726
    Isofarro
    Jul 25, 2004
  3. KK
    Replies:
    2
    Views:
    528
    Big Brian
    Oct 14, 2003
  4. Laurahn
    Replies:
    3
    Views:
    896
    Steven Cheng[MSFT]
    Feb 6, 2007
  5. contrapositive

    Frames within Frames - help!

    contrapositive, Jan 24, 2005, in forum: Javascript
    Replies:
    1
    Views:
    108
    Randy Webb
    Jan 24, 2005
Loading...

Share This Page