IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JavaScript Discussion :

récupérer l'id d'un noeud d'un treeview


Sujet :

JavaScript

  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Février 2007
    Messages
    102
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 102
    Par défaut récupérer l'id d'un noeud d'un treeview
    bonjour,

    je développe actuellement une application en asp.net et j'aimerais récupéré lors d'un clic droit l'id du noeud sur lequel j'ai cliqué du treeview que je génère dynamiquement en asp.net. Je m'y connais très peu en javascript et je n'ai pas la moindre idée de la façon qu'il faut que je m'y prenne...

    Si quelqu'un pouvait me donner déjà une piste, ce serait très bien! Merci d'avance.

  2. #2
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 658
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 75
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 658
    Billets dans le blog
    1
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    onclick="alert(thid.id)"
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Février 2007
    Messages
    102
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 102
    Par défaut
    ok, mais le problème est qu'il n'existe pas d'attributs onclick sur un treeview asp.net.Et pour détecter le clic droit et déclencher le msgbox c'est :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    document.oncontextmenu=alert(this.id)
    ??

  4. #4
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 658
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 75
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 658
    Billets dans le blog
    1
    Par défaut
    iml genère quel code html ton treeview asp ?
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  5. #5
    Membre confirmé
    Profil pro
    Inscrit en
    Février 2007
    Messages
    102
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 102
    Par défaut
    en fait je viens de me rendre compte que le this.id me renvoie l'id du treeview et non du noeud sur lequel je clique!

    mais quand je reste sur un noeud, je vois en bas de la page la fonction javascript suivante :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    javascript:__doPostBack('montreeview',s-1\\IDduNoeud)
    peut-on récupérer d'une certaine manière l'id qui est dans cette fonction??

    sinon, voici ce qu'il génère comme code pour l'apparence du treeview tel que je le vois :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
          <a href="#LinksTreeView_SkipLink"><img alt="Skip Navigation Links." src="/WebResource.axd?d=mGv7fwvKxvXve9bt4ftF2Q2&amp;t=632965914957936539" width="0" height="0" style="border-width:0px;" /></a><div id="LinksTreeView" class="treeview" onmouseover="AddMenuContextuelTop('','','','../duplic_projet.aspx','Copier Projet')" onmouseout="DelMenuContextuelTop()">
    	<table cellpadding="0" cellspacing="0" style="border-width:0;">
    		<tr>
    			<td><a href="javascript:__doPostBack('LinksTreeView','tRP_Projet')"><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN1_X1tdQpfld7UCLGVVbRWw1&amp;t=632965914957936539" alt="Collapse RP_Projet" style="border-width:0;" /></a></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt0');" id="LinksTreeViewt0" style="text-decoration:none;border-style:none;">RP_Projet</a></td>
    		</tr>
    	</table><div id="LinksTreeViewn0Nodes" style="display:block;">
    		<table cellpadding="0" cellspacing="0" style="border-width:0;">
    			<tr>
     
    				<td><div style="width:20px;height:1px"></div></td><td><a href="javascript:__doPostBack('LinksTreeView','tRP_Projet\\1')"><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN7HV55fmTbPoxmH4yEXCDo81&amp;t=632965914957936539" alt="Expand fj" style="border-width:0;" /></a></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\1')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt1');" id="LinksTreeViewt1" style="text-decoration:none;border-style:none;">fj</a></td>
    			</tr>
    		</table><div id="LinksTreeViewn1Nodes" style="display:none;">
    			<table cellpadding="0" cellspacing="0" style="border-width:0;">
    				<tr>
    					<td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN2NXJxkqvX9XTykLFAyR7lY1&amp;t=632965914957936539" alt="" /></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\1\\13')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt2');" id="LinksTreeViewt2" style="text-decoration:none;border-style:none;">rjtjy</a></td>
    				</tr>
    			</table><table cellpadding="0" cellspacing="0" style="border-width:0;">
     
    				<tr>
    					<td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><a href="javascript:__doPostBack('LinksTreeView','tRP_Projet\\1\\14')"><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN7HV55fmTbPoxmH4yEXCDo81&amp;t=632965914957936539" alt="Expand projet pere 0" style="border-width:0;" /></a></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\1\\14')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt3');" id="LinksTreeViewt3" style="text-decoration:none;border-style:none;">projet pere 0</a></td>
    				</tr>
    			</table><div id="LinksTreeViewn3Nodes" style="display:none;">
    				<table cellpadding="0" cellspacing="0" style="border-width:0;">
    					<tr>
    						<td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN2NXJxkqvX9XTykLFAyR7lY1&amp;t=632965914957936539" alt="" /></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\1\\14\\23')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt4');" id="LinksTreeViewt4" style="text-decoration:none;border-style:none;">projet pere 0_2</a></td>
    					</tr>
     
    				</table>
    			</div>
    		</div><table cellpadding="0" cellspacing="0" style="border-width:0;">
    			<tr>
    				<td><div style="width:20px;height:1px"></div></td><td><a href="javascript:__doPostBack('LinksTreeView','tRP_Projet\\10')"><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN7HV55fmTbPoxmH4yEXCDo81&amp;t=632965914957936539" alt="Expand nouveau-projet" style="border-width:0;" /></a></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\10')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt5');" id="LinksTreeViewt5" style="text-decoration:none;border-style:none;">nouveau-projet</a></td>
    			</tr>
    		</table><div id="LinksTreeViewn5Nodes" style="display:none;">
    			<table cellpadding="0" cellspacing="0" style="border-width:0;">
     
    				<tr>
    					<td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN2NXJxkqvX9XTykLFAyR7lY1&amp;t=632965914957936539" alt="" /></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\10\\15')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt6');" id="LinksTreeViewt6" style="text-decoration:none;border-style:none;">projet pere 1</a></td>
    				</tr>
    			</table>
    		</div><table cellpadding="0" cellspacing="0" style="border-width:0;">
    			<tr>
    				<td><div style="width:20px;height:1px"></div></td><td><a href="javascript:__doPostBack('LinksTreeView','tRP_Projet\\16')"><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN7HV55fmTbPoxmH4yEXCDo81&amp;t=632965914957936539" alt="Expand rp_projet1" style="border-width:0;" /></a></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\16')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt7');" id="LinksTreeViewt7" style="text-decoration:none;border-style:none;">rp_projet1</a></td>
    			</tr>
     
    		</table><div id="LinksTreeViewn7Nodes" style="display:none;">
    			<table cellpadding="0" cellspacing="0" style="border-width:0;">
    				<tr>
    					<td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><a href="javascript:__doPostBack('LinksTreeView','tRP_Projet\\16\\17')"><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN7HV55fmTbPoxmH4yEXCDo81&amp;t=632965914957936539" alt="Expand kwak" style="border-width:0;" /></a></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\16\\17')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt8');" id="LinksTreeViewt8" style="text-decoration:none;border-style:none;">kwak</a></td>
    				</tr>
    			</table><div id="LinksTreeViewn8Nodes" style="display:none;">
    				<table cellpadding="0" cellspacing="0" style="border-width:0;">
    					<tr>
     
    						<td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><a href="javascript:__doPostBack('LinksTreeView','tRP_Projet\\16\\17\\18')"><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN7HV55fmTbPoxmH4yEXCDo81&amp;t=632965914957936539" alt="Expand ciney" style="border-width:0;" /></a></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\16\\17\\18')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt9');" id="LinksTreeViewt9" style="text-decoration:none;border-style:none;">ciney</a></td>
    					</tr>
    				</table><div id="LinksTreeViewn9Nodes" style="display:none;">
    					<table cellpadding="0" cellspacing="0" style="border-width:0;">
    						<tr>
    							<td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN2NXJxkqvX9XTykLFAyR7lY1&amp;t=632965914957936539" alt="" /></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\16\\17\\18\\19')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt10');" id="LinksTreeViewt10" style="text-decoration:none;border-style:none;">leffe</a></td>
    						</tr>
    					</table><table cellpadding="0" cellspacing="0" style="border-width:0;">
     
    						<tr>
    							<td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><a href="javascript:__doPostBack('LinksTreeView','tRP_Projet\\16\\17\\18\\21')"><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN7HV55fmTbPoxmH4yEXCDo81&amp;t=632965914957936539" alt="Expand hoegarden" style="border-width:0;" /></a></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\16\\17\\18\\21')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt11');" id="LinksTreeViewt11" style="text-decoration:none;border-style:none;">hoegarden</a></td>
    						</tr>
    					</table><div id="LinksTreeViewn11Nodes" style="display:none;">
    						<table cellpadding="0" cellspacing="0" style="border-width:0;">
    							<tr>
    								<td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN2NXJxkqvX9XTykLFAyR7lY1&amp;t=632965914957936539" alt="" /></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\16\\17\\18\\21\\22')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt12');" id="LinksTreeViewt12" style="text-decoration:none;border-style:none;">32export</a></td>
    							</tr>
     
    						</table>
    					</div>
    				</div>
    			</div>
    		</div><table cellpadding="0" cellspacing="0" style="border-width:0;">
    			<tr>
    				<td><div style="width:20px;height:1px"></div></td><td><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN2NXJxkqvX9XTykLFAyR7lY1&amp;t=632965914957936539" alt="" /></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\20')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt13');" id="LinksTreeViewt13" style="text-decoration:none;border-style:none;">sans sous porjet</a></td>
    			</tr>
     
    		</table><table cellpadding="0" cellspacing="0" style="border-width:0;">
    			<tr>
    				<td><div style="width:20px;height:1px"></div></td><td><a href="javascript:__doPostBack('LinksTreeView','tRP_Projet\\24')"><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN7HV55fmTbPoxmH4yEXCDo81&amp;t=632965914957936539" alt="Expand sans sous projet sans faute" style="border-width:0;" /></a></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\24')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt14');" id="LinksTreeViewt14" style="text-decoration:none;border-style:none;">sans sous projet sans faute</a></td>
    			</tr>
    		</table><div id="LinksTreeViewn14Nodes" style="display:none;">
    			<table cellpadding="0" cellspacing="0" style="border-width:0;">
    				<tr>
    					<td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN2NXJxkqvX9XTykLFAyR7lY1&amp;t=632965914957936539" alt="" /></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\24\\25')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt15');" id="LinksTreeViewt15" style="text-decoration:none;border-style:none;">dionysos</a></td>
     
    				</tr>
    			</table><table cellpadding="0" cellspacing="0" style="border-width:0;">
    				<tr>
    					<td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"></div></td><td><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN2NXJxkqvX9XTykLFAyR7lY1&amp;t=632965914957936539" alt="" /></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\24\\26')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt16');" id="LinksTreeViewt16" style="text-decoration:none;border-style:none;">hushpuppies</a></td>
    				</tr>
    			</table>
    		</div>
    	</div>
     
    </div><a id="LinksTreeView_SkipLink"></a>


    Et voici ce qu'il génère à côté pour pouvoir se générer :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    <form name="Form2" method="post" action="treeviewframevb.aspx" id="Form2">
    <div>
    <input type="hidden" name="LinksTreeView_ExpandState" id="LinksTreeView_ExpandState" value="eunununuuununnunn" />
    <input type="hidden" name="LinksTreeView_SelectedNode" id="LinksTreeView_SelectedNode" value="" />
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
    <input type="hidden" name="LinksTreeView_PopulateLog" id="LinksTreeView_PopulateLog" value="" />
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEzMjI4NzQxOTUPZBYGAgEPZBYCAgEPPCsACQIADxYGHg1OZXZlckV4cGFuZGVkZB4MU2VsZWN0ZWROb2RlZB4JTGFzdEluZGV4AhEWBB4Lb25tb3VzZW92ZXIFRkFkZE1lbnVDb250ZXh0dWVsVG9wKCcnLCcnLCcnLCcuLi9kdXBsaWNfcHJvamV0LmFzcHgnLCdDb3BpZXIgUHJvamV0JykeCm9ubW91c2VvdXQFFkRlbE1lbnVDb250ZXh0dWVsVG9wKCkIFCsAAmQUKwACFgYeEFBvcHVsYXRlT25EZW1hbmRoHghFeHBhbmRlZGceCVBvcHVsYXRlZGcUKwAGBRMwOjAsMDoxLDA6MiwwOjMsMDo0FCsAAhYGHgRUZXh0BQJmah4FVmFsdWUFATEeDFNlbGVjdEFjdGlvbgsqLlN5c3RlbS5XZWIuVUkuV2ViQ29udHJvbHMuVHJlZU5vZGVTZWxlY3RBY3Rpb24BFCsAAwUHMDowLDA6MRQrAAIWBh8IBQVyanRqeR8JBQIxMx8KCysEAWQUKwACFgYfCAUNcHJvamV0IHBlcmUgMB8JBQIxNB8KCysEARQrAAIFAzA6MBQrAAIWBh8IBQ9wcm9qZXQgcGVyZSAwXzIfCQUCMjMfCgsrBAFkFCsAAhYGHwgFDm5vdXZlYXUtcHJvamV0HwkFAjEwHwoLKwQBFCsAAgUDMDowFCsAAhYGHwgFDXByb2pldCBwZXJlIDEfCQUCMTUfCgsrBAFkFCsAAhYGHwgFCnJwX3Byb2pldDEfCQUCMTYfCgsrBAEUKwACBQMwOjAUKwACFgYfCAUEa3dhax8JBQIxNx8KCysEARQrAAIFAzA6MBQrAAIWBh8IBQVjaW5leR8JBQIxOB8KCysEARQrAAMFBzA6MCwwOjEUKwACFgYfCAUFbGVmZmUfCQUCMTkfCgsrBAFkFCsAAhYGHwgFCWhvZWdhcmRlbh8JBQIyMR8KCysEARQrAAIFAzA6MBQrAAIWBh8IBQgzMmV4cG9ydB8JBQIyMh8KCysEAWQUKwACFgYfCAUQc2FucyBzb3VzIHBvcmpldB8JBQIyMB8KCysEAWQUKwACFgYfCAUbc2FucyBzb3VzIHByb2pldCBzYW5zIGZhdXRlHwkFAjI0HwoLKwQBFCsAAwUHMDowLDA6MRQrAAIWBh8IBQhkaW9ueXNvcx8JBQIyNR8KCysEAWQUKwACFgYfCAULaHVzaHB1cHBpZXMfCQUCMjYfCgsrBAFkZAIDDw8WAh8IBQlSUF9Qcm9qZXRkZAIFDw8WAh8IBQlSUF9Qcm9qZXRkZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAQUNTGlua3NUcmVlVmlld/uL0k2T6ELCfTVRHdffxfDzqylg" />
     
    </div>
     
    <script type="text/javascript">
    <!--
    var theForm = document.forms['Form2'];
    if (!theForm) {
        theForm = document.Form2;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    // -->
    </script>
     
     
    <script src="/WebResource.axd?d=YPjBity5Qs7nd9USjjeJjg2&amp;t=632965914957936539" type="text/javascript"></script>
     
     
    <script src="/WebResource.axd?d=l46JNNYoVocjxJSpbWFjpQ2&amp;t=632965914957936539" type="text/javascript"></script>
    <script>
    <!--
        function TreeView_PopulateNodeDoCallBack(context,param) {
            WebForm_DoCallback(context.data.treeViewID,param,TreeView_ProcessNodeData,context,TreeView_ProcessNodeData,false);
        }
    // -->
    </script>

  6. #6
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 658
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 75
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 658
    Billets dans le blog
    1
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    function __doPostBack(eventTarget, eventArgument) {
      alert(eventArgument)
      if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    là il te dit quoi ?
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  7. #7
    Membre confirmé
    Profil pro
    Inscrit en
    Février 2007
    Messages
    102
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 102
    Par défaut
    Citation Envoyé par SpaceFrog
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    function __doPostBack(eventTarget, eventArgument) {
      alert(eventArgument)
      if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    là il te dit quoi ?
    bah je peux pas le rajouter puisque c'est le code html qui se génère automatiquement quand je lance mon appli...

    dsl si je suis un cas désespéré...
    en tout cas, je te remercie quand même que tu m'aides!

  8. #8
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 658
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 75
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 658
    Billets dans le blog
    1
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <a href="javascript:__doPostBack('LinksTreeView','tRP_Projet\\16\\17\\18\\21')"><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN7HV55fmTbPoxmH4yEXCDo81&amp;t=632965914957936539" alt="Expand hoegarden" style="border-width:0;" /></a></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\16\\17\\18\\21')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt11');" id="LinksTreeViewt11" style="text-decoration:none;border-style:none;">hoegarden</a>
    tout est là ...
    à part modifier les fonctions post ....
    ou rajouter une focntion qui vien tmodifier tous les hrefs ...
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  9. #9
    Membre confirmé
    Profil pro
    Inscrit en
    Février 2007
    Messages
    102
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 102
    Par défaut
    Citation Envoyé par SpaceFrog
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <a href="javascript:__doPostBack('LinksTreeView','tRP_Projet\\16\\17\\18\\21')"><img src="/WebResource.axd?d=txFqL9D4oSW--rxD9b4UN7HV55fmTbPoxmH4yEXCDo81&amp;t=632965914957936539" alt="Expand hoegarden" style="border-width:0;" /></a></td><td class="treenode" style="white-space:nowrap;"><a class="treenode" href="javascript:__doPostBack('LinksTreeView','sRP_Projet\\16\\17\\18\\21')" onclick="TreeView_SelectNode(LinksTreeView_Data, this,'LinksTreeViewt11');" id="LinksTreeViewt11" style="text-decoration:none;border-style:none;">hoegarden</a>
    tout est là ...
    à part modifier les fonctions post ....
    ou rajouter une focntion qui vien tmodifier tous les hrefs ...
    oui mais justement, peut-on récupérer le 21 par un clic droit par exemple par exemple dans le href que tu as mis en code? c'est ca que je cherche à savoir...

    Merci.

  10. #10
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 658
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 75
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 658
    Billets dans le blog
    1
    Par défaut
    dans la fonction oui ... en recupérant arguments ...
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  11. #11
    Membre confirmé
    Profil pro
    Inscrit en
    Février 2007
    Messages
    102
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 102
    Par défaut
    où puis-je avoir un tuto qui explique comment récupéré un parametre d'une fonction qui se genere automatiquement lorsqu'on lance l'appli???

  12. #12
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 658
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 75
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 658
    Billets dans le blog
    1
    Par défaut
    faut trouver la partie qui génère la fonction et la modifier ...
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

Discussions similaires

  1. Récupérer la valeur d'un noeud XML
    Par Tchupacabra dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 05/06/2008, 10h23
  2. [JTree] Récupérer l'index d'un noeud depuis son TreePath
    Par jojodu31 dans le forum Composants
    Réponses: 9
    Dernier message: 30/05/2008, 16h33
  3. [DOM] Récupérer l'id d'un noeud parent - DOM
    Par identifiant_bidon dans le forum Général JavaScript
    Réponses: 12
    Dernier message: 13/02/2008, 16h19
  4. [DOM] Récupérer le nom du premier noeud d'un fichier XML en PHP
    Par ePsymon dans le forum Bibliothèques et frameworks
    Réponses: 2
    Dernier message: 08/02/2008, 09h17
  5. Récupérer les valeurs d'un noeud dans un fichier XML
    Par yosthegost dans le forum Delphi
    Réponses: 1
    Dernier message: 30/05/2006, 17h38

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo