Đã Đóng

Drupal jquery/javascript code for views

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();

$('.newthing').eq(myindex).show();

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

xhr = $.ajax({

url: toLoad,

success: function(data) {

$(target).html($(data));

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

}

});

}

else

{

$('.hiddenrows').eq(myindex).hide();

$('.newthing').eq(myindex).hide();

}

return false;

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

Kỹ năng: AJAX, CSS, Drupal, Javascript, PHP

Xem thêm: html code javascript, get right code, find javascript, find code, jquery node, jquery end, val , nid, jquery script, jquery javascript, javascript jquery, drupal view, views ajax, ajax block drupal, drupal ajax views, javascript url example, jquery html sort, html javascript example, drupal ajax block, javascript url php, jquery ajax show hide, javascript etc, html data original, drupal block ajax, ajax hide show

Về Bên Thuê:
( 0 nhận xét ) London, United Kingdom

Mã Dự Án: #1668707

4 freelancer đang chào giá trung bình $63 cho công việc này

Ruzannah

Hi, interested.

$100 USD trong 2 ngày
(50 Đánh Giá)
6.3
tonypdesign

I am an expert php programming and drupal developer. Lets begin this project today.

$50 USD trong 1 ngày
(7 Đánh Giá)
3.9
Mubbshirkazmi

Hi, Ready To fix This issue,

$70 USD trong 1 ngày
(4 Đánh Giá)
2.3
panchalnikul24

hello sir i can complete your task in some hours.

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0