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

change keycode on editable iframe

1
Hi
is this possible to change keycode for an editable iframe
let say if user press a = keycode 97 it should display on editor b (keycode =98)

regards
for IE I have working code like
maineditor.event.keyCode = NewCode(maineditor.event.keyCode);

but it is not working in chrome or FF
Feb 21 '11 #1
1 1783
acoder
16,027 Expert Mod 8TB
Get the value entered, stop the default (browser inconsistencies here), and then set the value to the changed character at the cursor position.

Note: I've not tested, but I would imagine it should work
Feb 23 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: PA | last post by:
Hi, Can anyone tell me how to capture events of iframes like keypress. I have an editable iframe. When I hit <enter> it actually prints <p> instead of <br>. (innerHTML) Does anyone know how...
2
by: Francisco | last post by:
Hello, I'm creating my WYSIWYG html web editor. but now I want to know witch image is selected. I try the selection.createRange().htmlText but it returns me null. I see that when i have an image...
1
by: toddaa | last post by:
I have an editable Iframe control that I am using to allow users to input formated text into a database for later viewing. One feature I am toying with is the ability to vertically align their...
3
by: synergy_711 | last post by:
I feel like this should be fairly easy but I have been struggling with this for sometime. I have not been able to find someone who's had the same problem as mine yet. ...
1
by: vytas | last post by:
Hello, I'm using editable iFrame to allow users to edit html templates. Since some parts of the template should be "read-only", I'd like to know is it possible to lock part of iFrame content for...
2
by: sahista | last post by:
Hello. I create an iframe on the fly, set it to editable designMode='on' and insert into iframe.contentWindow.childNodes.childNodes some innerHTML. Ok... that all works fine in IE but in...
1
by: omar999 | last post by:
i have 2 select dropdowns and I'm trying to make an iframe src change according to the selected hotel dropdown. at the moment when you select a city the corresponding hotels are loaded up via...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.