really simple ajax.
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 3 of 3

Thread: really simple ajax.

  1. #1
    Join Date
    Jul 2006

    really simple ajax question, unreloved

    I need to get a string from the web (a file, in this case html, but I need other strings too so don't just tell me how to load the html directly to a frame) and load it into a javascript var. I just cannot figure this out. This is my current attempt can anyone guid me in the right direction?
    Last edited by tim.thelion; July 3rd, 2006 at 05:17 PM. Reason: clerified the title

  2. #2
    Join Date
    Oct 2008

    Re: really simple ajax.

    There is no simple way to do this as AJAX requires the file you are pulling to be well formed... that's the XML part, if your HTML page has any broken or improperly nested tags the whole file itself wouldn't pull down effectively... what I would do is garb the file and search for the string in the file, then write a new file that has well formed HTML in it with the string you are looking to pull into your site with AJAX, then pull that file in.

    Hope this helps,

    Larry Darrah
    MS Architect Evangelist

  3. #3
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002

    Re: really simple ajax.

    Welcome to the forums, tattooedscorpdc.

    Please try to keep your posts relevant. This thread is already 3 years old.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center