MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
A2Hosting
Moderators: Moderators
Forum RSS feedReply
iframe in addon page
AuthorText
eros23
Junior Member

Posts: 77
Contributes: 68

Gender: _NEUTRAL_
Online: No
Date: 16/01/2009 17:25
iframe in addon page
#post17295
sto cercando di inserire un iframe chiamando solo una funzione. Ricordo che sto rispettando questa struttura:

code

openTable();
switch ($op) {

    case "ricerca_accessori":
        ricerca_accessori();
        break;
...
}
closeTable();

ricerca_accessori() {
...
 


richiamando come dicevo una funzione, all'itenrno dell'iframe ricompare tutta la struttura del sito..
come posso fare a far escludere l'header e il footer in modo da caricare solo una funzione richiamata da iframe?
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7243
Contributes: 4800

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 16/01/2009 18:09
Re: iframe in addon page
#post17296
non hai bisogno di tutto quel codice

basta
code
openTable();
?>
<iframe....>
<?php
closeTable();
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
eros23
Junior Member

Posts: 77
Contributes: 68

Gender: _NEUTRAL_
Online: No
Date: 16/01/2009 18:23
Re: iframe in addon page
#post17298
no aspe mi sono capito male...sono in un file con tante funzioni. nel mio frame viene chiamata una funzione in questo modo:
code

<iframe src="index.php?page=market&op=upload_file&codice=1232123802&nickname=admin" frameborder="0"></iframe>

unico problema e che carica l'intera pagina...nella funzione ho provato a scirveri solo echo "prova"; ma sempre l'intera pagina visualizza...
Attachment: Senza-titolo-2.jpg
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7243
Contributes: 4800

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 16/01/2009 19:25
Re: iframe in addon page
#post17304
Ovviamente richiamando index.php (a prescindere da addon e funzioni) caricherà l'intera pagina (header, footer e template intero), non puoi fare una cosa del genere. Devi creare un nuovo file php da includere che stampa solo il codice che vuoi. Per pulizia metti il file nella stessa cartella dell'addon.
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
JorgeCosta
Junior Member

Posts: 44
Contributes: 1

Gender: _NEUTRAL_
Online: No
Date: 01/08/2009 14:32
Re: iframe in addon page
#post21598
in the virtual pages is possible to get iframes work?

if not how i put google maps in a file

thanks
Delete Edit Quote
 
Reply
Tags Cloud
Twitter updates...
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.179.231

Username
Password
MemHT Wiki
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo