Advertisement
DrupalCustom

jsss

Dec 12th, 2011
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.   $("#edit-folks-list").change(function() {
  3.     var targetLangIndex = $(this).find(":selected").text();
  4.     var chunks = targetLangIndex.split("_");
  5.     var idChunk = chunks[1];
  6.    
  7.     //$.getJSON('webDelegate.php?name='+ idChunk, function(data) {
  8.     //$.getJSON('http://localhost/drupalTheme/translate/webDelegate.php?name='+idChunk, function(data) {
  9.       $.getJSON('/drupalTheme/translate/webDelegate.php?name='+idChunk, function(data) {
  10.       $.each(output, function(key, value) {  
  11.          $('#edit-targetLang-list').append($('<option>', { key : value }).text(value));});
  12.     });
  13.   });
  14. });
  15.  
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement