Konqueror/Safari Problem: DHTML-generated Links And Frames

Sep 26, 2006

I have a Web page with two frames.

The left frame has a DHTML-generated tree of links (to images). The
right frame displays the image link you click in the tree of links.

It works great on all browsers except Konqueror/Safari, where it
displays the first image link you click on in the tree of links. But
then subsequent clicks on other links do nothing.

That is, the first time you click on a DHTML-generated link,
Konqueror/Safari loads the corresponding image in the other frame.
However, after that, when you click on links, the other frame is not
updated.

Do you know why this happens?

View 1 Replies


ADVERTISEMENT

Safari - JavaScript Frames/Links Issue

Oct 10, 2006

I have a DHTML Folder Tree, also known as a TreeView. That is, an expandable/collapsible tree of links. In a frame-less layout everything works great. In a frame-based layout, it doesn't work on Safari/Konqueror.

There are two frames: the left frame contains the tree control; when you click on a link in the tree, the right frame is the target for the links in the tree.

The tree mechanism itself works fine. But there is a problem with the links. What happens on Safari/Konqueror with the frame-based layout is the first link works fine, but all links after that do not. That is, the first click loads a picture on the right frame, but when I click on any other links after that, the target frame is not updated.

View 7 Replies View Related

Onclick Image Coordinates From Konqueror And Safari

Sep 26, 2005

I am trying to capture the image coordinates when a user clicks on an
image. My code is working in Firefox, Mozilla, Netscape, IE, and
Opera, but fails under Konqueror (and I suspect Safari). The code below
fails in Konqueror when the page is scrolled down; the coordinates are
off by the scroll amount.

My code in the html img tag: onClick="MLDot(event)"

and the related statements in the MLDot function:

xPosition =
event.offsetX?(event.offsetX):event.pageX-document.getElementById("clickImage").offsetLeft;
yPosition =
event.offsetY?(event.offsetY):event.pageY-document.getElementById("clickImage").offsetTop;

Anyone know how to pick up image coordinates in Konqueror/Safari?

View 1 Replies View Related

1 Click 2 Frames DHTML Menu?

Mar 17, 2010

Because i'm a javascript newbie, i decided to use a application (allwebmenus) to create a tree menu.But I wasn't able to find a option in the program to change 2 frames with 1 click.This is the situationI've got 2 frames (maincontent & logo) and 2 documents (opschoning.html & herinstalleren.html).At the moment the menu is working fine. When clicking on "- opschonen" ,opschoning.html is nicely loaded in the maincontentframe.But i would like to see that at the same moment herinstalleren.html gets loaded in the logoframe.I've been trying hard, but couldn't find the solution for the problem.

Code:
//----------DHTML Menu Created using AllWebMenus PRO ver 5.1-#766---------------
//F:ProgjesawmTheme GallerySlidingscott.awm

[code]....

View 1 Replies View Related

JQuery :: Buttons As Links - Working In Firefox And Safari - But In IE Links Do Not Work

Apr 30, 2010

I am new to jquery, and love it so far, but I am more of a designer, not a developer. I am learning jquery to enhance my sites, and I am having a problem figuring out buttons.

I have them working in firefox and safari, but in IE links do not work.

Here is the script I have, and the button code.

View 1 Replies View Related

Frames And #top Links

Jan 28, 2003

<META HTTP-EQUIV="refresh" content="1;URL=#top">

What is the correct way to format the URL of this script so that it refreshes a page in a different frame to the #top.

i.e. not the frame that has this script in it.

ESSENTIALLY what I want here is a hyperlink that refreshes a DIFFERENT Frame to the #top. -- possible?

View 7 Replies View Related

Dhtml - Implement Expanding Text To Links?

Apr 1, 2009

I'm currently trying to implement expanding text to links. However, as the links are created dynamically I need to be able to make the DIVs Id-tag 'general' in the script.So, instead of this:

function pageLoad() {
collapseAll($('myvar_1','myvar_2','myvar_3));
}

[code]....

View 3 Replies View Related

Firefox, Frames, And Targeted Links

Jul 23, 2005

I built my portfolio with Dreamweaver MX. In the bottom frame, I have thumbnails of images. When you click on a thumbnail, it is supposed to load the full size image in a targeted part of the top frame. It works fine in Explorer and Safari, but not in Firefox.

The address is http://www.justmyname.com/portfolio

If anyone has any suggestions on why it isn't working....

View 7 Replies View Related

Loading DHTML Menu Links Into Single IFrame?

Jun 21, 2009

Entire Code Sample:[URL]I can get this code to work no problem if I create a second iFrame ("iNav") just to load the DHTML menu into. EX:

Code:

var FirstLineFrame=parent.iNav; // Frame where first level appears
var SecLineFrame=parent.iNav; // Frame where sub levels appear
var DocTargetFrame='icontent'; // Frame where target documents appear

However I would like to avoid this as I really just want the single iFrame on my page and then dynamically load content into the iFrame via the DHTML menu.

View 1 Replies View Related

Series Of Links Generated From A Database?

May 19, 2011

This is something I just can't seem to get to work at all. The script I am trying to make work is a fairly simple concept. I have a series of links generated from a database. Each link is a product category. The number of links depends on the number of products in the database. Threfore, to give each link a unique id, I append the product's unique key from the database to the end of the link name, so no matter how many products are in the database, each element id is unique. No problem there. The links all put the correct product info into the div when clicked. (To be accurate, it isn't really a link onclick it's an AJAX call. That is irrelevant.)

However, each 'link' also has a mouseover function that displays a set of thumbnails in the div. Specifically, this is the problem. Once the 'link' has been clicked, I want to disable the mouseover event. After the click, the div shows specific product information, because that is what the customer is interested in but if they move the mouse up or down, they get a set of thumbnails for stuff they don't want.Back to the programming. This is how I have tried to disable the thumbnails, (tinythumbs function)

function stopthumbs(row){
var stoppit = row.getAttributeNode('value').nodeValue;
var stopthis ="thumb_link"+stoppit;

[code]....

View 8 Replies View Related

FireFox And Local Links Within Generated Content Exhibits Problems

Sep 1, 2005

The scenario: 1) Generate a popup window via script. 2) Populate it (again
via script) with content that features local (hash) links.

In IE 6.x this works - the links work as they should, moving the document to
that document position. However in FireFox 1.x the links load the main page
(the opener) in to the popup.

Both browsers populate the location.href of the popup with the main page's
href... but this only adversly affects FireFox (which seems to, in this
scenario, reload the whole page on a local link). I tried manually
populating the location.href but no joy.

I've appended an example which demonstrates the problem. I've tried to
shave it down as much as I could. Just save it to an HTML page and load it
up in FireFox. Click the button then scroll down and click the link...
instead of returning to the top of the page I get the opener page's HTML
populated into the popup.

Any thoughts on how to address this? I've Googled, but it may just be that
I've been unable to hit on the right terms to uncover the answer.

Code:

View 3 Replies View Related

JQuery :: Image - Using Append() With Anchor Links In WebKit (Chrome/Safari)?

Mar 22, 2011

Been trying to add an image before the closing of the anchor tag:

<body>
<a href="http://www.test.com/">http://www.test.com/</a>
</body>

If I use:

$("a").append("<img src='testimage.png' /");

No image will appear in WebKit (Chrome, Safari, etc). Firefox and IE works fine.

View 2 Replies View Related

Relative References With Konqueror?

Jul 20, 2005

I discover a strange bug in Konqueror 3.1.1.
I design a javascript application which acts in one file called
example.html. At the beggining of this js i write:

if (document.images)
{
folderopen= new Image(16,16);
folderopen.src="http://www.sergioamo.8m.com/buttons/folder_open.png";
folderclose= new Image(16,16);
folderclose.src="http://www.sergioamo.8m.com/buttons/folder_close.png";
}
functions....
....
...
..
and my javascript works perfect.
If i write:

if (document.images)
{
folderopen= new Image(16,16);
folderopen.src="./buttons/folder_open.png";
folderclose= new Image(16,16);
folderclose.src="./buttons/folder_close.png";
}
functions...
....
...
..
my javascript does not work properly. Does anyone knows if is imposible
to use relative references with konqueror 3.1.1 or which is the problem?

View 2 Replies View Related

Konqueror And Opera Problems

Dec 16, 2006

I am creating a chat script that uses PHP and Javascript. For part of it I need to empty one of the text boxes. The scripts I use work fine in IE and Firefox, however the the text box will not clear in Opera and Konqueror. I have tried the follwoing:
document.getElementById('commentbox').innerHTML = ''
and
document.chatform.comment.value = "";

Like I said they are both fine in IE and Firefox, but not in Konqueror or Opera. I have searched for hours looking for code that will work.

View 3 Replies View Related

Prototype.__defineGetter__() Equivalent In Konqueror

Jul 20, 2005

Is there an equivalent in Konqueror's KJS engine to Gecko's
__defineGetter__() and __defineSetter__() methods? Our web application
uses a ton of Javascript, written based on Internet Explorer's object
model as that's the primary platform that we're supporting. For
Netscape support we uses __defineGetter__() and __defineSetter__() to
emulate the many IE-only properties. I've tested our site using
Safari, and to my surprise, it renders perfectly. Alas, it's
completely non-functional. If it's somehow possible, I'd love to write
a similar emulation library for KJS so that our non-Windows users
would have an alternative to crummy Netscape/Mozilla.

View 1 Replies View Related

Jquery :: Using With Generated Content - Add A Light Box To A Site That Has Content Generated By Php

May 31, 2010

I'm would like to add a light box to a site that has content generated by php. Basically it is a property site and will have a thumbnail image and description. When the user clicks on thumbnail I would like to display a gallery of pictures relevant to the property. Each property will be generated dynamically by php. My question is how do I enter the selector for the gallery into jquery. I am thinking of using Fancy Zoom as you can use hidden elements, as the gallery will be hidden.

View 1 Replies View Related

JQuery :: Menu Navigation - Submenu Links Have A Rounded Box Appear Under Them Instead Of Being Underlined Links

Aug 26, 2009

My menu navigation(Home, Hosting Solution, etc..)

1. The submenu links need to be centered in the middle of the div instead of aligned to the left.

2. Can the submenu links have a rounded box appear under them, instead of being underlined links. Like these at the top: [url]

3: The top tab needs to stay gray/active/on when the mouse is moved down to the submenu or when it is the active button.

Here is the link of the site [url]

View 2 Replies View Related

Jquery :: Create Some Links With Window.open Method - When I Alert What Is Being Built, The Links Don't Work?

Mar 10, 2010

I'm using jquery/ajax to create some links with window.open method. Here's the relevant code:

$("#content").empty();
$.ajax({
type: "GET",[code]..........

Basically, when you click a link a function is called with a parameter based on the particular link you run. Then the code runs through an xml file, and if the parent of the nodes I've cyling through has a value equal to the parameter past to the function, that node is used to create a new link with window.open function attached to it.It all works, or seems to, and when I alert what is being built, it looks right to me, yet the links don't work.I've attached a copy of one of the alerts of one of the links as it's built.

View 5 Replies View Related

Mobile Safari And Onmousedown - Code Doesn't Work In Mobile Safari?

Jun 6, 2010

The very simple code (below) works fine in Safari (and Chrome, Firefox etc.), but it doesn't work in Mobile Safari. Why?(You can find a working example at: http:[url]....)

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>[code]......

View 2 Replies View Related

JQuery :: Text Links Trapped - But Not Image Links

Nov 28, 2010

I have an image wrapped inside a link tag.<a href="somepage.html"><img id="content" src="img/some.gif" /></a>

I want this .click target to be the link: $('a').click(function(e){

Instead, the target returned is the image [HTMLImageElement].

I have tried using closest()and currentTarget:

But they all still return the image, not the link.

View 2 Replies View Related

JS V DHTML

Oct 22, 2001

here's a question. Can anybody outline the primary advantages and disadvantages and differences between javascript and DHTML.

View 3 Replies View Related

DHTML: Div Animation

Nov 24, 2006

All I want to do is to have a div slide down from underneath a button I have. When i search online, I find a zillion slide down menu scripts, but they don't work for just
sliding a div.

View 4 Replies View Related

DHTML Problem

Jul 20, 2005

I've copied some code from a book which will enable me to make a layer
around a page, my aim is to do something a little more complex but this I
thought would get me started.

Anyway, I've run into a problem before I even start! The script works OK, it
runs the image in from the left hand side quite nicely, great. Problem I
have it always scrolls up to the top of the page, when the link I click
maybe 2 or 3 screens below (does that make sence?). I thought if I was to
add a name attribute to the link I could get the co-ordinates of this and
the screen will not reposition. Code:

View 3 Replies View Related

DHTML Is Not Working In IE

Jul 26, 2011

My pages all have the same blank at start then the images slide up trick. I have an old workaround for IE that stopped working, and I don't know what to do. In IE now nothing shows up.

View 1 Replies View Related

Difference Between DOM And DHTML?

Aug 23, 2009

What is the difference between DOM, Javascript and DHTML?

Alert() and document.write() is a DOM method or Javascript method?

View 6 Replies View Related

GET Variables In Dhtml

Aug 31, 2003

So I need to use variables passed in the url for dhtml calculations.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved