Support » Plugins and Hacks » Hacks » Yahoo User Interface and WordPress, Javascript Array Problem

  • I’m using a YUI 2 calendar widget within a wordpress installation, and have a problem printing a date array.

    Here are the configuration options of the calendar, to see how the dates are passed as a non-array, for example “11/12/10,04/12/11”
    http://developer.yahoo.com/yui/calendar/#config

    Here is the code I’m using, with an anonymous function:
    http://pastebin.com/qASAsxGh

    When the page loads, it’s completely blank except for the date_array which is printed at the top of the page. Does wordpress need some additional work around for this to function?

    I’ve already done enqueues for several other javascript pieces, however I find it strange that the calendar loads perfectly with the dates highlighted if I pass in “11/12/10,04/12/11”, but does not work if I try to use the function DateAnon()

    http://pastebin.com/i6vQv6n4

    I appreciate any and all help!

    WP

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Yahoo User Interface and WordPress, Javascript Array Problem’ is closed to new replies.