Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Mediawiki in iframe and redirect problem

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


mkohan at exchange

Aug 11, 2005, 10:35 AM

Post #1 of 4 (3079 views)
Permalink
Mediawiki in iframe and redirect problem

Hi,
How could I use mediawiki with iframe, my page is like this:

<table height="500" width="500" ><tr><td>
<iframe height="500" width="500" scrolling="yes" src="http://myserverver.com:8080/mediawiki-1.4.7/index.php"></iframe>
</tr></td>
</table>

I need to set up mediawiki into another web application so, when a request comes to the page which has iframe in it the wediawiki redirects the page to original server address http://myserverver.com:8080/mediawiki-1.4.7/index.php
but I need it to be in the middle of table not redirect to the server. How could I solve the problem

Thanks,

Massoud


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] Wikimedia
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l


hashar at altern

Aug 11, 2005, 8:12 PM

Post #2 of 4 (2973 views)
Permalink
Re: Mediawiki in iframe and redirect problem [In reply to]

Kohan, Massoud wrote:
<snip>
> I need to set up mediawiki into another web application so, when a
> request comes to the page which has iframe in it the wediawiki
> redirects the page to original server address
> http://myserverver.com:8080/mediawiki-1.4.7/index.php but I need it
> to be in the middle of table not redirect to the server. How could I
> solve the problem

Hello,

Mediawiki got a javascript fragment to untrap it of frames. Have a look
in file ./skins/common/wikibits.js :

// Un-trap us from framesets
if( window.top != window ) window.top.location = window.location;

Comment it out using // in front.

--
Ashar Voultoiz - WP++++
http://en.wikipedia.org/wiki/User:Hashar
http://www.livejournal.com/community/wikitech/
IM: hashar [at] jabber ICQ: 15325080

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] Wikimedia
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l


joshua.l.bass at lmco

Aug 12, 2005, 8:55 AM

Post #3 of 4 (2972 views)
Permalink
RE: Re: Mediawiki in iframe and redirect problem [In reply to]

That did not work for me.

-----Original Message-----
From: mediawiki-l-bounces [at] Wikimedia
[mailto:mediawiki-l-bounces [at] Wikimedia] On Behalf Of Ashar Voultoiz
Sent: Thursday, August 11, 2005 10:13 PM
To: mediawiki-l [at] Wikimedia
Subject: [Mediawiki-l] Re: Mediawiki in iframe and redirect problem


Kohan, Massoud wrote:
<snip>
> I need to set up mediawiki into another web application so, when a
> request comes to the page which has iframe in it the wediawiki
> redirects the page to original server address
> http://myserverver.com:8080/mediawiki-1.4.7/index.php but I need it to

> be in the middle of table not redirect to the server. How could I
> solve the problem

Hello,

Mediawiki got a javascript fragment to untrap it of frames. Have a look
in file ./skins/common/wikibits.js :

// Un-trap us from framesets
if( window.top != window ) window.top.location = window.location;

Comment it out using // in front.

--
Ashar Voultoiz - WP++++ http://en.wikipedia.org/wiki/User:Hashar
http://www.livejournal.com/community/wikitech/
IM: hashar [at] jabber ICQ: 15325080

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] Wikimedia
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] Wikimedia
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l


mkohan at exchange

Aug 12, 2005, 9:21 AM

Post #4 of 4 (2945 views)
Permalink
RE: Re: Mediawiki in iframe and redirect problem [In reply to]

Thanks for your help. Now working fine.
M.K
-----Original Message-----
From: mediawiki-l-bounces [at] Wikimedia
[mailto:mediawiki-l-bounces [at] Wikimedia]On Behalf Of Ashar Voultoiz
Sent: August 11, 2005 8:13 PM
To: mediawiki-l [at] Wikimedia
Subject: [Mediawiki-l] Re: Mediawiki in iframe and redirect problem


Kohan, Massoud wrote:
<snip>
> I need to set up mediawiki into another web application so, when a
> request comes to the page which has iframe in it the wediawiki
> redirects the page to original server address
> http://myserverver.com:8080/mediawiki-1.4.7/index.php but I need it
> to be in the middle of table not redirect to the server. How could I
> solve the problem

Hello,

Mediawiki got a javascript fragment to untrap it of frames. Have a look
in file ./skins/common/wikibits.js :

// Un-trap us from framesets
if( window.top != window ) window.top.location = window.location;

Comment it out using // in front.

--
Ashar Voultoiz - WP++++
http://en.wikipedia.org/wiki/User:Hashar
http://www.livejournal.com/community/wikitech/
IM: hashar [at] jabber ICQ: 15325080

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] Wikimedia
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] Wikimedia
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.