Drupal jquery/javascript code for views

This project received 4 bids from talented freelancers with an average bid price of $63 USD.

Get free quotes for a project like this
Project Budget
$30 - $250 USD
Total Bids
Project Description

I've been working on a javascript/jquery code problem in Drupal for weeks and would like to find someone who can step in and sort out the problem. I have created a list of nodes in a view. Each node has a click which loads a new view via ajax. In turn each node in the new view has a click which loads a new view, etc, etc. So we end up with a lot of nested views. I want each new view loaded into a block to the right of the clicked node. Though the jquery/javascript works fine in the original view, I'm having problems with the javascript behaviour and css of the nested views.

Here is an example of the script I am using at the moment;

[url removed, login to view] = function (context) {

$('.morelink:not(.togg-processed)', context).addClass('togg-processed').each(function () {

var myindex = $('.morelink').index($(this));

var target = $('.newthing').eq(myindex)

var nid = $(".mynid").eq(myindex).val();

$(this).click(function() {

if (($('.hiddenrows').eq(myindex).is(":hidden")))

{ $('.hiddenrows').eq(myindex).show();


var toLoad = [url removed, login to view] + 'replies/' + nid;

xhr = $.ajax({

url: toLoad,

success: function(data) {


[url removed, login to view](context);









return false;

I could use someone to step in and help get me over the hump.

Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online