PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > which window?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
which window?

Réponse
 
LinkBack Outils de la discussion
Vieux 05/01/2008, 19h17   #1
jekillen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut which window?

Hello;
I have a login panel that is opened as a javascript window.
In the processing script, a successful login uses the
header function to send the user to the restricted content
index page.
But this page is loading into the javascript window instead
of the opener window of the browser. Is it possible to supply
a target property to the header() function to display
content in a specific window? Or is that strictly an html/javascript
issue? I have looked into the header() function but it is unclear
to me what all can be done with headers.
Thanks in advance for suggestions, info;
Jeff K
  Réponse avec citation
Vieux 05/01/2008, 19h21   #2
Bastien Koert
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [PHP] which window?


this would be an html / js issue...

why have a popup login in this case? just show the logon in the main windowand then do the redirect...


bastien


----------------------------------------
> To: php-general@lists.php.net
> From: jekillen@prodigy.net
> Date: Sat, 5 Jan 2008 10:17:55 -0800
> Subject: [php] which window?
>
> Hello;
> I have a login panel that is opened as a javascript window.
> In the processing script, a successful login uses the
> header function to send the user to the restricted content
> index page.
> But this page is loading into the javascript window instead
> of the opener window of the browser. Is it possible to supply
> a target property to the header() function to display
> content in a specific window? Or is that strictly an html/javascript
> issue? I have looked into the header() function but it is unclear
> to me what all can be done with headers.
> Thanks in advance for suggestions, info;
> Jeff K
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


__________________________________________________ _______________
Use fowl language with Chicktionary. Click here to start playing!
http://puzzles.sympatico.msn.ca/chicktionary/index.html?icid=htmlsig
  Réponse avec citation
Vieux 06/01/2008, 00h09   #3
Casey
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] which window?

Try adding "target="_top"" or "target="_parent"" to the form element in HTML.

On 1/5/08, Bastien Koert <bastien_k@hotmail.com> wrote:
>
> this would be an html / js issue...
>
> why have a popup login in this case? just show the logon in the main window
> and then do the redirect...
>
>
> bastien
>
>
> ----------------------------------------
> > To: php-general@lists.php.net
> > From: jekillen@prodigy.net
> > Date: Sat, 5 Jan 2008 10:17:55 -0800
> > Subject: [php] which window?
> >
> > Hello;
> > I have a login panel that is opened as a javascript window.
> > In the processing script, a successful login uses the
> > header function to send the user to the restricted content
> > index page.
> > But this page is loading into the javascript window instead
> > of the opener window of the browser. Is it possible to supply
> > a target property to the header() function to display
> > content in a specific window? Or is that strictly an html/javascript
> > issue? I have looked into the header() function but it is unclear
> > to me what all can be done with headers.
> > Thanks in advance for suggestions, info;
> > Jeff K
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >

>
> __________________________________________________ _______________
> Use fowl language with Chicktionary. Click here to start playing!
> http://puzzles.sympatico.msn.ca/chicktionary/index.html?icid=htmlsig
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--
-Casey
  Réponse avec citation
Vieux 06/01/2008, 05h11   #4
jekillen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] which window?


On Jan 5, 2008, at 3:09 PM, Casey wrote:

> Try adding "target="_top"" or "target="_parent"" to the form element
> in HTML.
>
> On 1/5/08, Bastien Koert <bastien_k@hotmail.com> wrote:
>>
>> this would be an html / js issue...
>>
>> why have a popup login in this case? just show the logon in the main
>> window
>> and then do the redirect...
>>
>>
>> bastien


Thank you, the idea of a target property in the form opening tag is
new to me, but it is worth a try.
However, I redid the script to process itself instead of doing a header
redirect. Then once the
login form reloads, there is a link that has javascript do the redirect
as document.referrer.window.location = (target file);
(for anyone who could use a little useful info on javascript). That is
one of the things I love about php. The login
script can write javascript that is not present in the pre form
submission version. So someone trying by trial and
error to log in cannot look at the javascript and figure anything out
from it. Someone who can log in could see
it in the added script, but there's no point because it is visible in
the location field of the browser, then. I have
other tricks to screen access. But no one is going to get the keys to
Fort Knox on this site either. It is effectively
the same type of security that a forum would use, and the same type of
content value.
Thank you for the suggestion;
Jeff K
>>
>>
>> ----------------------------------------
>>> To: php-general@lists.php.net
>>> From: jekillen@prodigy.net
>>> Date: Sat, 5 Jan 2008 10:17:55 -0800
>>> Subject: [php] which window?
>>>
>>> Hello;
>>> I have a login panel that is opened as a javascript window.
>>> In the processing script, a successful login uses the
>>> header function to send the user to the restricted content
>>> index page.
>>> But this page is loading into the javascript window instead
>>> of the opener window of the browser. Is it possible to supply
>>> a target property to the header() function to display
>>> content in a specific window? Or is that strictly an html/javascript
>>> issue? I have looked into the header() function but it is unclear
>>> to me what all can be done with headers.
>>> Thanks in advance for suggestions, info;
>>> Jeff K
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>

>>
>> __________________________________________________ _______________
>> Use fowl language with Chicktionary. Click here to start playing!
>> http://puzzles.sympatico.msn.ca/chicktionary/index.html?icid=htmlsig
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>

>
>
> --
> -Casey
>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h35.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14992 seconds with 12 queries