Jump to content

how to clear variables in url


Darkmatter5

Recommended Posts

I have  this script running

 

function reload(form, type) {
    var cab=form.cabinet_lst.options[form.cabinet_lst.options.selectedIndex].value;
    var fol=form.folder_lst.options[form.folder_lst.options.selectedIndex].value;
    var item=form.item_lst.options[form.item_lst.options.selectedIndex].value;
    if (type=="cab") { self.location='res_filing.php?cab=' + cab ; }
    if (type="fol") { self.location='res_filing.php?cab=' + cab +'&fol=' + fol ; }
    if (type="item") { self.location='res_filing.php?cab=' + cab +'&fol=' + fol +'&item=' + item ; }
}

 

I also have some PHP that run that puts a variable in the url named editcab.  When the reload javascript is activated the editcab variable is still passed, how can I clear all url variables, before running the self.location lines in the javascript?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.