By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,993 Members | 1,984 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,993 IT Pros & Developers. It's quick & easy.

Frames Navigation Help, Please.

P: n/a

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


Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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" <ma**********@sbcglobal.net.nospam> wrote in message
news:eF*************@TK2MSFTNGP12.phx.gbl...

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

Nov 18 '05 #2

P: n/a
Needed a little work... but it got me there..

Thanks!

--
Thanks,
Martin Schmid, EIT, CCSA, MCDBA, MCSE
"Vidar Petursson" <th**************************@icysoft.com> wrote in
message news:ev*************@tk2msftngp13.phx.gbl...
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" <ma**********@sbcglobal.net.nospam> wrote in message
news:eF*************@TK2MSFTNGP12.phx.gbl...

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


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.