<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 - "views-row-1" OR "col-1"<br>
You can pass in the "event" in the function called, and get the details about the div, which contained that link, via ".parent"<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"><<a href="mailto:cjm@tryx.org" target="_blank">cjm@tryx.org</a>></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 <path-ante>/nojs/<path-post> and <path-ante>/ajax/<path-post></li>
<li>re-write the path to include "/nojs" somewhere</li><li>tag the relevant links with "class=use-ajax"</li><li>include the line "drupal_add_library('system', 'drupal.ajax');" in the page.</li>
</ol><div>Here's the problem. When I receive the AJAX post in the callback for the path <path-ante>/ajax/<path-post>, I have to respond with the new HTML and a jQuery selector to indicate the "target" of my AJAX updates to the DOM. Since I don't know the DOM node that is calling me, I don'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>