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

Placing a caret on the screen

Hello all,

I'm trying to figure out how to place a blinking caret on a web page
(without a text box etc.). How do writeley and so on do it?

The only way I can figure out is to find the dom position and insert a
blinking image at the position in the dom, is this the way to do it or is
there an easier way?

tia,
Davo

Jan 7 '07 #1
3 1420
VK

Davo wrote:
Hello all,

I'm trying to figure out how to place a blinking caret on a web page
(without a text box etc.). How do writeley and so on do it?

The only way I can figure out is to find the dom position and insert a
blinking image at the position in the dom, is this the way to do it or is
there an easier way?
It depends on what are you actually doing. Is it a input="text"
emulation using <spanor <div>?

Jan 7 '07 #2
You can put the caret inside a <spantag and use JavaScript's
manipulation of CSS to alternately hide and display the <spanafter a
delay. For instance, display, wait 1 second, hide, wait 1 second.
Lather, rinse repeat.

Jan 7 '07 #3
Not really sure yet, I'm seeking opinions as to the best way to do it. What
difference does having a span or div have?

thanks,
Davo

"VK" <sc**********@yahoo.comwrote in message
news:11**********************@v33g2000cwv.googlegr oups.com...
>
Davo wrote:
Hello all,

I'm trying to figure out how to place a blinking caret on a web page
(without a text box etc.). How do writeley and so on do it?

The only way I can figure out is to find the dom position and insert a
blinking image at the position in the dom, is this the way to do it or
is
there an easier way?

It depends on what are you actually doing. Is it a input="text"
emulation using <spanor <div>?

Jan 8 '07 #4

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

Similar topics

7
by: Paul Gorodyansky | last post by:
Hi, Say I have a text in my TEXTAREA box - 01234567890 I want - using script - insert say "abc" in the middle. Works almost OK in Internet Explorer (with one problem) based on their example...
4
by: cc | last post by:
Hi, Is possible set and get the caret position of cursor in a text field ? Thanks, Carlo
6
by: kurotsuke | last post by:
Hi, I need to know the position (X, Y cohordinates) of the caret. I'm using the function: private static extern int GetCaretPos(ref POINT lpPoint); I'm actually getting a result but I...
2
by: randy | last post by:
Hi, I'm trying to set up a richtextbox to behave like the text area in a web browser, i.e. no caret, and a cursor that changes depending on what it's hovering over. I've been setting the...
0
by: Udi | last post by:
Hi, I have derived my ConsoleTextBox from RichTextBox. I'm trying to implement a console-like text box with history capabilities. My problem is that when I'm trying to append a command, I can't...
5
by: prakashwadhwani | last post by:
Hi Guys ... Sorry I'm a little off topic but didn't know on which NG to post. Just purchased a new HP laptop & was working on some Access project when I realized that certain keys when typed...
1
by: Claire | last post by:
I'm writing an application with custom skinned controls. I have a text editor form with a rich edit control. Because there's no toolbuttons in the skinned control set, I have to use normal ones for...
0
by: ridwan265 | last post by:
I am trying to make a phonetic input tool, so I want a small text label in a form to follow the caret on any other software like (Notepad or Ms Word). What I wanted to know is that even though I am...
0
Jezternz
by: Jezternz | last post by:
Okay, so a while back I managed to retrieve it correctly. In this thread: http://bytes.com/topic/javascript/answers/786211-retrieving-caret-start-end-values#post3127765 However I have found...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.