SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot zompus's Avatar
    Join Date
    May 2006
    Location
    England
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bytes in a string

    I want to get the amount of bytes in a string using javascript. The string will be data from an iFrame. I have found this (http://www.programmingtalk.com/archi...p/t-22265.html) bit of code where I can read the code, all I need to do is find out how many bytes the string of data has.

  2. #2
    SitePoint Guru
    Join Date
    Apr 2006
    Posts
    802
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The string (character) length of a text file is the same as the number of bytes it occupies.
    This is not a coincidence...
    Last edited by mrhoo; Dec 31, 2006 at 09:51.


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
  •