Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 500
Search took 3.71 seconds.
Search: Posts Made By: venegal
Forum: JavaScript programming 06-24-2012, 05:32 AM
Replies: 5
Views: 416
Posted By venegal
One thing: Don't use global variables. This is...

One thing: Don't use global variables. This is not about schooling you on best practices, it's actually biting you in the behind here: calculate seems to refer to the DOM element of same name/id...
Forum: PHP 06-23-2012, 07:25 PM
Replies: 3
Views: 323
Posted By venegal
No problem. The issue with "uniting...

No problem. The issue with "uniting mysql_fetch_object() and mysql_query() in one line" is that mysql_fetch_object fetches only one row of the result set at a time, so it will have to be called...
Forum: JavaScript programming 06-23-2012, 02:25 PM
Replies: 21
Views: 1,622
Posted By venegal
As soon as you're talking about a certain kind of...

As soon as you're talking about a certain kind of "notation", you're talking about strings. Checking whether there's an "e" in a number's string representation will certainly do the trick, and,...
Forum: PHP 06-23-2012, 01:57 PM
Replies: 3
Views: 323
Posted By venegal
A for loop will run until the statement you put...

A for loop will run until the statement you put right in the middle evaluates to false — $winning = $result will never evaluate to false, though, because $result always stays the same, so it will run...
Forum: JavaScript frameworks 06-23-2012, 01:43 PM
Replies: 3
Views: 710
Posted By venegal
You can't overflow an iframe, so you would have...

You can't overflow an iframe, so you would have to try to get the overlay out of the iframe and into the main document, which would be very hackish and a whole lot harder to do than to just get rid...
Forum: JavaScript programming 06-23-2012, 01:28 PM
Replies: 5
Views: 559
Posted By venegal
Just because something is widely in use doesn't...

Just because something is widely in use doesn't make it public domain — there's a whole bunch of patents regarding MP3 decoding, and although there shouldn't be any MP3 licensing fees for open source...
Forum: JavaScript programming 06-23-2012, 12:38 PM
Replies: 5
Views: 339
Posted By venegal
Do you have some documentation on the behavior...

Do you have some documentation on the behavior canvas= null is a workaround for? I can't quite imagine a situation where this would make a difference — the reference would be removed at the end of...
Forum: JavaScript frameworks 06-23-2012, 04:13 AM
Replies: 2
Views: 493
Posted By venegal
<li> <a href="images/1.jpg"> <img...

<li>
<a href="images/1.jpg">
<img src="images/thumbs/t1.jpg" title="Title for 1.jpg">
</a>
</li>
<li>
<a href="images/2.jpg">
<img src="images/thumbs/t2.jpg"...
Forum: JavaScript programming 06-23-2012, 03:57 AM
Replies: 21
Views: 1,622
Posted By venegal
Depending on what you're actually trying to do...

Depending on what you're actually trying to do with those numbers, comparing to Infinity might not be what you're after, since numbers larger than 2^53 will still be far away from Infinity...
Forum: JavaScript programming 06-23-2012, 03:31 AM
Replies: 5
Views: 339
Posted By venegal
!! basically converts anything to a boolean. ! is...

!! basically converts anything to a boolean. ! is the logical NOT operator, so it will convert a falsy value to true and a truthy value to false. Doing this two times in a row will make falsy values...
Forum: JavaScript programming 06-23-2012, 03:03 AM
Replies: 17
Views: 736
Posted By venegal
In some other document, Crockford actually...

In some other document, Crockford actually recommends Old Pedant's style:



But he admits to adding to JSLint whenever he gets burned by a particular practice, so that's that. One way or...
Forum: JavaScript programming 06-23-2012, 02:13 AM
Replies: 1
Views: 253
Posted By venegal
A quick glance at the source reveals that the...

A quick glance at the source reveals that the framework being used is actually MooTools. I'm no expert on that, but it certainly looks like the function load_projects at the end of the HTML source is...
Forum: JavaScript programming 06-02-2012, 11:10 PM
Replies: 14
Views: 864
Posted By venegal
Never said it would. (What I did say is that...

Never said it would. (What I did say is that arguments.callee.name is irrelevant for what you're trying to do.)



If you're okay with limiting this functionality to specific browsers, you could...
Forum: JavaScript programming 06-01-2012, 04:00 PM
Replies: 14
Views: 864
Posted By venegal
I'm not entirely sure what you're after here, but...

I'm not entirely sure what you're after here, but it sounds like you want to write a piece of code other people can plug into their own code in order to make their alert boxes prettier. For this,...
Forum: JavaScript programming 04-14-2012, 12:17 AM
Replies: 12
Views: 967
Posted By venegal
There's a whole article on the fullscreen API on...

There's a whole article on the fullscreen API on the very site you linked to in your original post: http://tutorialzine.com/2012/02/enhance-your-website-fullscreen-api/
Forum: JavaScript programming 04-03-2012, 09:25 PM
Replies: 105
Views: 4,613
Posted By venegal
The Wayback Machine tells me it's from 2007, and...

The Wayback Machine tells me it's from 2007, and it's a pity there isn't some sort of vendor-controlled best practices living standard. Scripts out of the head still seems feasible for rendering...
Forum: JavaScript programming 04-03-2012, 09:11 PM
Replies: 105
Views: 4,613
Posted By venegal
Sorry, I should have clarified (or maybe I did...

Sorry, I should have clarified (or maybe I did somewhere? This thread is getting long!): I don't mean the network tab in the browser preferences but in the browser's built-in development tools (or...
Forum: JavaScript programming 04-03-2012, 08:19 PM
Replies: 105
Views: 4,613
Posted By venegal
Oh, I see. Yes, I did write 1MB/s, and not the...

Oh, I see. Yes, I did write 1MB/s, and not the equivalent Mb/s speed, so the calculations would be easier to follow.
Forum: JavaScript programming 04-03-2012, 05:05 PM
Replies: 105
Views: 4,613
Posted By venegal
If you're really interested, yes. Since browsers...

If you're really interested, yes. Since browsers are smarter now, the days of huge page load improvements by combining scripts or loading them asynchronously are gone, and I'm not out there to...
Forum: JavaScript programming 04-03-2012, 01:38 PM
Replies: 105
Views: 4,613
Posted By venegal
There isn't much to demo here (Javascript can...

There isn't much to demo here (Javascript can measure its execution time but not its load time — this has to be done by the browser or external tools). You can just browse to an arbitrary page with...
Forum: JavaScript programming 04-03-2012, 11:32 AM
Replies: 105
Views: 4,613
Posted By venegal
Just have a look at your browser's network tab,...

Just have a look at your browser's network tab, will you? All current major browsers except Opera download several Javascript files simultaneously, regardless of any defer or async attributes.


...
Forum: JavaScript programming 04-03-2012, 12:35 AM
Replies: 105
Views: 4,613
Posted By venegal
How is that the best case? That's, as I...

How is that the best case? That's, as I mentioned, the worst case, and having a look at your browser's network console, you'll see that for modern browsers that's no longer the case (in my Firefox...
Forum: JavaScript programming 04-02-2012, 02:06 PM
Replies: 5
Views: 385
Posted By venegal
I can't really tell without seeing your actual...

I can't really tell without seeing your actual code, but if you're using something like sub0.selection.setContent() in your code, at some point before that you have to define that "sub0" variable,...
Forum: JavaScript programming 04-02-2012, 01:07 PM
Replies: 5
Views: 385
Posted By venegal
If you find yourself defining numbered variables,...

If you find yourself defining numbered variables, chances are you're doing something wrong. Use an array instead.
Forum: JavaScript programming 04-02-2012, 01:01 PM
Replies: 25
Views: 936
Posted By venegal
Please stay on topic, everyone. If you...

Please stay on topic, everyone.



If you feel comfortable using automatic type coersion, and you're the only person maintaining your code, sure, why not use it. There still might be a few...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT +1. The time now is 04:36 AM.