* Noman <nom...@gmail.com> [Tue, 3 Aug 2010 12:04:31 +0500]:
> Thanks Dmitriy,
> i'm looking for div solution. as iframe will give scrolling if content
> are
> large. which is not required.
> now i was unable to find step by step approach to develop extension.
>
> if you have ne thing / example. i'll be waiting.
>
Maybe Extension:HTMLets will suits your needs. Otherwise, you have to 
study MediaWiki developers site:

1. Perhaps one would setup a parser xml tag hook to generate proper 
form/select/option and four corresponding div's code:
http://www.mediawiki.org/wiki/Manual:Tag_extensions

from xml tag attributes one would generate full html which is required 
to select titles and to place content of these into div's.

2. Perhaps one would use API to retrieve the pages whose title are taken 
from option.value via javascript, then place these into div.innerHTML, 
again via the Javascript:
http://www.mediawiki.org/wiki/API:Expanding_templates_and_rendering
Another possibility is to use Title and Article classes and do your own 
AJAX handler:
http://www.mediawiki.org/wiki/Manual:Ajax
http://www.mediawiki.org/wiki/Manual:Title.php
http://www.mediawiki.org/wiki/Manual:Article.php

However, that's probably a "reinventing of wheel".

Sorry for not being able to provide full example - I am not a rich guy 
and busy with projects to feed my family. Also, I am not the fastest 
coder out there.
Dmitriy

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to