Index: ajaxloader.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ajaxLoader/ajaxloader.module,v
retrieving revision 1.7
diff -u -r1.7 ajaxloader.module
--- ajaxloader.module	25 Apr 2007 20:28:19 -0000	1.7
+++ ajaxloader.module	5 Jun 2007 19:05:36 -0000
@@ -75,11 +75,20 @@
  * fetches the view and returns formated views
  */
 function ajaxloader_get_view() {
-  $name = $_GET['view'];
-  $args = array();
-  $_GET['uid'] ? $args['uid'] = $_GET['uid'] : null;
-  // probably should build a more intelligent way to do this, eh?
-  $_GET['uid'] ? $args[] = $_GET['uid'] : null;
+  if (!empty($_GET['view'])) {
+    // support older style ?view=myview style links
+    $name = $_GET['view'];
+    $args = array();
+    $_GET['uid'] ? $args['uid'] = $_GET['uid'] : null;
+    $_GET['uid'] ? $args[] = $_GET['uid'] : null;
+  }
+  else {
+    // Allow for paths like /ajaxloader/view/my_view/arg_1/arg_2
+    $path = explode('/', $_GET['q']);
+    $args = array_slice($path, 2);
+    $name = array_shift($args);  
+  }
+  
   $view = views_get_view($name);
   $output = theme("ajaxloader_node_list", views_build_view('embed', $view, $args, $view->use_pager, $view->nodes_per_page));
   // search for the pager links and add a class to them
