Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with Reload in javascript

665735Mar 18 2010 — edited Mar 20 2010
Hi All,

In my application, When you click on delete icon i am calling javascript function as shown below:

function DeleteSchedule(vjobid,vscheid)
{

if(confirm('Are you sure you want to delete?'))
{
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=deleteSchedule',0);
get.add('F103_JOBID',vjobid)
get.add('F104_SCHID',vscheid)
gReturn = get.get();
alert(gReturn);
location.reload(true);
}
}

In the above function at the end i am calling location.reload(true) which intrun the entire page will gets reload and the record is getting deleted succesfully.
Now the problem if the commit that particular location.reload functionality the page will not be refereshed even though the record is geeting deleted from backend.
How we can overcome the above problem without the reload, since in my application there can either insert/update/delete records.

For ex: In one situation if i had a new record and before clicking on sumbit button i will try to delete the old record, now in that case the new record what i had added is not stored since in delete functionality the reload concept is called.

Hope u have got my problem!!

Thanks in Advance,
Anoo..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 17 2010
Added on Mar 18 2010
1 comment
630 views