@Neelavathi M 

are you calling ajax function from client script?

if yes then why are you talking about URL parameter

Can you share your both the scripts and what's your business requirement here?

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader