Pages:
Author

Topic: Help us with a little Javascript (Payment .2 BTC) (Read 1310 times)

legendary
Activity: 1498
Merit: 1000
Hey what happened? You shouldn't be calling each other idiots..

I gave Jaxkr the money because at first glance his code looked like it offered the best possible route to go. We discussed it briefly in private, I worked on it over night and it's now up and functional.

His contribution provided the key to helping me find the most efficient solution. So he deserves it.


Daniel




Daniel,

That's absolutely fine.  For the record, I'm emphasizing that I wasn't calling anyone anything.  I did end up having to put gweedo on ignore.  He really went after me when I asked for a donation...

Cause people that are whining are dumb, people who feel entitled are morons. I am glad I am on your ignore list, cause it just shows how people when confronted with the truth they are idiots can't handle it...

Not sure how motivated I'll be to help.  You could change that (small donation for work already done).

Feeling slightly shafted because I spent time considering your problem (refreshing images in a div without resetting the page), testing your problem with a minimal example of hand written code (works to implement the refresh image on a timer without resetting the page (tested on gnu-linux/apache2/firefox and chromium)).   Wrote to you to ask for more info about how to integrate my solution with your needs ... and ... you paid the other guy who just said 'try this' without any explanation. 

No disresepct to Jaxr intended, I'm just feeling like a small (a couple btms?) good faith donation would be in order for my efforts.  Ball's in your court, of course, but I felt like I had to say this. 
full member
Activity: 123
Merit: 100
Thank you, this post made re-reading through this even better.   Cheesy

Hey what happened? You shouldn't be calling each other idiots..

I gave Jaxkr the money because at first glance his code looked like it offered the best possible route to go. We discussed it briefly in private, I worked on it over night and it's now up and functional.

His contribution provided the key to helping me find the most efficient solution. So he deserves it.


Daniel




Daniel,

That's absolutely fine.  For the record, I'm emphasizing that I wasn't calling anyone anything.  I did end up having to put gweedo on ignore.  He really went after me when I asked for a donation...

Cause people that are whining are dumb, people who feel entitled are morons. I am glad I am on your ignore list, cause it just shows how people when confronted with the truth they are idiots can't handle it...

Not sure how motivated I'll be to help.  You could change that (small donation for work already done).

Feeling slightly shafted because I spent time considering your problem (refreshing images in a div without resetting the page), testing your problem with a minimal example of hand written code (works to implement the refresh image on a timer without resetting the page (tested on gnu-linux/apache2/firefox and chromium)).   Wrote to you to ask for more info about how to integrate my solution with your needs ... and ... you paid the other guy who just said 'try this' without any explanation. 

No disresepct to Jaxr intended, I'm just feeling like a small (a couple btms?) good faith donation would be in order for my efforts.  Ball's in your court, of course, but I felt like I had to say this. 
newbie
Activity: 21
Merit: 1
You need some help yet dude? Happy mining to all
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
Hey what happened? You shouldn't be calling each other idiots..

I gave Jaxkr the money because at first glance his code looked like it offered the best possible route to go. We discussed it briefly in private, I worked on it over night and it's now up and functional.

His contribution provided the key to helping me find the most efficient solution. So he deserves it.


Daniel




Daniel,

That's absolutely fine.  For the record, I'm emphasizing that I wasn't calling anyone anything.  I did end up having to put gweedo on ignore.  He really went after me when I asked for a donation...
member
Activity: 119
Merit: 100
BitcoinMoxy.com
Hey what happened? You shouldn't be calling each other idiots..

I gave Jaxkr the money because at first glance his code looked like it offered the best possible route to go. We discussed it briefly in private, I worked on it over night and it's now up and functional.

His contribution provided the key to helping me find the most efficient solution. So he deserves it.


Daniel


legendary
Activity: 1246
Merit: 1077
There is no language attribute for script.

"javascript" isn't a MIME type. You need type="application/javascript" or type="text/javascript".
With HTML5 you don't need anything. Just








I was just testing the 'refresh' factor.  Overwritting .src on the img element works fine to update without refreshing the whole document.  I guess in your case, you just do the trick the others were saying about using Date() to generate a random url string after the image so that the browser treats it as a new value for .src

12d2dfgi1cz77mxFkHA5Gf9PdpwLVzfGKK
sr. member
Activity: 420
Merit: 250
Here. Try this:
Code:
var currencies = ['USD', 'EUR', 'GBP', 'CAD'];
var currentCurrency = 0;
var refreshDiv = function() {
currentCurrency++;
if (!(currentCurreny > 3)) {
functionName = 'minicharts' + currencies[currentCurrency];
} else {
currentCurrency = 0;
functionName = 'minicharts' + currencies[0];
}
window[functionName];
}
window.setInterval(refreshDiv, 1000);

If it doesn't work let me know and I'll fix it. If it does, my address is 18Kz7Sh1AX1UhRxC2Muwhxr7BxjCEwVF8o.
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
Can you post the lines of code where you:

1) set the global variable
2) access the global variable (ie, where it returns undefined)

That would help me help you more Smiley

In general, I'd consider doing an AJAX request to reload the image, I have some code that updates part of a page without reloading the whole thing, I can send it to you.

12d2dfgi1cz77mxFkHA5Gf9PdpwLVzfGKK
Pages:
Jump to: