Client Side VBScript and ASP

Results 1 to 2 of 2

Thread: Client Side VBScript and ASP

  1. #1
    WebRookie Guest

    Default Client Side VBScript and ASP

    Ok, I require some assistance here. All I want to do is make my life easier by enlisting the use of the space() function. This is a VBScript function that I cannot seem to implement correctly in my code. I&#039ve tried many ways, well here&#039s my code, evaluate for yourself:<BR><BR>&#060;script language = vbscript&#062;<BR>dim mystring<BR>mystring = "Date" & space(5) & "Player" & space(20) & "Clan" & <BR>space(20) & "Website"<BR>&#060;% response.write %&#062; (mystring)<BR>&#060;/script&#062;<BR><BR>Does that code make sense. I just want to format a line that will be displayed on the screen accordingly without having to use a &#060;pre&#062; tag and the spacebar. Is there another way to go about this, or am I on the right track?? Please help...thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Client Side VBScript and ASP

    Since HTML ignored whitespace, 20 spaces won&#039t do anything. You have to use the HTML escape sequence:<BR><BR>&nbsp;<BR><BR>to product a hard, non-breaking space. For example, this HTML will have five spaces in it:<BR><BR>&#060;HTML&#062;<BR>&#060;BODY&#062;<BR >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Five spaces to the left...<BR><BR>There are not five spaces to the left here!<BR>&#060;/BODY&#062;<BR>&#060;/HTML&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts