I have a site with an application that people installed on their computer. The application accesses my site with the get parameter param: mysite.com?param=sometext.
Due to a recent upgrade and an integration with another system, my site now needs the parameter p: mysite.com?p=sometext. I need the page to change the parameter without refreshing the page (when a user sends the param parameter I need it converted to the p parameter).
Is there any way to do this with jQuery/AJAX? Maybe something else?
Thanks
jQuery and AJAX are client-side technologies. The limitation of your installed base of users is presumably that you can’t change anything at the client side without persuading everyone to reinstall the application; in that case these can’t help you.
Since you can’t change the requests coming from the client app, the only thing you can do is make the server-side respond to
param=xthe same as it would forp=x. That would seem to be easiest to do by changing the script that receives the request to allow either one of the parameter names to be used interchangeably.If you can’t change the script either, about your only remaining tactic would be to alter the request at the web server level. For example if you were using Apache with mod_rewrite, you could add to the config something like: