This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Is this a limitation of using javascript in a widget?

  • Creator
    Topic
  • #18872
    steveforan
    Participant

    Jason

    I have javascript for a form that displays in a text widget. There is a “hidden element” in the form that places the label for the field in the form directly in the field and disappears as soon as someone starts to enter their information (similar to the “search the site…” label in the search field on this discussion forum site). It used to work in complexity however it behaves differently in Commodore depending on the browser.

    When I use Safari 7.1, the label appears inside the field but doesn’t disappear when user begins typing. They have to delete the label name.

    When I use Firefox 32.0.3, the label appears beside the field as if the “hidden element” wasn’t included in the form.

    Is there a way I can get around this or is this a limitation of the text widget?

    Thank you.

    steve

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #18882
    Jason Bobich
    Keymaster

    Hello Steve,

    This all depends on the specific javascript code that is used in the widget. There’s no limitation that says you just can’t use javascript, but as with any thing, all javascript on the page has to jive with each other. In all honesty, there’s no way for me to really answer your question in a general way, other than that. But if the javascript you’re using conflicts with the theme, and it’s not something you’ve personally written that you can debug, there’s probably not going to be much room to work around it.

Viewing 1 replies (of 1 total)
  • The forum ‘Commodore WordPress Theme (formerly Complexity)’ is closed to new topics and replies.