473,385 Members | 1,645 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,385 software developers and data experts.

Javascript Target For ondblclick Event

I am creating a simple site with two frame elements. The frame on the
left (MENU) contains a menu, and the big frame on the right (PAGE)
handles content. The menu frame has an image which loads the
seach.asp page using standard HTML in the PAGE frame when the user
clicks it -

<a href="search.asp" target="page"><img src="search.jpg"></a>

What I'm trying to do now is setup a Javascript ondblclick event on
another image to load my admin page in the PAGE frame. Trying to help
myself I've managed to come up with this so far -

ondblclick="window.location=('admin.asp');"

This works, but admin.asp is loading in the MENU frame and I obviously
want it to load in the PAGE frame. I'm sure this is simplicity
itself, but I cant suss the bugger out. If anyone can understand what
on earth I'm talking about, and has the answer, please put me out of
my misery!

Thanks,

Colin
Jul 20 '05 #1
2 6680
VK
ondblclick="top.PAGE.location.href='admin.asp';"

Colin Steadman <go******************@colinsteadman.com> wrote in message
news:c0*************************@posting.google.co m...
I am creating a simple site with two frame elements. The frame on the
left (MENU) contains a menu, and the big frame on the right (PAGE)
handles content. The menu frame has an image which loads the
seach.asp page using standard HTML in the PAGE frame when the user
clicks it -

<a href="search.asp" target="page"><img src="search.jpg"></a>

What I'm trying to do now is setup a Javascript ondblclick event on
another image to load my admin page in the PAGE frame. Trying to help
myself I've managed to come up with this so far -

ondblclick="window.location=('admin.asp');"

This works, but admin.asp is loading in the MENU frame and I obviously
want it to load in the PAGE frame. I'm sure this is simplicity
itself, but I cant suss the bugger out. If anyone can understand what
on earth I'm talking about, and has the answer, please put me out of
my misery!

Thanks,

Colin

Jul 20 '05 #2
> ondblclick="top.PAGE.location.href='admin.asp';"

Excellent, thanks for your help!

Col
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Maria Bitsku | last post by:
How do I deactivate a window using Javascript. For example if I have a window that opens up another window, how do I prevent the user from clicking (doing anything) in the original window until...
4
by: joebob | last post by:
The following script if run in Internet Explorer should display a thumbview of a webpage that you point it to. To test it, replace test.htm with a valid html file. The problem I'm having is that...
1
by: dschectman | last post by:
I have a page with two dynamic tables. One is a master list of items for selection. The second is a list of selected items. The master list contains 4 columns. 1) The item code - hidden For...
7
by: julian.tklim | last post by:
Hi, I need to build an editable Datagrid with add & delete buttons on each row using javascript. DataGrid need not be pre-populated with values. To make the thing complicated, one of the...
1
by: Bob | last post by:
Hi, Hope you can help me with this one. I'm at my wits end. I'm trying to create an intelligent edit-box like the excellent "Customer" one at the URL: ...
3
by: mportman300 | last post by:
Have pity on me.. i have been doing html, css, javascript squarely over 2 years... and am now doing a family project.. in my project i have decided to use a context menu script, its a menu that...
1
by: RobertTheProgrammer | last post by:
HI all, Using ASP.NET, I have a calendar web control on my page for which I want to fire an event every time a user double clicks one of the dates. Here is my chunk of code that is suppose to...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.