Alpha Video Training
Results 1 to 13 of 13

Thread: AjaxFormLibrary.js MIA

  1. #1
    Member ColinJD's Avatar
    Real Name
    Colin Davies
    Join Date
    Jun 2006
    Location
    NZ
    Posts
    481

    Default AjaxFormLibrary.js MIA

    I've been lead to believe that the AJAX Form Library is "screeded on demand by the WAS. Which makes me guess its in some compiled form.
    But so why oh why has this error become apparent today in my log ?

    [Wed Feb 18 20:44:12 2009] [Not Found] The requested URL /javascript/AjaxFormLibrary.js was not found on this server.

    Any and all clues welcome.

  2. #2
    "Certified" Alphaholic NoeticCC's Avatar
    Real Name
    Andrea Gill
    Join Date
    Nov 2007
    Location
    Golcar, West Yorkshire, UK
    Posts
    2,069

    Default Re: AjaxFormLibrary.js MIA

    Hm... the folder is called JavaScript, not javascript, maybe that is it?

  3. #3
    Member ColinJD's Avatar
    Real Name
    Colin Davies
    Join Date
    Jun 2006
    Location
    NZ
    Posts
    481

    Default Re: AjaxFormLibrary.js MIA

    Note Jerry Brightbill's post in this thread
    http://msgboard.alphasoftware.com/al...FormLibrary.js

    There is no physical AjaxFormLibrary.js file in any Alpha Five folder. It is supplied by the server only when it is requested on the page. The same is true for the other 2 files as well. If you have a copy of AjaxFormLibrary.js in any Alpha Five folder, it is from a very old build and is out of date and no longer used.

  4. #4
    "Certified" Alphaholic NoeticCC's Avatar
    Real Name
    Andrea Gill
    Join Date
    Nov 2007
    Location
    Golcar, West Yorkshire, UK
    Posts
    2,069

    Default Re: AjaxFormLibrary.js MIA

    Quote Originally Posted by ColinJD View Post
    Note Jerry Brightbill's post in this thread
    http://msgboard.alphasoftware.com/al...FormLibrary.js
    Yes but I would still imagine if you called a Javascript file in the wrong folder (Javascript is case sensitive for example, at least in most browsers), the WAS might not be able to produce the dynamic copy. Either that or javascript is not an allowed file type in your project.

  5. #5
    Member ColinJD's Avatar
    Real Name
    Colin Davies
    Join Date
    Jun 2006
    Location
    NZ
    Posts
    481

    Default Re: AjaxFormLibrary.js MIA

    I wish that was the answer Andrea,
    Have tried a variety of spellings of Javascript || javascript etc to no joy,
    Also I originally copied and pasted these lines from the v9 samples. Have checked them and they show know consistency in what is used, either being javascript || Javascript .
    Coincidentally all the samples produce the same error now.
    -
    Maybe a fresh install of the WAS is called for. [shrug shoulders]

  6. #6
    "Certified" Alphaholic NoeticCC's Avatar
    Real Name
    Andrea Gill
    Join Date
    Nov 2007
    Location
    Golcar, West Yorkshire, UK
    Posts
    2,069

    Default Re: AjaxFormLibrary.js MIA

    Have you tried this?

    Either that or javascript is not an allowed file type in your project.

  7. #7
    Former Alpha Employee JerryBrightbill's Avatar
    Real Name
    Jerry Brightbill
    Join Date
    Apr 2000
    Posts
    5,171

    Default Re: AjaxFormLibrary.js MIA

    There normally is no physical file with that name in any folder on the server. When a request comes to the server with a request for "/javascript/AjaxFormLibrary.js" (not case sensitive), the server creates the file content from memory and sends that copy to the client in the response. It does not create a local copy. In some cases, the local client may report it has cached the file, and the server will not send a copy.

    If you are getting an error, clear the cache in the browser. In some cases, the browser may report a file is cached when it no longer exists on the client computer. Clearing the cache will force the server to recreate and sent the file. If a problem persists, check the build of the server. This feature was introduced as a running change in Version 9 and early builds behave differently.

  8. #8
    Member
    Real Name
    Olga
    Join Date
    Jun 2008
    Posts
    94

    Default Re: AjaxFormLibrary.js MIA

    Hi Colin,

    If the issue is still not resolved, may be this post can help: http://msgboard.alphasoftware.com/al...ad.php?t=76162

    (just use another editor, i.e. notepad, since A5 built-in editor sometimes corrupts files)

    Hope it can help,
    Olga

  9. #9
    Member ColinJD's Avatar
    Real Name
    Colin Davies
    Join Date
    Jun 2006
    Location
    NZ
    Posts
    481

    Default Re: AjaxFormLibrary.js MIA

    Jerry
    I'm running "Build 1980_3163"
    -
    Have tried dumping the caches/history, on clients
    Its occuring on both LAN and WAN, on different PCs and both IE and Firefox
    -
    As soon as any javascript line starting A5_AJAX is encountered the browser's report the error and the error log reports a 404 error.
    All the other included javascripts from the directory are returned with a code 304.
    I'm out of guesses

  10. #10
    Member ColinJD's Avatar
    Real Name
    Colin Davies
    Join Date
    Jun 2006
    Location
    NZ
    Posts
    481

    Default Re: AjaxFormLibrary.js MIA

    Hi Olga,
    Agreed the standard A5 editor does throw up some curve balls.
    I must find a new editor that integrates or return to the time proven edlin.
    (any recommendations for a better editor, one that syntax colors, HTML, A5, and js? (& CSS would be nice ))
    I have started copying and pasting in and out of notepad, and shuffling the lines around.
    The trouble is its on all my Ajax pages,
    Even the daft test ones.
    eg
    Code:
    <html>
    <head>
    <meta name="generator" content="Alpha Five HTML Editor Version 9 Build 2005-3252">
    <title>Test</title>
    
    <%A5 Response.charset = "ISO-8859-1" %>
    
    <script type="text/javascript" src="javascript/core.js"></script>
    <script type="text/javascript" src="javascript/AjaxFormLibrary.js"></script>
    <script type="text/javascript" src="javascript/aui.js"></script>
    
    <script type="text/javascript" language="javascript">
    
    a5_AJAX_Callback('Test.AJAX.A5W','action=action&varz='+urlencode(3));
    </script>
    
    </head>
    <body>
    <p>TEST PAGE</p>
    </body></html>
    whether Test.AJAX.A5w exists or not, I can't see why my server could legitimitly give an error?

  11. #11
    Former Alpha Employee JerryBrightbill's Avatar
    Real Name
    Jerry Brightbill
    Join Date
    Apr 2000
    Posts
    5,171

    Default Re: AjaxFormLibrary.js MIA

    Quote Originally Posted by ColinJD View Post
    Jerry
    I'm running "Build 1980_3163"
    Build 1980-3163 is the last released build for Alpha Five Version 8. Version 8 does not support AJAX. Therefore the JavaScript file does not exist, and you get the 404 error.

    If you want to run any AJAX, you need Version 9

  12. #12
    Member ColinJD's Avatar
    Real Name
    Colin Davies
    Join Date
    Jun 2006
    Location
    NZ
    Posts
    481

    Default Re: AjaxFormLibrary.js MIA

    Ah, thank you Jerry !
    Now the penny drops.

  13. #13
    "Certified" Alphaholic
    Real Name
    Mike Christensen
    Join Date
    Nov 2005
    Location
    Michigan U.P.
    Posts
    5,937

    Default Re: AjaxFormLibrary.js MIA

    Colin,
    (any recommendations for a better editor, one that syntax colors, HTML, A5, and js? (& CSS would be nice ))
    Check out the Code Archive forum and search for "editor". I believe there is a tool there you may want---also Steve Wood has a different editor on his website alphatogo.com I believe.
    Mike
    __________________________________________
    It is only when we forget all our learning that we begin to know.
    It's not what you look at that matters, it's what you see.
    Henry David Thoreau
    __________________________________________




Similar Threads

  1. QuickBooks Sales Order Field MIA
    By Jay Talbott in forum Alpha Five Version 8
    Replies: 2
    Last Post: 03-31-2008, 02:40 PM
  2. New Import Operation MIA???
    By Mortie in forum Alpha Five Version 5
    Replies: 4
    Last Post: 12-26-2002, 12:52 PM

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
  •