Ask a Question related to ASP Database, Design and Development.

  1. #21

    Default Re: asp

    My Code:

    function GetWebPage(url) {
    var retry, error,xmlhttp,numretrys=3;
    for (retry=numretrys; retry; retry--) {
    try {
    xmlhttp = Server.CreateObject("Microsoft.XMLHTTP");
    xmlhttp.Open("GET",url,false);
    xmlhttp.Send();
    break;
    } catch (e) { error = e; }
    }
    if (!retry) throw new error(error.number,error.description);
    return xmlhttp.responseText;
    }

    You can change 'Server.CreateObject' to 'new ActiveXObject' and use it in .hmtl files, too.


    "YT" <ytNOSPAM@MAPSONfunkychickens.org> wrote in message news:%23c3pVVYoEHA.2948@TK2MSFTNGP11.phx.gbl...
    > greetings,
    >
    > what i am looking for is a way for my asp script to grab a web page via an
    > http session and save the results to a string variable. ie. somewhere in the
    > script, the code loads a com object or something or rather, builds a request
    > URL, goes to the internet, downloads the result and parses out the returned
    > text - not just display the result.
    >
    > are there any com objects out there (built-in or otherwise) that does that,
    > or do i have to build my own?
    >
    > any suggestions?
    >
    > regards,
    > yt
    >
    >
    >
    Vic Sowers Guest

  2. #22

    Default asp

    Can anyone tell me if there is a limit to how many .asp pages you can have on one site please.:confused;

    Thanks in advance
    Barbwire:)
    Barbwire1 Guest

  3. #23

    Default Re: asp

    There's no limit

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004


    Julian Roberts Guest

  4. #24

    Default Re: asp

    There would be no limit on the number of files, but you will have a space
    limit, in Gigs or Megabytes...so your limit will be on the total size of all
    your files.

    Originally posted by: Barbwire1
    Can anyone tell me if there is a limit to how many .asp pages you can have on
    one site please.:confused;

    Thanks in advance
    Barbwire:)



    CarlGrint Guest

  5. #25

    Default asp

    guys i have been looking for asp api reference all over this website for what
    i could find this website does not give a damn to asp i could find anything
    if any of you have please point me the direction
    noahh Guest

  6. #26

    Default asp

    where can i find asp api references??
    noahh Guest

  7. #27

    Default Re: asp

    noahh wrote on Thu, 31 Jul 2008 13:37:00 -0700:
    > guys i have been looking for asp api reference all over this website
    > for what i could find this website does not give a damn to asp i could
    > find anything if any of you have please point me the direction
    Did you even bother trying Google? And ASP is a language platform, not an
    API, so you won't find an "api reference". Here are a couple of places to
    start

    [url]http://msdn.microsoft.com/en-us/library/ms524796.aspx[/url]

    [url]http://www.w3schools.com/asp/default.asp[/url]


    --
    Dan


    Daniel Crichton Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139