SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Evangelist GeekSupport's Avatar
    Join Date
    May 2002
    Location
    Southern California
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JavaScript and Netscape

    How do i get \r to work in netscape 7 (if possible)?

    My error boxes shows something like this

    Error: Missing Elements
    - Title
    - Description

    In netscape, it is shown like this:
    Error: Missing Elements- Title- Description

  2. #2
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: JavaScript and Netscape

    Originally posted by GeekSupport
    How do i get \r to work in netscape 7 (if possible)?
    maybe this will show my lack of advanced javascript knowledge, but...what do you mean by \r ? in what context ? any examples of code that breaks under NS7 ?
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  3. #3
    SitePoint Evangelist GeekSupport's Avatar
    Join Date
    May 2002
    Location
    Southern California
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <A HREF="#" onClick="alert('Missing:\rEnd Date')">End Date</a>
    it shows a return (crlf) in the popup message box

  4. #4
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ah, thought so. haven't got NS7 installed (and i'm not planning on installing that b*stard program on my home machine), but...have you tried using \n instead ?
    Code:
    <A HREF="#" onClick="alert('Missing:\nEnd Date')">End Date</a>
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  5. #5
    SitePoint Evangelist GeekSupport's Avatar
    Join Date
    May 2002
    Location
    Southern California
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, that did the trick
    Last edited by GeekSupport; Dec 21, 2002 at 20:10.


Bookmarks

Posting Permissions

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