473,325 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Frames Navigation Help, Please.


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
2 1065
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
34
by: s c o t t | last post by:
I know Jakob Neilsen and a bunch of other usability advocates and critics usually frown on usage frames. However, most people probably seem to have at least version 5 of IE or newer and I am...
95
by: Neal | last post by:
Of course, every frame site I've ever seen has reduced usability and all. We've been through this before. But as frameset is still a part of HTML, there must be some legitimate use for it, hmm?...
5
by: AES/newspost | last post by:
I've just re-scanned most of the 60+ posts in the "Frames are Evil" thread, and my question, as the admittedly and permanently amateur creator and maintainer of a simple site, is: Using only...
1
by: Sachin Kuchinad | last post by:
Hi, I am using Smart Navigation to avoid screen flashes during refresh / reload of web pages which are under frames. Following is the physical layout of pages and their attributes. Main.aspx...
2
by: Griff | last post by:
A novice's view-point (please correct) With CLASSIC ASP, I understand that frames could be beneficial. For example, the left-hand frame could contain the ASP for the navigation tool and the...
4
by: Sandy.Pittendrigh | last post by:
I don't want to get into a frames discussion here. We all know they have numerous drawbacks, especially with search engine visibility. (Google, ironically, uses framesets for displaying individual...
56
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.