![]() |
|
Re: Learning Javascript Thread
hmm, i tried this and same result:
Code:
$('#rankings_link').click(function(){It should be staying on the same page... But if that's the case, how can I have this link in my nav bar? Seems like I should leave the link to /rankings as is and then, on that page, bind the ajax call to a button click (I'll have to create this). Does that sound right? |
Re: Learning Javascript Thread
try this,
Code:
$('#rankings_link').click(function(e){ |
Re: Learning Javascript Thread
parseJSON won't work like that I don't believe. What I was trying to say is instead of having a JSON object that looks like :
Code:
{Code:
{Code:
for (var m = 0; m < received_data.foo.length; m++) { |
Re: Learning Javascript Thread
but that's not what my json object looks like
mine is just Code:
["Farag, Ali", "Harrity, Todd",...] |
Re: Learning Javascript Thread
Quote:
|
Re: Learning Javascript Thread
Quote:
Code:
|
Re: Learning Javascript Thread
Quote:
|
Re: Learning Javascript Thread
Quote:
https://developer.mozilla.org/en-US/...cts/JSON/parse i suspect the problem is related to binding the anchor tag. |
Re: Learning Javascript Thread
Lately I've been thinking about making a range calculator type app in javascript. It would be like flopzilla (I assume, I only ever saw it demonstrated in a youtube video, https://www.youtube.com/watch?v=avfMUeveAcc).
I want to have a ui like pokerstove that is parsed into the shorthand notation (ie 44-77 instead of 44,55,66,77 etc) and then send the shorthand string to the server where I'll run a python script I've already wrote determine the ranges and send back a json object to populate some type of chart or table. What I'm wondering is whether backbone or angular would be of much help here. I've never built anything but todo apps with them but have been looking for an opportunity to really try them out. I can instantly invision the jQuery soup way of solving this by storing the data on the dom elements with some event handler to parse the data and create the range string, and I wonder if there is any real point in having the range of cards in code as a model? |
Re: Learning Javascript Thread
thinking about it a bit more, I think it could simplify the creation of the subview for selecting suits for a specific card combo ( like selecting just cc for AJs )
|
| All times are GMT -4. The time now is 11:10 PM. |
|
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 2008-2020, Two Plus Two Interactive