Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3213310
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:55:48+00:00 2026-05-17T14:55:48+00:00

I am trying to get this code working — var loader; $(function() { loader

  • 0

I am trying to get this code working —

var loader;    
$(function() {    
    loader = new air.HTMLLoader();    
    loader.addEventListener(air.Event.COMPLETE, complete);    
    loader.load(new air.URLRequest('http://www.lilpirate.net/blog'));
});      
function complete() {   
    $(loader.window.document).ready(function(){
    $("#texts").val($("#header",loader.window.document).val());
    alert("Complete!");                                 
    });
}     

After compiling it using adl, the window opens and all goes as expected, but in the terminal I get the message

Error : Adobe Flash Player error: could not load cURL library

I get the Complete! alert message, but the textarea with id texts is not updated with the data in #header which is on http://www.lilpirate.net/blog

I think this is happening because of the error message adl is throwing.

I’m running Fedora 13 x64 and have installed flash player correctly(firefox test). I also have libcurl and libcurl-devel packages installed.

Help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T14:55:49+00:00Added an answer on May 17, 2026 at 2:55 pm

    You can achieve what you are trying to do (I think) without using the air HTMLLoader like this:

    $(function() {    
        $.ajax({
            url: 'http://www.lilpirate.net/blog',
            success: complete,
            dataType: 'html'
        });
    });
    function complete( html ) { 
        var header = $(html).find('#header').html();
        $('#texts').html( header );
    }     
    

    SECURITY NOTE
    I had better just say that this works because air will allow cross domain ajax requests. Air will also allow unrestricted access to the local filesystem. You need to be very carefull that you don’t include any malicious scripts using this method.
    You should definitely take steps to sanitise the response for example using dataFilter(data, type) to remove any script elements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.