Une aide pour une ame en peine de javascript?
Résolu
underscape
Messages postés
57
Date d'inscription
Statut
Membre
Dernière intervention
-
underscape Messages postés 57 Date d'inscription Statut Membre Dernière intervention -
underscape Messages postés 57 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
j'ai un soucis avec un bout de javascript.
J'ai un formulaire qui envoi des données et j'aimerai que le résultat s'affiche dans une iframe.
mais a chaque fois s'affiche dans mon iframe erreur 404: not found.... :(
donc j'ai oublié quelque chose... mais quoi?
Si quelqu'un a une idée ca m'aiderai bien :)
function StartUpload(MaVar)
{
if(MaVar.popup.checked)
{
win1 = 'MonIframe.location.href=(MaVar.action.split('/MonDossier/MaPage.php')[0]+'resultat.php?id='+UID,'win1')';
win1.window.focus();
}
return true;
}
j'ai un soucis avec un bout de javascript.
J'ai un formulaire qui envoi des données et j'aimerai que le résultat s'affiche dans une iframe.
mais a chaque fois s'affiche dans mon iframe erreur 404: not found.... :(
donc j'ai oublié quelque chose... mais quoi?
Si quelqu'un a une idée ca m'aiderai bien :)
function StartUpload(MaVar)
{
if(MaVar.popup.checked)
{
win1 = 'MonIframe.location.href=(MaVar.action.split('/MonDossier/MaPage.php')[0]+'resultat.php?id='+UID,'win1')';
win1.window.focus();
}
return true;
}
A voir également:
- Une aide pour une ame en peine de javascript?
- Telecharger javascript - Télécharger - Langages
- Afficher un tableau javascript en html ✓ - Forum Javascript
- A javascript error occurred in the main process - Forum Windows
- A javaScript error occurred in the main process - Forum Handicap / Accessibilté
- Ame digital fra pay - Forum Consommation & Internet
2 réponses
Personne pour de l'aide ..... snif
Bon j'ai modifier mon code et j'ai reussi a faire en sorte que ca envoie dans mon iframe mais a chaque fois j'ai erreur 404.
Quand je regarde dans firebug j'ai comme requete :
http://monsite/win1
au lieu de :
http://monsite//MonDossier/Ma Page.php?resultat.php?id=UnCodeAleatoire
function StartUpload(MaVar)
{
if(MaVar.popup.checked)
{
win1 = document.getElementById('MonIframe').contentDocument.location.href=(MaVar.action.split('/MonDossier/Ma Page.php')[0]+'resultat.php?id='+UID,'MaVar');
win1 = document.getElementById('MonIframe').focus();
}
return true;
}
Bon j'ai modifier mon code et j'ai reussi a faire en sorte que ca envoie dans mon iframe mais a chaque fois j'ai erreur 404.
Quand je regarde dans firebug j'ai comme requete :
http://monsite/win1
au lieu de :
http://monsite//MonDossier/Ma Page.php?resultat.php?id=UnCodeAleatoire
function StartUpload(MaVar)
{
if(MaVar.popup.checked)
{
win1 = document.getElementById('MonIframe').contentDocument.location.href=(MaVar.action.split('/MonDossier/Ma Page.php')[0]+'resultat.php?id='+UID,'MaVar');
win1 = document.getElementById('MonIframe').focus();
}
return true;
}