Have you read
http://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoaderyet?

- Trevor


On Sun, Mar 16, 2014 at 6:04 AM, Justin Folvarcik <jfolvar...@gmail.com>wrote:

> I have a couple questions about the formSpecialPage class and how it works.
> For starters, I cannot seem to make anything happen in the onSubmit
> callback, regardless of what I do. In addition, I'm also not certain how to
> return error messages upon failure to perform the action. What's more, I
> made onSubmit() just return true regardless of anything, and I still could
> not get the onSuccess() message to display.
>
> In a nutshell, I don't understand the submit process for this class, and
> would like some tips on how to make sure I'm doing everything properly.
>
> My extension I am developing is located in my github, here:
> http://github.com/Justin-Folvarcik/ContactUs
>
> Source for the class is in SpecialContactUs.php, and the js and css are
> currently unused while I work out the rest of the technical details. If I
> could possibly get some pointers about it, I'd appreciate it. I'm basically
> stuck, and don't know what to do next.
>
> One other point I'd like advice on is ResourceLoader. I know it handles
> scripts and css, and I was told that it could be used to inject my script
> into the articles for my extension (different from ContactUs, and still in
> early stages of development). It's a JS based extension, and the PHP is
> only meant to be called via AJAX calls from the JS. I'm doing the testing
> of the JS on actual user/common.js pages currently because I don't know how
> to set my script up with MediaWiki. I tried using the $wgResourceLoader but
> couldn't produce any results, and I eventually decided it would be best to
> ask here.
>
> Thanks in advance. Any help is greatly appreciated.
>
> --
> ----
> Justin Folvarcik
> *"When the power of love overcomes the love of power, the world will
> finally know peace."*-Jimi Hendrix
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to