Click here to Skip to main content
15,881,751 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello friends

I Have URL Like :

http://data.mtgox.com/api/1/BTCUSD/ticker[^]


How could i get Buy Value from jquery or javascript

in my .aspx page it self

looking for your help fast ....

thanks
Posted
Updated 12-Mar-13 1:38am
v4
Comments
kishore sharma 12-Mar-13 7:36am    
Are you asking querystring parameters(key value pair)?

1 solution

If I understood you correctly, you want to read the value from query string in .aspx file using JAVASCRIPT then below is the solution.


JavaScript
var arrPaths = location.pathname.split('/');
//arrPaths will be an array like:[ "", "api", "1", "BTCUSD","ticker"]
//and if you want BTCUSD value then you can use.

var buyValue = arrPaths[3];


Hope this is what you wanted.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900