javascript jquery url part trimming
<p>I have a url like</p>

<pre><code>http://www.blah.com/something/maybesomethingelse/Webservices/something.asmx/blah
</code></pre>

<p>That is being passed through a jquery ajax request.</p>

<p>I want to remove everything after /Webservices/ so I can stick a new page in for error handling.</p>

<p>so ideally this would return</p>

<pre><code>http://www.blah.com/something/maybesomethingelse/Webservices/
</code></pre>

<p>Then i could just concat on the new page.</p>

<p>Thanks for your help :) </p>
