And yes, I did read that page. I just couldn't figure out what I could set $wgResourceModules to in order to accomplish my goal.
On Sun, Mar 16, 2014 at 10:37 AM, Justin Folvarcik jfolvarcik@gmail.comwrote:
I realized that what I said might have given the wrong impression. This is a script which will be injected into the head of the page, setting event handlers for certain kinds of tables which will turn them into a mini editing form on click. It's for inline editing, as requested by a fellow staff member of my home wiki. We use tables pretty heavily and wouldn't mind having this functionality.
On Sun, Mar 16, 2014 at 10:28 AM, Trevor Parscal tparscal@wikimedia.orgwrote:
Sorry if that was like "RTFM". If you have more specific ResourceLoader questions, please feel free to ask.
- Trevor
On Sun, Mar 16, 2014 at 7:22 AM, Trevor Parscal <tparscal@wikimedia.org
wrote:
Have you read
http://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoadery... ?
- Trevor
On Sun, Mar 16, 2014 at 6:04 AM, Justin Folvarcik <jfolvarcik@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
--
Justin Folvarcik *"When the power of love overcomes the love of power, the world will finally know peace."*-Jimi Hendrix