Hi,

On Fri, 2006-08-25 at 01:06 -0400, Bull, John wrote:
> I have been using Mason for the past  4 - 5 years and have really
> enjoyed working with it.  Thanks for all your hard work.
>  
> I am now working on a project that will utilize Mason + AJAX.  I have

Take also a look at Jifty (jifty.perl.org), it uses Mason and comes
directly with Ajax out of the box... plus a few more interesting
features...

>  the prototype library installed on my development box and am trying
> to use the Ajax component that John Williams wrote.  I downloaded the
> code for Component:ajax and called it ajax.comp and put it in a test
> directory.  Then I created a basic test file right from the doc
> section of the component.
>  
> My environment is:
> Mason 1.33, Fedora Core 2, Apache 1.3.33, mod_perl 1.29
>  
> Here is my example:
>  
> <script language=javascript src="prototype.js"></script>
> <form name="ajaxForm">
> Test Text: <input type=text name=test><br>
> <input type=button value="Click Me!"
> onclick="<& ajax.comp, comp => 'SELF:my_ajax_test' &>">
> </form>


Are you sure the path to the component is correct?

> <p>
> <div id=target style="border: thin black solid;">
> nothing yet
> </div>
>  
> <%method my_ajax_test>
> <%attr>
> ajax      => 1
> update    => 'target'
> throbber  => 0
> form      => 'ajaxForm'
> </%attr>
> % sleep 2; # let the throbber throb
> Hi there!  It works. <br>
> test param = <% $ARGS{test} %>
> </%method>
> <%init>
> </%init>
>  
> When I post the page my webserver produces the following error.
>  
> "The requested URL /ajax/ajax.comp [main]/ajax/index.html
> [main]:my_ajax_test was not found on this server."
>  
> What am I missing?  Do I need to setup the "Component:Ajax" different
> than other normal components on my system?
>  
> I appreciate your help.
>  
> Thanks,
> John 
>  

Regards,

Florian
>  
> ---
> John W. Bull
> Blue Ink Software, Inc.
> 2040 Saint Clair Avenue
> St. Paul, MN 55105
> Phone:  (952) 224-9100
> Email:  [EMAIL PROTECTED]
> Web:  www.blueinksoftware.com
>  
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________ Mason-users mailing list 
> Mason-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/mason-users


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to