Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Frames Navigation Help, Please.

Reply
Thread Tools

Frames Navigation Help, Please.

 
 
Martin Schmid
Guest
Posts: n/a
 
      05-12-2004

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




 
Reply With Quote
 
 
 
 
Vidar Petursson
Guest
Posts: n/a
 
      05-12-2004
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/de...ence_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
>
>
>
>



 
Reply With Quote
 
 
 
 
Martin Schmid
Guest
Posts: n/a
 
      05-12-2004
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/de...ence_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
> >
> >
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable the navigation buttons for IE navigation toolbar Laurahn ASP .Net 3 02-06-2007 04:17 AM
Screen flashes :- Smart Navigation under Frames =?Utf-8?B?U2FjaGluIEt1Y2hpbmFk?= ASP .Net 1 07-26-2004 12:38 AM
Frames and a navigation bar & CSS Spacen Jasset HTML 26 07-25-2004 09:41 PM
From Frames to no frames? Powerslave2112 HTML 2 01-20-2004 10:30 PM
newbie: problem with dropdownbox, navigation and frames Mike Javascript 2 08-30-2003 10:54 AM



Advertisments