php - Error onclick button code wrong? -


i have onclick on button not working properly.

<a href="javascript:void(0)" class="button" onclick=\'websiteopen("'.$site->page_id.'","fb"), popupcenter("http://nullrefer.com/?'.$site->facebook.'","website", "'.$site->id.'", "'.$site->title.'", 1000,500,"fb");jqxalert.alert("verifying..<img src=\'http://website.com/_template/images/load.gif'>");$(this).fadeout().delay(4100).fadein();\'><b class="glyphicons thumbs_up" style="height:8px;vertical-align:baseline;padding:2px 9px"><i></i></b> '.$lang['sp17'].'</a> 

it wrong in part of code:

jqxalert.alert("verifying..<img src=\'http://website.com/_template/images/load.gif'>"); 

what issue?

you formatting wrong, needs follows:

<a href="javascript:void(0)" class="button" onclick="jqxalert.alert('verifying...')">     <img src="_template/images/load.gif" height="16px"> </a> 

edit: answer assumes code above using plugin behaves in similar manner window.alert(); similar -> http://www.jqwidgets.com/jquery-alert-popup/


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -