Error: Syntax error, unrecognized expression: javascript:TagPopup_OpenForm( -


i getting error.it running on localhost.

error: syntax error, unrecognized expression: javascript:tagpopup_openform("tagpopup_formcontainer1","tagpopup_formcontainerbody1","tagpopup_formcontainerfooter1");

this shortcode function in wordpress plugin

$siteurl = "'" . home_url() . "'";  $close = 'javascript:tagpopup_hideform("tagpopup_formcontainer1","tagpopup_formcontainerfooter1");'; $open = 'javascript:tagpopup_openform("tagpopup_formcontainer1","tagpopup_formcontainerbody1","tagpopup_formcontainerfooter1");';  $html = "<a href='" . $open . "'><div class='login-user'>login</div></a>"; $html .= "<div style='display: none;' id='tagpopup_formcontainer1'>"; $html .= "<div id='tagpopup_formcontainerheader'>";  $html .= '<div id="tagpopup_formclose"><a href="' . $close . '">' . __('x', 'tag-popup') . '</a></div>'; $html .= '<div id="tagpopup_formtitle"> ' . __('', 'tag-popup') . wpautop(wp_kses_post($pull_atts['title'])); $html .= '</div>'; $html .= '</div>'; $html .= '<br><hr>'; $html .= '<div id="tagpopup_formcontainerbody1">';  $html .= '<form method="post" action="" name="single_form" id="id_single_form" onsubmit="return validation_login(this)">';   $html .= '<div id="username-div">'; $html .= '<input name="username" class="username" type="text" id="id_username_login" placeholder="username" maxlength="120">'; $html .= '</div>';  $html .= '<div id="password-div">'; $html .= '<input name="password" class="password" type="password" id="id_password_login" placeholder="password" maxlength="120">'; $html .= '</div>';  $html .= '<div id="tagpopup_formlabel_page">'; $html .= '<input type="submit" name="login" class="login_submit" value="login" >';  if (!is_home()) {     $html .= '<a href=' . home_url() . ' style="float:left;#aaffff !important"> < homepage</a>'; }  $html .= '<a href="' . get_permalink() . '?new_user=1">new user?</a>'; $html .= '</div>'; $html .= '</form>'; $html .= '</div>'; $html .= '</div>'; $html .= '<div style="display: none;" id="tagpopup_formcontainerfooter1"></div>';  return $html; 

}


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -