The jquery actually has a click function for a.href with specified class. This can be for sure in theme but then it calls something like mycallback/admin/build, etc... which is an ajax call, so i need to get only content, not whole page.<br>
<br>So the module has a menu item, mycallback% where it takes the wildcard, gets the menu item for that (so if mycallback/admin/build will be called it will take admin/build) and calls the function from menu router item (page_callback) with arguments. Then I am just printing output of this function and exiting (standart ajax method).<br>
<br>Can't do this in theme though.<br><br>marek<br><br><br><div class="gmail_quote">On Fri, Feb 22, 2008 at 5:05 AM, Larry Garfield <<a href="mailto:larry@garfieldtech.com">larry@garfieldtech.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">What sort of jquery? You can do jquery from the theme, too. It only needs a<br>
module if it has to hook back to some Ajax/AHAH functionality.<br>
<div class="Ih2E3d"><br>
On Thursday 21 February 2008, Marek Sotak wrote:<br>
> Yea, I should do that. thanks for suggestion. :)<br>
><br>
> The modules functionality right now is just jquery interaction right now,<br>
> and the theme works without it.<br>
><br>
> Marek<br>
><br>
> On Fri, Feb 22, 2008 at 1:02 AM, Bevan Rudge <<a href="mailto:bevan@civicactions.com">bevan@civicactions.com</a>> wrote:<br>
> > I suggest you create an issue node and/or write a patch for drupal 7<br>
> > that allows themes to have module dependencies, and possibly allows<br>
> > modules to be installed from themes directories<br>
> ><br>
> > For drupal < 7, wrap any module-dependent code in if<br>
> > (module_exists('MODULENAME')).<br>
> ><br>
> > Bevan/<br>
> > _______________________________________________<br>
> > themes mailing list<br>
> > <a href="mailto:themes@drupal.org">themes@drupal.org</a><br>
> > <a href="http://lists.drupal.org/mailman/listinfo/themes" target="_blank">http://lists.drupal.org/mailman/listinfo/themes</a><br>
<br>
<br>
--<br>
</div>Larry Garfield AIM: LOLG42<br>
<a href="mailto:larry@garfieldtech.com">larry@garfieldtech.com</a> ICQ: 6817012<br>
<br>
"If nature has made any one thing less susceptible than all others of<br>
exclusive property, it is the action of the thinking power called an idea,<br>
which an individual may exclusively possess as long as he keeps it to<br>
himself; but the moment it is divulged, it forces itself into the possession<br>
of every one, and the receiver cannot dispossess himself of it." -- Thomas<br>
Jefferson<br>
<div><div></div><div class="Wj3C7c">_______________________________________________<br>
themes mailing list<br>
<a href="mailto:themes@drupal.org">themes@drupal.org</a><br>
<a href="http://lists.drupal.org/mailman/listinfo/themes" target="_blank">http://lists.drupal.org/mailman/listinfo/themes</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>__________________________________ ____ ___ __ _ .. .. .<br> Give a man a fish, and you'll feed him for a day. Teach a man to fish, and he'll buy a funny hat. Talk to a hungry man about fish, and you're a consultant.<br>
- Scott Adams<br><br><a href="http://sotak.co.uk">http://sotak.co.uk</a>