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 659
    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 659
    Billets dans le blog
    1
    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 659
    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 659
    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 659
    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 659
    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 659
    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 659
    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 659
    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 659
    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 659
    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 659
    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