<div dir="ltr"><div>Chris, If I understand it correctly, this solution might work for you.<br>Every element when Views render, it adds a unique class to it, something like - &quot;views-row-1&quot; OR &quot;col-1&quot;<br>

You can pass in the &quot;event&quot; in the function called, and get the details about the div, which contained that link, via &quot;.parent&quot;<br></div>Hope this helps...<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Fri, Nov 1, 2013 at 1:14 AM, Chris Miller <span dir="ltr">&lt;<a href="mailto:cjm@tryx.org" target="_blank">cjm@tryx.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif"><div>Hi Folks,<br></div><div><br></div><div>Is there any unique identifier associated with a re-written link field in a view?<br></div><div><br></div>

<div>Context for the above question: AJAX is dead simple for links.  There are four steps:<br></div><ol><li>call hook_menu to establish two paths and the attendant callbacks &lt;path-ante&gt;/nojs/&lt;path-post&gt; and &lt;path-ante&gt;/ajax/&lt;path-post&gt;</li>

<li>re-write the path to include &quot;/nojs&quot; somewhere</li><li>tag the relevant links with &quot;class=use-ajax&quot;</li><li>include the line &quot;drupal_add_library(&#39;system&#39;, &#39;drupal.ajax&#39;);&quot; in the page.</li>

</ol><div>Here&#39;s the problem.  When I receive the AJAX post in the callback for the path &lt;path-ante&gt;/ajax/&lt;path-post&gt;, I have to respond with the new HTML and a jQuery selector to indicate the &quot;target&quot; of my AJAX updates to the DOM.  Since I don&#39;t know the DOM node that is calling me, I don&#39;t know how to tell the browser to select it.  If there were some unique identifier, then when I re-write the link I can add this to the custom css classes that also are included with the re-write.<span class="HOEnZb"><font color="#888888"><br>

</font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div><span name="x"></span>Chris.<br></div></font></span></div></div><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Vaibhav Jain
</div>