how can we call a serverside code using javascript

The only thing I could suggest would be to use AJAX. That's the only way I can think of to call a remote script through JS.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.