homepage Welcome to WebmasterWorld Guest from 50.16.112.199
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
AJAX in HTAs
not working
adni18

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4979 posted 3:31 am on Feb 11, 2006 (gmt 0)

Hello.

Is it possible to get HTAs to get a file (say, [google.com)...] with AJAX and alert the contents? I have tried various different examples on the net, but they appear to only work in server-hosted text/html files.

Thanks!

 

gph

10+ Year Member



 
Msg#: 4979 posted 6:56 pm on Feb 11, 2006 (gmt 0)

I've never tried AJAX so this is just a guess. Try setting the navigable [msdn.microsoft.com] attribute to "yes"

gph

10+ Year Member



 
Msg#: 4979 posted 6:59 pm on Feb 11, 2006 (gmt 0)

Oh, I didn't notice "alert the contents". I think you'd need to save the page first then read the contents.

Bernard Marx

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4979 posted 9:32 pm on Feb 11, 2006 (gmt 0)

Should be OK, adni. I have some HTAs that use the XMLHTTPRequest objects, and they work fine. Show us a little code.

Do you want synch or asynch?

- If it's asynch, and you only want the response as text, the you could go for the simple option with the long-forgotten IE default behavior, download:

[msdn.microsoft.com...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved