SitePoint Sponsor |
|
User Tag List
Results 1 to 10 of 10
Thread: re-focus window on blur
-
Sep 25, 2001, 09:07 #1
re-focus window on blur
I have a Page with a textarea that should no go into the background (->blur).
I tried to do this with
<body OnBlur="self.focus()">
...
<form ...>
<textarea name=...></textarea>
...
When ever I try to write something, nothing happens!
For some reasons, the only way to insert text is to copy some text from somewhere else, and then paste it not by Ctrl+V, but by "rightclick" -> "Paste".
The only way to remove text from the textarea is to do this by:
"rightclick" -> "Delete" || "Cut"
The Page that should not close is opened by an onClick-Event on another page, which contains a Form as well.
My Problem is, that this original form should not be submitted, before the newly opend form is closed or submitted (it closes itself after it's submitted)
Any Help with my original Idea or suggestions how to solve the problem?
Footbag: Spread the Spirit
-
Sep 25, 2001, 09:26 #2
-
Sep 25, 2001, 09:45 #3
Sorry, but this is not what I need.
I really have to to open a completely new page in a seperate window (this page has to receive some data and will perform some additional php/mysql-action),
so this ie-feature will hardly help me.
Any other suggestions?Footbag: Spread the Spirit
-
Sep 25, 2001, 10:09 #4
-
Sep 25, 2001, 10:10 #5
-
Sep 25, 2001, 10:16 #6
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
The code you gave does not insure that the page is always focused on.
-
Sep 25, 2001, 10:19 #7
- Join Date
- Jun 2001
- Location
- rollin' on dubs
- Posts
- 492
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
yeah, its more of a pseudo code as I don't know how it will be used. I tried to make it obvious with the parameters. Jeremy, do you have any experince with these? I develop only for IE and they work great.
By the way, it does ensure that the window is always focused on because it has modal properties. Once this thing launches, you can't do anything until you close the window. It is different from a popup.
-
Sep 25, 2001, 10:20 #8
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
www.studiococo.com/custom.asp?window.asp generates the above code perfectly for all browsers.
Problem is it still doesn't handle the initial problem of keeping the top window focused until the user is "done".
To be honest, this problem has me thinking...
-
Sep 25, 2001, 10:36 #9
- Join Date
- Jun 2001
- Location
- rollin' on dubs
- Posts
- 492
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
here is a nice reference to what I am referring to:
http://www.webreference.com/js/tutorial1/dialog.html
-
Sep 27, 2001, 06:28 #10
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
I stand corrected
Well done makeda. It should again be noted that it IS an IE specific solution and it won't work in any other browser
Bookmarks