This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes onClick and openPage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "onClick and openPage" Watch "onClick and openPage" New topic
Author

onClick and openPage

David Burr
Greenhorn

Joined: Dec 08, 2003
Posts: 2
In the past I've only ever used static HTML so I don't know where to start in fixing this problem.
I want to have a link in a cell where if the user either clicks the link or the cell they go to a particular page. The issue is slightly complicated by the fact that these navigation links live in an iframe and so the page needs to open in the _parent frame.
Anyways here is my HTML:

If the link is clicked then Home opens in the parent as it should.
I've inserted the * just so that I can post the question.
If the cell is clicked then the text "Error on page" appears in the status bar of the broswer.
Does anyone know what I've done wrong?
Many thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
what is your function openPage?
David Burr
Greenhorn

Joined: Dec 08, 2003
Posts: 2
Doh! Silly me I hadn't implemented it! I really am new to this as you can see!
My function now looks like this:

How can I go about setting the target to be my "_parent" window?
Many thanks

David
PS: Can anyone recommend a good online resource I can use to teach myself all of this?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: onClick and openPage
 
Similar Threads
Tiles - adding background image to a clicked link
Scroll of div fail to work when table row inside it is higlighted
Questions for webdesigner -developer experts! help!
Fixed Table Header and changing classes
Problem with struts-menu for second level submenu