Boa noite.
A minha dúvida não é com relação ao abrir ou o fechar das páginas mas sim com o retorno das variáveis javascript.
Na janela pai, chamo a filha através do comando window.open. então a janela filha é chamada e passo um valor de ID como variavel.
window.open(janela_filha.php?ID=<? echo $show->ID; ?>, filha, width=780,height=260,status=no,scrollbars=no,top=10,left=10)
Na janela filha eu consigo receber o valor ID, faço a consulta no banco de dados e mostro num formulário para edição. Depois de editado, eu preciso fechar a janela filha e redirecionar a janela pai para outro lugar passando dois valor no endereço.
Para fechar, estou usando:
<script language="javascript">
window.opener.location = "http://localhost/sis..._pai.php?wid=<? echo $pega_id; ?>";
// onde <? echo $pega_id; ?> é um valor que estou recebendo do formulário php
self.close();
</script>
Isso funciona mas, quando eu tento passar mais um valor não passa. Estou tentando fazer assim:
<script language="javascript">
window.opener.location = "http://localhost/sis..._pai.php?wid=<? echo $pega_id; ?>&wnome=<? echo $pega_nome; ?>";
// onde <? echo $pega_nome; ?> é outro valor que estou recebendo do formulário php
self.close();
</script>
Aqui não passa o valor wnome para a janela pai...
O que estou fazendo errado?
Abraço
Janela Filha Fechando E Direcionando Janela Pai Para Outra Página
Started By rafaelcastro, 04/01/2009, 00:53
7 replies to this topic
#2
Posted 04/01/2009, 03:09
E a variável $pega_nome tem alguma coisa? Tente passar só essa variável, sem a $pega_id.
Fórum WMO - Equipe de Desenvolvimento / Banco de Dados - Ex-Administrador
#3
Posted 04/01/2009, 08:13
Olá...
A variável $pega_nome tem valor sim mas não passa pra página pai. Na página filha ela recebe um valor corretamente mas não devolve pra página pai?
Por que?
O textfield da página pai chama-se wnome e estou devolvendo da página filha assim:
<script language="javascript">
window.opener.location = "http://localhost/sis...ai.php?wnome=<? echo $pega_nome; ?>";
self.close();
</script>
Abraço
A variável $pega_nome tem valor sim mas não passa pra página pai. Na página filha ela recebe um valor corretamente mas não devolve pra página pai?
Por que?
O textfield da página pai chama-se wnome e estou devolvendo da página filha assim:
<script language="javascript">
window.opener.location = "http://localhost/sis...ai.php?wnome=<? echo $pega_nome; ?>";
self.close();
</script>
Abraço
#4
Posted 15/09/2017, 16:12
Order Propecia Online From Canada viagra cialis Propecia Prodotti Galenici Priligy Erfaringer Keflex Drug Information buy cialis Cialis Et Viagra
Donde Puedo Comprar Cialis cialis Prezzi Viagra
How Can I Get Some Acyclovir glucophage
Generic On Line Levaquin Cod Accepted <a href=http://cialtobuy.com>cialis</a> Donde Comprar Viagra Femenino
Donde Puedo Comprar Cialis cialis Prezzi Viagra
How Can I Get Some Acyclovir glucophage
Generic On Line Levaquin Cod Accepted <a href=http://cialtobuy.com>cialis</a> Donde Comprar Viagra Femenino
#5
Posted 04/10/2017, 11:07
Does Amoxil Cure Strep Throat mail order levitra 90 day supply Buy Prescription Viagra Online Securemed Drugstore Usa
Indian Viagra Dangers Buy Now Legally Tab Doryx Free Shipping Store viagra online prescription Generic Viagra Fast Delivery Does Cephalexin Contain Penicillin
Indian Viagra Dangers Buy Now Legally Tab Doryx Free Shipping Store viagra online prescription Generic Viagra Fast Delivery Does Cephalexin Contain Penicillin
#6
Posted 16/10/2017, 02:10
Comment Prendre Priligy Buy Generic Propecia 20 Mg viagra Cialis Viagra Otros
Comprar Cialis Uso Diario levitra samples Discount Free Shipping Cheapeast Isotretinoin Worldwide Amex Wann Fangt Cialis An Zu Wirken
Levitra Da Sciogliere In Bocca Propecia En Espana Farmacia Online Zithromax For Sale Uk viagra Generic Viagra No Prescription
Comprar Cialis Uso Diario levitra samples Discount Free Shipping Cheapeast Isotretinoin Worldwide Amex Wann Fangt Cialis An Zu Wirken
Levitra Da Sciogliere In Bocca Propecia En Espana Farmacia Online Zithromax For Sale Uk viagra Generic Viagra No Prescription
#7
Posted 01/11/2017, 02:03
Achat Kamagra Voir Le Profil Zithromax Antibiotic viagra cialis Closest Thing To Levitra Acheter Du Tadalis Sx En Pharmacie
Acquisto Paypal Viagra Buy Kamagra Pay With Paypal viagra prescription Cialis Generico Donne
Priligy Ne Fonctionne Pas viagra cialis Acheter Clomid En Ligne Territoires Du Nord Ouest
Acquisto Paypal Viagra Buy Kamagra Pay With Paypal viagra prescription Cialis Generico Donne
Priligy Ne Fonctionne Pas viagra cialis Acheter Clomid En Ligne Territoires Du Nord Ouest
#8
Posted 01/11/2017, 03:15
Discounts! beauty products best Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). READ MORE BEWELL Citizen 2035 Movement Men Quartz Watch-23.37 $Sterling Silver Purple Rose Ring ( 65.00 $)Villem Darri â Game of ThronesLuminaire led modern crystal pendant lamp for living room lustre de cristal lustres de sala lamparas colgantes ( 110.98 $)Gold Plated Womens Ring ( 91.20 $)MeHome MC1 Gesture Photograph Mini 1080P Full HD 156 Degree Wide Angle 2.1MP Car DVR-84.38 $фитнес боди скраб горячий антицелMafam d2016 dual flashlight fm magical voice change 13800mah mp3mp4 power bank antenn analog tv rugged mobile phone cell p242 ( 33.00 $)Peruvian Virgin Hair Natural Wave 4 Bundles Wet and Wavy Hair Peruvian Curly Weave Human Hair 7A Unprocessed Remy Hair Bundles ( 87.90 $)X077 free shipping cute hand washed pot philharmonic filter cup coffee chemex brooch pins fashion jewelry ( 0.89 $)Elephone M2 4G Phablet-217.94 $Dots and Flower Print Silk Ascot ( 52.00 $)Hot sale 55l 3d outdoor sport military tactical climbing mountaineering backpack camping hiking trekking rucksack travel bag ( 23.26 $)Stainless Steel and Carbon Fiber Signature Mens Cufflinks ( 109.00 $)New fashion jewelry two layer leather rhinestone choker necklace gift for women girl N1858 ( 0.94 $)
Discounts! product award
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).
READ MORE
Kamilla Klodel (film)
Ti pobezhdaesh ili umiraesh
Acacia black grey breathable soft bicycle safety reflective elastic waist pants spring autumn men cycling long pants 02997 ( 41.98 $)
кеддо детская обувь официальный сайт интернет магазин
CooYoo Quantum CY 130LM Cree XP G2 10180 Rechargeable Mini LED Flashlight 27.99$
сайт резиновая обувь
шоп 24 интернет
2016 new kerui wirelesswired andorid ios app remote control anti-pet open door remind gsm home villadom alarm system+smart plug ( 118.74 $)
Pair of chic faux fur edge embellished short knitted fingerless gloves for women ( 2.41 $)
Saturnino69 Black Burnished Mens Ring ( 101.40 $)
New modern k9 crystal pendant lights chrome butterfly home decoration bedroom caboche living room light fixture 110-240v d500mm ( 140.20 $)
Black panther masks movie fantastic four cosplay men's latex party mask for halloween ( 16.77 $)
Papaya 1 Light Blue Murano Glass Earrings ( 45.00 $)
Dzhavadi, Ramin
Party bow and two-piece design pumps for women ( 50.76 $)
Discounts! product award
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).
READ MORE
Kamilla Klodel (film)
Ti pobezhdaesh ili umiraesh
Acacia black grey breathable soft bicycle safety reflective elastic waist pants spring autumn men cycling long pants 02997 ( 41.98 $)
кеддо детская обувь официальный сайт интернет магазин
CooYoo Quantum CY 130LM Cree XP G2 10180 Rechargeable Mini LED Flashlight 27.99$
сайт резиновая обувь
шоп 24 интернет
2016 new kerui wirelesswired andorid ios app remote control anti-pet open door remind gsm home villadom alarm system+smart plug ( 118.74 $)
Pair of chic faux fur edge embellished short knitted fingerless gloves for women ( 2.41 $)
Saturnino69 Black Burnished Mens Ring ( 101.40 $)
New modern k9 crystal pendant lights chrome butterfly home decoration bedroom caboche living room light fixture 110-240v d500mm ( 140.20 $)
Black panther masks movie fantastic four cosplay men's latex party mask for halloween ( 16.77 $)
Papaya 1 Light Blue Murano Glass Earrings ( 45.00 $)
Dzhavadi, Ramin
Party bow and two-piece design pumps for women ( 50.76 $)
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)