From: Greg Maxey on 26 Feb 2010 08:36 I am not sure if this is the correct forum or not. I use FrontPage to manage my personal website and I am one step above a novice. On several of my pages I post rather lengthy clips of VBA code. I would like to display this code in some sort of fixed sized text field where visitors could scroll to read or select and copy the text. I have found on the Insert menu a Form>Insert Text Area control that almost suit the bill if I could only figure out how "lock" it so that the content cannot be altered by visitors. Can this be done or is there a more appropriate type of control to use for my purpose. Thank you. -- Greg Maxey See my web site http://gregmaxey.mvps.org for an eclectic collection of Word Tips. Arrogance is a weed that grows mostly on a dunghill (Arabic proverb)
From: Ronx on 26 Feb 2010 10:01 Use a text-area - but why bother to lock it? If the text area is not within a form changing the contents is only going to affect the user - not your website. Users can change the code after they paste it into their applications anyway. When inserting the text area into the page remove the <form ...> and </form> tags that go with it to disable any chance of submitting the field back to the website. -- Ron Symonds Microsoft MVP (Expression Web) http://www.rxs-enterprises.org/fp Reply only to group - emails will be deleted unread. "Greg Maxey" <gmaxey(a)mIKEvICTORpAPAsIERRA.oSCARrOMEOgOLF> wrote in message news:uzMK5iutKHA.4568(a)TK2MSFTNGP05.phx.gbl... > I am not sure if this is the correct forum or not. > > I use FrontPage to manage my personal website and I am one step above a > novice. On several of my pages I post rather lengthy clips of VBA code. > I would like to display this code in some sort of fixed sized text field > where visitors could scroll to read or select and copy the text. > > I have found on the Insert menu a Form>Insert Text Area control that > almost suit the bill if I could only figure out how "lock" it so that the > content cannot be altered by visitors. Can this be done or is there a more > appropriate type of control to use for my purpose. > > Thank you. > > > > > > > -- > Greg Maxey > > See my web site http://gregmaxey.mvps.org > for an eclectic collection of Word Tips. > > Arrogance is a weed that grows mostly on a dunghill (Arabic proverb) > > >
From: Ronx on 26 Feb 2010 10:14 The text area can be made read-only: <textarea name="TextArea1" style="width: 600px; padding: 5px;" readonly="readonly" rows="10">code goes here</textarea> -- Ron Symonds Microsoft MVP (Expression Web) http://www.rxs-enterprises.org/fp Reply only to group - emails will be deleted unread. "Ronx" <ronx917(a)hotmail.com> wrote in message news:edsURSvtKHA.3360(a)TK2MSFTNGP06.phx.gbl... > Use a text-area - but why bother to lock it? > If the text area is not within a form changing the contents is only going > to affect the user - not your website. Users can change the code after > they paste it into their applications anyway. > > When inserting the text area into the page remove the <form ...> and > </form> tags that go with it to disable any chance of submitting the field > back to the website. > -- > Ron Symonds > Microsoft MVP (Expression Web) > http://www.rxs-enterprises.org/fp > > Reply only to group - emails will be deleted unread. > > > > "Greg Maxey" <gmaxey(a)mIKEvICTORpAPAsIERRA.oSCARrOMEOgOLF> wrote in message > news:uzMK5iutKHA.4568(a)TK2MSFTNGP05.phx.gbl... >> I am not sure if this is the correct forum or not. >> >> I use FrontPage to manage my personal website and I am one step above a >> novice. On several of my pages I post rather lengthy clips of VBA code. >> I would like to display this code in some sort of fixed sized text field >> where visitors could scroll to read or select and copy the text. >> >> I have found on the Insert menu a Form>Insert Text Area control that >> almost suit the bill if I could only figure out how "lock" it so that the >> content cannot be altered by visitors. Can this be done or is there a >> more appropriate type of control to use for my purpose. >> >> Thank you. >> >> >> >> >> >> >> -- >> Greg Maxey >> >> See my web site http://gregmaxey.mvps.org >> for an eclectic collection of Word Tips. >> >> Arrogance is a weed that grows mostly on a dunghill (Arabic proverb) >> >> >>
From: Greg Maxey on 26 Feb 2010 13:32 Ronx, Thanks. I will give that a try. "Ronx" <ronx917(a)hotmail.com> wrote in message news:%23RowlZvtKHA.5036(a)TK2MSFTNGP02.phx.gbl... > The text area can be made read-only: > > <textarea name="TextArea1" style="width: 600px; padding: 5px;" > readonly="readonly" rows="10">code goes here</textarea> > > > -- > Ron Symonds > Microsoft MVP (Expression Web) > http://www.rxs-enterprises.org/fp > > Reply only to group - emails will be deleted unread. > > > > "Ronx" <ronx917(a)hotmail.com> wrote in message > news:edsURSvtKHA.3360(a)TK2MSFTNGP06.phx.gbl... >> Use a text-area - but why bother to lock it? >> If the text area is not within a form changing the contents is only going >> to affect the user - not your website. Users can change the code after >> they paste it into their applications anyway. >> >> When inserting the text area into the page remove the <form ...> and >> </form> tags that go with it to disable any chance of submitting the >> field back to the website. >> -- >> Ron Symonds >> Microsoft MVP (Expression Web) >> http://www.rxs-enterprises.org/fp >> >> Reply only to group - emails will be deleted unread. >> >> >> >> "Greg Maxey" <gmaxey(a)mIKEvICTORpAPAsIERRA.oSCARrOMEOgOLF> wrote in >> message news:uzMK5iutKHA.4568(a)TK2MSFTNGP05.phx.gbl... >>> I am not sure if this is the correct forum or not. >>> >>> I use FrontPage to manage my personal website and I am one step above a >>> novice. On several of my pages I post rather lengthy clips of VBA code. >>> I would like to display this code in some sort of fixed sized text field >>> where visitors could scroll to read or select and copy the text. >>> >>> I have found on the Insert menu a Form>Insert Text Area control that >>> almost suit the bill if I could only figure out how "lock" it so that >>> the content cannot be altered by visitors. Can this be done or is there >>> a more appropriate type of control to use for my purpose. >>> >>> Thank you. >>> >>> >>> >>> >>> >>> >>> -- >>> Greg Maxey >>> >>> See my web site http://gregmaxey.mvps.org >>> for an eclectic collection of Word Tips. >>> >>> Arrogance is a weed that grows mostly on a dunghill (Arabic proverb) >>> >>> >>>
From: Greg Maxey on 26 Feb 2010 13:53 Ronx, I suppose that I can make this work, but it seems combersome to work with. Is is possible to insert the text area as you have shown but then be able to paste in text while I am in designe mode? As it is, I am putting in the text using the code view: Ronx wrote: > The text area can be made read-only: > > <textarea name="TextArea1" style="width: 600px; padding: 5px;" > readonly="readonly" rows="10">code goes here</textarea> > > > > "Ronx" <ronx917(a)hotmail.com> wrote in message > news:edsURSvtKHA.3360(a)TK2MSFTNGP06.phx.gbl... >> Use a text-area - but why bother to lock it? >> If the text area is not within a form changing the contents is only >> going to affect the user - not your website. Users can change the >> code after they paste it into their applications anyway. >> >> When inserting the text area into the page remove the <form ...> and >> </form> tags that go with it to disable any chance of submitting the >> field back to the website. >> -- >> Ron Symonds >> Microsoft MVP (Expression Web) >> http://www.rxs-enterprises.org/fp >> >> Reply only to group - emails will be deleted unread. >> >> >> >> "Greg Maxey" <gmaxey(a)mIKEvICTORpAPAsIERRA.oSCARrOMEOgOLF> wrote in >> message news:uzMK5iutKHA.4568(a)TK2MSFTNGP05.phx.gbl... >>> I am not sure if this is the correct forum or not. >>> >>> I use FrontPage to manage my personal website and I am one step >>> above a novice. On several of my pages I post rather lengthy clips >>> of VBA code. I would like to display this code in some sort of >>> fixed sized text field where visitors could scroll to read or >>> select and copy the text. I have found on the Insert menu a Form>Insert >>> Text Area control that >>> almost suit the bill if I could only figure out how "lock" it so >>> that the content cannot be altered by visitors. Can this be done or >>> is there a more appropriate type of control to use for my purpose. >>> >>> Thank you. >>> >>> >>> >>> >>> >>> >>> -- >>> Greg Maxey >>> >>> See my web site http://gregmaxey.mvps.org >>> for an eclectic collection of Word Tips. >>> >>> Arrogance is a weed that grows mostly on a dunghill (Arabic proverb)
|
Next
|
Last
Pages: 1 2 3 Prev: Firefox in Code LooK Here First Next: updating frontpage website with new software |