Hello,
I am hosting a local community association's webpage.  A key part of
the site is their event calendar plugin, which is unfortunately now
pretty broken due to a necessary WordPress upgrade. (I apologize for
the verbosity).

I am not a j-coder, but muddled around with the script enough and used
some existing mailinglist and the jquery manual to clean up most of
it, but now I am stuck.

I don't know why the orignator of the code felt it necessary to state
jQuery before ever function and argument instead of the seemingly more
popular/correct "$" but here is the snippet that's causing firebug to
bork on:
<snip>
225 jQuery.noConflict();
226 function alertmsgbox(msg) {
227 jQuery("#alertmsg p").text(msg);
228 jQuery("#alertmsg").show();
229 jQuery("#alertmsg").animate({ top: "300px" }, 0 ).fadeOut
(100).fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn
(100).fadeOut(100).fadeIn(100);
230 }
231 jQuery(document).ready(function() {
232 jQuery("#close_message_alert").click(function() {
233 jQuery("#alertmsg").fadeOut("slow");
234 jQuery("#alertmsg").hide();
235 });
236 jQuery('h2').hide();
237 })(jQuery);
</snip>

Originally line 236 was:
jQuery("a...@href='#addEventform']").hide();

Reading the manual indicated "@" was deprecated and "#addEventform'"
is defined earlier in the code as:

function addEventForm() {
?>
    <a name="addEventform"></a><h2><?php _e('Add Event','events-
calendar'); ?></h2>

I think i know what the original author's intent was, but I just cant
shake Firebug's console error of:

jQuery(document).ready(function () {jQuery
("#close_message_alert").click(function () {jQuery("#alertmsg").fadeOut
("slow");jQuery("#alertmsg").hide();});jQuery("h2").hide();}) is not a
function

Thanks for any tips that point me in the right direction.

Reply via email to