My error page is showing in new page, but my error page also need to show in same page. pls help me.
u can chanage the form action and try
I modified in controller but now also the error page is displaying in new page.
hi,
can u send the all project and db otherwise give me a live URL? so i undertstand.
ok but right now i am in my office so i don’t have access of skype and any other websites.
Dear sir, by using onclick how to say fill all fields when click submit button,
First change the line on password.php
<?php echo CHtml::link('Link Text',array('user/password?id=942'),array('class'=>'aa','onclick'=>'test()')); ?>
and add the function
<script>
function change(id) {
if (id != '') {
$.ajax({
type: "GET",
url: "<?php echo Controller::createUrl('/users/password') ?>",
data: {"id": id},
async: false,
success: function(data) {
$('.inner_tab_contant').html(data);
},
});
}
}
</script>
u can call ajax or not on Password link?
Can i know if i put below lines my link(action) is not working on my password page
clientOptions’ => array(
'validateOnSubmit' => true,
),
'htmlOptions' => array(
'onsubmit' => "return false;",
),
u can try the below code call a aftervalidate method on submit botton
'clientOptions' => array(
'validateOnSubmit' => true,
'afterValidate' => 'js:checkErrors'
),
<script>
function checkErrors(form, data, hasError) {
var data=$("#pass-from").serialize();
if(hasError!=true){
$.ajax({
type: 'POST',
url: '<?php echo Yii::app()->createAbsoluteUrl("user/password?id=" . $_GET['vid']); ?>',
data:data,
asyc:false,
success:function(data){
alert(data)
}
});
}
}
</script>
Hi
havu u done this job?
No, sir, stiil my error page is showing in new page…i’m not understanding how to solve this?
can u give me live URL?
Hi, my setting page is divided into two parts. When i click change password it displaying new page also in current page. Like that, i need the error message also in my current page. Now i’m getting the error page in new tab. pls help me.