|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
need help with iframe
hi,
I've made a contenteditor in a iframe. My problem is that when I hit "enter" in the iframe a <p> is created and I would like to have a <br> created instead. Does anyone know how to do this? |
|
#2
|
||||
|
||||
|
Use Ctrl-Enter or was it Shift-Enter??
|
|
#3
|
|||
|
|||
|
yes I know...it's shift-enter. But is there any way to do it without the "shift"-button?
|
|
#4
|
||||
|
||||
|
It's a bit tricky and not very browser-independent. First you need a routine that monitors the keystrokes. Once the Enter key has been found, you can replace it with:
Code:
SendKeys "+{ENTER}"
I had a keyboard monitor script somewhere - I'll go and find it MK |
|
#5
|
||||
|
||||
|
Nope - can't find it which means it was probably c&*p. Maybe under the IFRAME add a label reading "To enter a single carriage return hold Shift and press Enter"
MK |
|
#6
|
||||
|
||||
|
This might be useful:
http://www.htmlgoodies.com/beyond/keycapture.html However, what happens if you REALLY want to press Enter? MK |
|
#7
|
|||
|
|||
|
mhmmm...no that script you gave me didn't work...doesn't work in an iframe...
|
|
#8
|
||||
|
||||
|
As long as it's in the SRC file for your IFRAME it should. Anyway, as I say - it's a bit of a flaky concept
MK |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > need help with iframe |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|