473,714 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Designmode IFrames and event handlers in Firefox 1.5

Hi all, I busted a gut getting my design-mode iframe to work properly
in FF1 and IE, and just when I thought everything worked nice I
discovered that in FF1.5 event handlers in the iframe are no longer
processed;

http://developer.mozilla.org/en/docs...ing_in_Mozilla

they infer that event handlers were never handled, but they were in
1.0.6...
Anyway - can anyone suggest how I can work around this, basically I
want to be able to detect when a specific span element in my iframe's
document is clicked?

Twenty million Reward Card points to the best soln. ;-)
TIA
Jim

Jan 19 '06 #1
2 2109


jd*******@gmail .com wrote:
Hi all, I busted a gut getting my design-mode iframe to work properly
in FF1 and IE, and just when I thought everything worked nice I
discovered that in FF1.5 event handlers in the iframe are no longer
processed; Anyway - can anyone suggest how I can work around this, basically I
want to be able to detect when a specific span element in my iframe's
document is clicked?


If your document containing the editable iframe wants to know when
something is clicked in the editable iframe then it can certainly set up
event listeners on the iframe document, simple example
<http://home.arcor.de/martin.honnen/javascript/2006/01/test2006011901. html>
works for me on Windows with IE 6, Mozilla 1.7, Firefox 1.5 and Opera 9
Preview.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jan 19 '06 #2

Martin Honnen wrote:
jd*******@gmail .com wrote:
Hi all, I busted a gut getting my design-mode iframe to work properly
in FF1 and IE, and just when I thought everything worked nice I
discovered that in FF1.5 event handlers in the iframe are no longer
processed;

Anyway - can anyone suggest how I can work around this, basically I
want to be able to detect when a specific span element in my iframe's
document is clicked?


If your document containing the editable iframe wants to know when
something is clicked in the editable iframe then it can certainly set up
event listeners on the iframe document, simple example
<http://home.arcor.de/martin.honnen/javascript/2006/01/test2006011901. html>
works for me on Windows with IE 6, Mozilla 1.7, Firefox 1.5 and Opera 9
Preview.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Live saver!!

Thanks very much, your example has saved me much trouble.

Thanks again
Jim

Jan 19 '06 #3

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

Similar topics

1
3060
by: Koms Bomb | last post by:
I create two iframes dynamically to get data from the server. I want to deal with the data after it's downloaded, so I set the two iframes' onload event handlers to current document(not the iframe self), the handlers' JS code is generated dynamically too. But I found only the second event is triggered and I can't get the first iframe's onload event. Why? The data in the first iframe is really arrived, but it doesn't trigger the onload...
2
7498
by: Lecture Snoddddgrass | last post by:
Hi, When I create a UserControl-derived object, I often expose various public properties. One of the things that I hate about the WinForms designer is that if I decide to embed one of these controls in a form (or another control), the designer likes to "touch" each of my custom properties -- either by trying to "set" it to a default value (null/zero) or trying to "get" it's value. This is a real PITA because often times calling "get" on...
9
5731
by: VK | last post by:
My original idea of two trains, however pictural it was, appeared to be wrong. The truth seems to be even more chaotic. IE implements its standard down-up model: any mouse event goes from the deepest visible element to the top. By carefully studying fromElement and toElement properties, one can handle events on any point of their way up. NN/FF implements a "Russian hills" style: mouse events go first up->down (window->deepest...
5
2624
by: Larry | last post by:
I'm currently using designMode in a page, and it's been working for IE6 on Windows, but I'm hearing complaints that it's not working on IE6 on Mac. I had done some research on this before deciding to use designMode and I thought I found that it would work on the Mac as well. Unfortunately, I don't have a Mac to test on, so I just thought I'd put the question out here. Should it work on Mac and perhaps I just need to get ahold of a Mac...
29
5076
by: Charles Law | last post by:
Further to my issue about user controls, I have a problem with DesignMode. Here is the project hierarchy: MainApp |_ Project1 |_ SubProject (UserControl) SubProject has a default constructor (New) which does the MyBase.New() thing and then InitializeComponent().
2
2109
by: Safalra | last post by:
Recently I've rewritten much of my old Javascript code to use DOM functions so that enhancements can be attached to documents without needing to alter the HTML code. I assumed that adding event handlers to document.body would have the same effect as adding those event handlers through attributes of the body element, but this turned out not to be the case for key events. Take this example page (IE-specific code removed): ...
9
4071
by: pvsundarram | last post by:
hey, i am trying to cancel the keydown event for certain keycodes( for eg:- enter key ).But the cancelling of this event is not happening in firefox. Is there any way to cancel the event in the iframe. CODE ===== <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en_US"
1
1490
by: VAXman- | last post by:
I have code which is created from a content mamagement system. It places some handlers on tags with in-line registration: <tag... onmousedown="mousedownHandler(this);" ...> I want to modified the handler and access the event. Here's an example of such (very contrived example): fucntion mousedownHandler(obj) {
0
8713
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9187
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9032
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7957
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6638
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5961
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3160
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2113
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.