views:

44

answers:

1

I am looking for a way to show a random nvarchar field from a SQL Server 2008 database in my Visual Studio 2008 ASP.NET web project.

but there is one condition:

I want the text to look like you are typing it in a command prompt.

Is marquee my solution?

Can you show me an example of binding from database & command prompt typing?

A: 

Take a look at this jTypewriter (a jQuery plugin), I think this is what you are looking for.

Lazarus
the example #1 (upper Link) is exactly that i want (with command prompt sign)but how can i read data from db with jquery?(i am new in jquery)
LostLord
Two ways: Firstly read the data in your server-side code and inject it into the page as it's sent to the client. Secondly, create an AJAX end point in your server-side code that returns your random string, then use JQuery to periodically call the AJAX end point and then inject the returned string into your jTypewriter elements.
Lazarus
thanks a lot...
LostLord
can u tell me how can i use jTypewriter (a jQuery plugin) to getting a SINGLE Line Just Like Marquee in Horizontal mode?
LostLord
@LostLord Are you looking for the text to be constrained within a single line and for the beginning of the text to scroll off the left hand side of the area?
Lazarus
this is exactly that i want
LostLord
I think you'll need to approach the developer behind jTypewriter to see if that's possible. I don't believe it is by default. The difficulty is not knowing how wide the text will be and whether characters need to be removed from the head of the displayed string.
Lazarus