IIS ASP - Non editable text box

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > April 2005 > Non editable text box





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Non editable text box
laura

2005-04-19, 8:01 am

Can anyone help me to decide the best way to do this please.

I'm writing an intranet and I need to put something like a non-editable
scrolling text box on the home page where daily announcements can be placed.
I've tried adding a scrolling text box, but I am not sure how to make it
non-editable. Is there any way I can fill the textbox using something like
textstream? I would imagine one person in the organisation would be in
charge of adding this text somehow. I'm a bit lost in trying to find the
best method.

Thanks
Laura TD


Evertjan.

2005-04-19, 8:01 am

laura wrote on 19 apr 2005 in microsoft.public.inetserver.asp.general:
> I'm writing an intranet and I need to put something like a
> non-editable scrolling text box on the home page where daily
> announcements can be placed. I've tried adding a scrolling text box,
> but I am not sure how to make it non-editable. Is there any way I can
> fill the textbox using something like textstream? I would imagine one
> person in the organisation would be in charge of adding this text
> somehow. I'm a bit lost in trying to find the best method.


This is not a n serverside asp question, asp has no textboxes,
so please follow up on a clientside code NG.

I think you want HTML:

<iframe src='...' style='width:500px;height:500px;'></iframe>


--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

laura

2005-04-19, 8:01 am

Thanks for your input, I am working in ASP and thinking that I might find
that the object TextStream might do what I need to do, but not sure how to
put this on my ASP/HTML page. I was looking for ASP suggestions, if
possible... I would be most grateful.

Laura TD


"Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message
news:Xns963D710DCCA32eejj99@194.109.133.29...
> laura wrote on 19 apr 2005 in microsoft.public.inetserver.asp.general:
>
> This is not a n serverside asp question, asp has no textboxes,
> so please follow up on a clientside code NG.
>
> I think you want HTML:
>
> <iframe src='...' style='width:500px;height:500px;'></iframe>
>
>
> --
> Evertjan.
> The Netherlands.
> (Replace all crosses with dots in my emailaddress)
>



Roland Hall

2005-04-19, 8:01 am

"laura" <replyto@group.com> wrote in message
news:%23YUDIHMRFHA.1096@tk2msftngp13.phx.gbl...
: Thanks for your input, I am working in ASP and thinking that I might find
: that the object TextStream might do what I need to do, but not sure how to
: put this on my ASP/HTML page. I was looking for ASP suggestions, if
: possible... I would be most grateful.

Nope. ASP can send output to the client but the client determines how it's
rendered based on client-side code.

Ex.

Response.Write "some text..."

ASP sent it to the client and the client displayed: some text...

If you then want the background-color to be light blue, you can do this:

Response.Write "<span style=""background-color: #eef"">some text...</span>"

Response.Write sent the string to the client but the browser rendered the
client-side inline CSS style and changed the background-color between the
<span></span> tags to light blue. As far as ASP is concerned it sent this:
xxxxxxxxxxxxxxxxxxxxx.

Textstream is used with the file system object to read/write to text files.
It's probably not what you're looking for.
If you have standardized on IE, then this will work.
http://kiddanger.com/lab/marquee1.html

If not, then you'll need to follow up in a javascript/dhtml NG.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


laura

2005-04-19, 8:01 am

Thanks, I don't want scrolling text so will have to rethink this. I could
allow the person in charge of the Notices to update a text file from which I
could then use TextStream to output this to the web page. It doesn't seem
very slick though. An uneditable scrolling text box on the HTML page would
be ideal, if it were possible.

Thanks for your help
Laura TD


"Roland Hall" <nobody@nowhere> wrote in message
news:uB1GtkMRFHA.1172@TK2MSFTNGP12.phx.gbl...
> "laura" <replyto@group.com> wrote in message
> news:%23YUDIHMRFHA.1096@tk2msftngp13.phx.gbl...
> : Thanks for your input, I am working in ASP and thinking that I might
> find
> : that the object TextStream might do what I need to do, but not sure how
> to
> : put this on my ASP/HTML page. I was looking for ASP suggestions, if
> : possible... I would be most grateful.
>
> Nope. ASP can send output to the client but the client determines how
> it's
> rendered based on client-side code.
>
> Ex.
>
> Response.Write "some text..."
>
> ASP sent it to the client and the client displayed: some text...
>
> If you then want the background-color to be light blue, you can do this:
>
> Response.Write "<span style=""background-color: #eef"">some
> text...</span>"
>
> Response.Write sent the string to the client but the browser rendered the
> client-side inline CSS style and changed the background-color between the
> <span></span> tags to light blue. As far as ASP is concerned it sent
> this:
> xxxxxxxxxxxxxxxxxxxxx.
>
> Textstream is used with the file system object to read/write to text
> files.
> It's probably not what you're looking for.
> If you have standardized on IE, then this will work.
> http://kiddanger.com/lab/marquee1.html
>
> If not, then you'll need to follow up in a javascript/dhtml NG.
>
> --
> Roland Hall
> /* This information is distributed in the hope that it will be useful, but
> without any warranty; without even the implied warranty of merchantability
> or fitness for a particular purpose. */
> technet Script Center - http://www.microsoft.com/technet/scriptcenter/
> WSH 5.6 Documentation -
> http://msdn.microsoft.com/downloads/list/webdev.asp
> MSDN Library - http://msdn.microsoft.com/library/default.asp
>
>



Roland Hall

2005-04-19, 8:01 am

"laura" <replyto@group.com> wrote in message
news:O0$ac9MRFHA.244@TK2MSFTNGP12.phx.gbl...
: Thanks, I don't want scrolling text so will have to rethink this. I could
: allow the person in charge of the Notices to update a text file from which
I
: could then use TextStream to output this to the web page. It doesn't seem
: very slick though. An uneditable scrolling text box on the HTML page would
: be ideal, if it were possible.

Laura...

A marquee is a non-editable scrolling text box. If you're referring to
scrollable, then that's on-demand scrolling with scrollbars.

That would be something like this:
http://kiddanger.com/lab/fsoscrollable.asp

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


laura

2005-04-19, 8:01 am

oops.. sorry.. I meant that I did not want the marquee effect of 'scrolling'
text.. my mistake. I do want my users to be able to scroll up and down, (not
sideways) in a scrollable text box (with scrollbar). I want to feed the box
with non-editable data, probably from a text file or some other way that is
easy for one person to update on a daily basis. I had thought of them
creating a text file and then the ASP textstream reading it into the text
box.

Laura


"Roland Hall" <nobody@nowhere> wrote in message
news:ezUlBXNRFHA.2664@TK2MSFTNGP15.phx.gbl...
> "laura" <replyto@group.com> wrote in message
> news:O0$ac9MRFHA.244@TK2MSFTNGP12.phx.gbl...
> : Thanks, I don't want scrolling text so will have to rethink this. I
> could
> : allow the person in charge of the Notices to update a text file from
> which
> I
> : could then use TextStream to output this to the web page. It doesn't
> seem
> : very slick though. An uneditable scrolling text box on the HTML page
> would
> : be ideal, if it were possible.
>
> Laura...
>
> A marquee is a non-editable scrolling text box. If you're referring to
> scrollable, then that's on-demand scrolling with scrollbars.
>
> That would be something like this:
> http://kiddanger.com/lab/fsoscrollable.asp
>
> --
> Roland Hall
> /* This information is distributed in the hope that it will be useful, but
> without any warranty; without even the implied warranty of merchantability
> or fitness for a particular purpose. */
> technet Script Center - http://www.microsoft.com/technet/scriptcenter/
> WSH 5.6 Documentation -
> http://msdn.microsoft.com/downloads/list/webdev.asp
> MSDN Library - http://msdn.microsoft.com/library/default.asp
>
>



Bob Barrows [MVP]

2005-04-19, 8:01 am

laura wrote:
> oops.. sorry.. I meant that I did not want the marquee effect of
> 'scrolling' text.. my mistake. I do want my users to be able to
> scroll up and down, (not sideways) in a scrollable text box (with
> scrollbar). I want to feed the box with non-editable data, probably
> from a text file or some other way that is easy for one person to
> update on a daily basis. I had thought of them creating a text file
> and then the ASP textstream reading it into the text box.
>


So what do you need help with? Opening the text file with a textstream
object? Do a search at www.aspfaq.com for examples. Search for
FileSystemObject.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Jeff Cochran

2005-04-19, 8:01 am

On Tue, 19 Apr 2005 13:28:51 +0100, "laura" <replyto@group.com> wrote:

>oops.. sorry.. I meant that I did not want the marquee effect of 'scrolling'
>text.. my mistake. I do want my users to be able to scroll up and down, (not
>sideways) in a scrollable text box (with scrollbar). I want to feed the box
>with non-editable data, probably from a text file or some other way that is
>easy for one person to update on a daily basis. I had thought of them
>creating a text file and then the ASP textstream reading it into the text
>box.


I think you still want an iframe. See:

http://www.htmlcodetutorial.com/frames/_IFRAME.html
http://www.codeave.com/html/code.asp?u_log=5048
http://www.cs.tut.fi/~jkorpela/html/iframe.html

By the way, it's the first three links when Googling "HTML iframe".
And it's still client side code.

Jeff


>"Roland Hall" <nobody@nowhere> wrote in message
>news:ezUlBXNRFHA.2664@TK2MSFTNGP15.phx.gbl...
>


laura

2005-04-19, 6:06 pm

Thank you everyone for help with this - I am in the middle of trying to work
out various other things in ASP at the same time and am getting a little
punch-drunk. I think that I am going to be able to use either DIV or the
example at http://kiddanger.com/lab/fsoscrollable.asp after all. It seems to
be just what I want, just have to learn how to modify it and import the text
I need. Once again thanks and sorry for being slightly dim.. it's all new to
me and can get confusing.

Laura TD



"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
news:ufVT$3NRFHA.2604@TK2MSFTNGP10.phx.gbl...
> laura wrote:
>
> So what do you need help with? Opening the text file with a textstream
> object? Do a search at www.aspfaq.com for examples. Search for
> FileSystemObject.
>
> Bob Barrows
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>



dlbjr

2005-04-19, 6:06 pm

Laura,

Use this little guy

http://www.pikeus.freeserve.co.uk/a...scrollitup.html

'dlbjr
'Pleading sagacious indoctrination!


Roland Hall

2005-04-19, 6:06 pm

"dlbjr" <oops@iforgot.com> wrote in message
news:uCgf5RSRFHA.2356@TK2MSFTNGP14.phx.gbl...
: Laura,
:
: Use this little guy
:
: http://www.pikeus.freeserve.co.uk/a...scrollitup.html

She wanted scrollable, not scrolling. She didn't understand there was a
difference.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


Roland Hall

2005-04-19, 6:06 pm

"laura" wrote in message news:eRDkzgORFHA.1476@TK2MSFTNGP09.phx.gbl...
: Thank you everyone for help with this - I am in the middle of trying to
work
: out various other things in ASP at the same time and am getting a little
: punch-drunk. I think that I am going to be able to use either DIV or the
: example at http://kiddanger.com/lab/fsoscrollable.asp after all. It seems
to
: be just what I want, just have to learn how to modify it and import the
text
: I need. Once again thanks and sorry for being slightly dim.. it's all new
to
: me and can get confusing.

Laura...

All of this was new to each of us at one time and some things are still new,
except to Bob, but he's quite old. (O:=

Just start a new thread for new questions and someone will help you. If you
need to make modifications to my example, just ask for the help you need and
again, someone will be able to help you. If you didn't notice the "view
source" on my example, it's at the bottom left.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


laura

2005-04-19, 8:47 pm

well... I did understand the difference.. just a poor choice of words..
sorry.... and thanks again.

Laura


"Roland Hall" <nobody@nowhere> wrote in message
news:eYz8UqSRFHA.3944@TK2MSFTNGP10.phx.gbl...
> "dlbjr" <oops@iforgot.com> wrote in message
> news:uCgf5RSRFHA.2356@TK2MSFTNGP14.phx.gbl...
> : Laura,
> :
> : Use this little guy
> :
> : http://www.pikeus.freeserve.co.uk/a...scrollitup.html
>
> She wanted scrollable, not scrolling. She didn't understand there was a
> difference.
>
> --
> Roland Hall
> /* This information is distributed in the hope that it will be useful, but
> without any warranty; without even the implied warranty of merchantability
> or fitness for a particular purpose. */
> technet Script Center - http://www.microsoft.com/technet/scriptcenter/
> WSH 5.6 Documentation -
> http://msdn.microsoft.com/downloads/list/webdev.asp
> MSDN Library - http://msdn.microsoft.com/library/default.asp
>
>



laura

2005-04-19, 8:47 pm

Thanks for the encouraging words.. learning alone is hard work. I did notice
the "view source" and made a note - that is one reason I said a great big
thanks.

Laura


> All of this was new to each of us at one time and some things are still
> new,
> except to Bob, but he's quite old. (O:=
>
> Just start a new thread for new questions and someone will help you. If
> you
> need to make modifications to my example, just ask for the help you need
> and
> again, someone will be able to help you. If you didn't notice the "view
> source" on my example, it's at the bottom left.
>
> --
> Roland Hall
> /* This information is distributed in the hope that it will be useful, but
> without any warranty; without even the implied warranty of merchantability
> or fitness for a particular purpose. */
> technet Script Center - http://www.microsoft.com/technet/scriptcenter/
> WSH 5.6 Documentation -
> http://msdn.microsoft.com/downloads/list/webdev.asp
> MSDN Library - http://msdn.microsoft.com/library/default.asp
>
>



Roland Hall

2005-04-20, 2:59 am

"laura" wrote in message news:O7WWwFURFHA.204@TK2MSFTNGP15.phx.gbl...
: Thanks for the encouraging words.. learning alone is hard work. I did
notice
: the "view source" and made a note - that is one reason I said a great big
: thanks.

Ok, I wasn't sure. Yes, learning alone is tough. As luck would have it,
people are more open to helping today than they were when I started back
when dinosaurs roamed the Earth.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


Roland Hall

2005-04-20, 2:59 am

"laura" <replyto@group.com> wrote in message
news:eVtfTEURFHA.1236@TK2MSFTNGP14.phx.gbl...
: well... I did understand the difference.. just a poor choice of words..
: sorry.... and thanks again.

No problem. My mistake.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com