ajaxed 0.3 released

By | December 18, 2007

i have updated ajaxed (classic asp ajax library) to its 0.3 version. Thanks to all contributors who helped me with their feedback. Here are the updates…

  • working with prototype 1.6 now
  • working with JSON utility class 1.4
  • loading indicator stays now always on top of the screen. before it used to disappear if page scroll was not at the top
  • loading indicator has no styles by default anymore.. you have to be define them by yourself in your css file. definine the css class ‘ajaxLoadingIndicator’ and choose your custom style
  • more test have been added (also for recordsets)
  • added AJAXED_DBCONNECTION to the config.asp => you can open the DB connection automatically now for each page by default
  • renamed demo/index.asp to demo/default.asp because iis default installation has this already set

upgrading to the new version should be no problem if you did not change the source files of the previous version. The only thing you need to change is to add styles for the loading indicator. This helps us that everyone has its own indicator style ;)

enjoy it download ajaxed 0.3. Please post you comments about the new version within this topic.

17 comments on “ajaxed 0.3 released

  1. Thanks for your continue efforts now i found no reason to jump to .NET at least until host provider no longer supported classic asp scripting on their server.

  2. John Azmy on said:

    Thanks alot ,,,
    i need to reload a div or refresh an html table ?! anyhelp?

  3. Hi

    Can’t get the demo to work, i get this error:
    ajaxed is not defined
    default.asp line 1

    i’m no js expert, and when i look at default.asp line 1, there’s no js,
    obviously as it’s being dynamically written, and i can’t find why it’s giving
    that error.

    any help would be great as i’d love to try this ;)

    Shem

  4. shem which browser do you use? can you check the sourcecode and see if ajaxed.js file is being loaded?

  5. Hi

    I’m using FF (latest version)
    yes when using firebug, and i expand the link to prototype and ajaxed.js
    i see that the file is not found.

    currently it poibts like so:
    /ajaxed/class_ajaxedPage/ajaxed.js

    I need it to do this:
    ../class_ajaxedPage/ajaxed.js

    where do i change the pointing of these two file?

    Shem

  6. shem i see the problem .. you need to put the /ajaxed folder into your webroot. so directly into the folder where the IIS is pointing to

  7. I just modified:
    componentLocation = lib.init(AJAXED_LOCATION, “/ajaxed/”)

    To:
    componentLocation = lib.init(AJAXED_LOCATION, “../”)

    and it’s working now ;)

    Quick question, I want to use your framework in conjunction with my framework(small little framework) basically i want to use your framework to make serverside calls to functions, thats what really grabbed me about your framework.

    My framework already handles my querys and stores my results in the
    asp dictionary object, which lies in a vbscript class, 4 seperate functions that handle that process.

    so is it possible to use your work to handle only onclick calls and postbacks?

    Shem

  8. shem, good that it works now … as for your other question: its not really easy just to use the server-side calls seperately … try to integrate your framework into mine .. that should be possible ;)

  9. 夏政红 on said:

    Thank you very much !

  10. I can’t seem to get my database examples working

    can anyone help ?

    1. <!--#include virtual="ajaxed/ajaxed.asp"-->
    2.  
    3.  
    4.         function loaded(recs) {
    5.             for (i = 0; i &lt;recs.length; i++) {
    6.                 $('container').innerHTML += recs[i].column + "";
    7.             }
    8.         }
    9.  
    10.  
    11.  
    12.         load
  11. try again….

    1. <!--#include virtual="ajaxed/ajaxed.asp"-->
    2. &lt;%
    3.  
    4.  
    5. Dim strSQL
    6. strSQL = "SELECT title from employees"
    7.  
    8. set p = new AjaxedPage
    9. p.DBConnection = true
    10. p.draw()
    11. sub init() : end sub
    12. sub callback(action)
    13.     if action = "load" then
    14.         p.return(db.getRecordset(strSQL))
    15.     end if
    16. end sub
    17. sub main()
    18. &gt;%
    19.  
    20.         function loaded(recs) {
    21.             for (i = 0; i &lt;recs.length; i++) {
    22.                 $('container').innerHTML += recs[i].column + "";
    23.             }
    24.         }
    25.  
    26.  
    27.  
    28.         load
    29.  
    30.  
    31. &lt;%
    32. end sub
    33. &gt;%
  12. one more time…..

    1. <!--#include virtual="ajaxed/ajaxed.asp"-->
    2. &lt;%
    3.  
    4.  
    5. Dim strSQL
    6. strSQL = "SELECT title from employees"
    7.  
    8. set p = new AjaxedPage
    9. p.DBConnection = true
    10. p.draw()
    11. sub init() : end sub
    12. sub callback(action)
    13.     if action = "load" then
    14.         p.return(db.getRecordset(strSQL))
    15.     end if
    16. end sub
    17. sub main()
    18. &gt;%
    19.     &lt;script&gt;
    20.         function loaded(recs) {
    21.             for (i = 0; i &lt;recs.length; i++) {
    22.                 $('container').innerHTML += recs[i].column + "&lt;br&gt;";
    23.             }
    24.         }
    25.     &lt;/script&gt;
    26.     &lt;form id="frm"&gt;
    27.         &lt;div id="container"&gt;&lt;/div&gt;
    28.         &lt;button onclick="ajaxed.callback('load', loaded)" type="button"&gt;load&lt;/button&gt;
    29.     &lt;/form&gt;
    30.  
    31. &lt;%
    32. end sub
    33. &gt;%
  13. JP what error do u get?

  14. it returns “undefined” for each record instead of actual value.

    The db connection string is correct — I tested with non-ajax code

  15. JP you need to replace “column” by the name of your table column. in your case its “title” i guess… remember that the columnnames are all lowercase.

    javascript
    < view plain text >
    1. //instead of...
    2. $('container').innerHTML += recs[i].column + "<br>";
    3. //this...
    4. $('container').innerHTML += recs[i].title + "<br>";
  16. thanks,

    is there a manual somewhere that I can download ?

  17. JP there is documentation of the library if you go to /ajaxed/index.html on your server … you can also post questions in an own discussion group which can be found here http://groups.google.com/group/asp-ajaxed
    have fun!

Leave a Reply

*

* Copy This Password *

* Type Or Paste Password Here *

135,345 Spam Comments Blocked so far by Spam Free Wordpress