Web Development Questions That Don't Need Their Own Thread v2
3,079 replies, posted
[QUOTE=Jessecar96;32435597]How can I create something similar to the like/dislike ratio bar on youtube?
Lets say I have 1 +'s and 2 -'s like this:
[IMG]http://i51.tinypic.com/2r3dzpv.png[/IMG]
How could I make a bar go in a ratio of 1:2 like this? or any other ratio. I tried to find some type of formula, but nothing.
Example:
[IMG]http://i53.tinypic.com/15oeaex.png[/IMG]
oh, and the bar is 200px wide[/QUOTE]
Percentages.
i.e 1/3, 2/3. <number>/total
Is it possible for javascript on a page to access a variable defined for the client in a userscript?
Anybody willing to walk someone new to jQuery through some incredibly dumb questions over Steam?
As in sort of guide me along the way a bit?
I'd greatly appreciate it. PM me if you're willing or something.
[QUOTE=mac338;32441974]Anybody willing to walk someone new to jQuery through some incredibly dumb questions over Steam?
As in sort of guide me along the way a bit?
I'd greatly appreciate it. PM me if you're willing or something.[/QUOTE]
All you need to know is FadeIn , FadeOut,Hide,Show :v:
[QUOTE=zzlawlzz;32442458]All you need to know is FadeIn , FadeOut,Hide,Show :v:[/QUOTE]
Ba-ba-ba-but right now I'm stuck on an issue where I want an image slider to freeze on mouseover. And that's just right now.
[QUOTE=mac338;32442475]Ba-ba-ba-but right now I'm stuck on an issue where I want an image slider to freeze on mouseover. And that's just right now.[/QUOTE]
Look at Stop and hover :smile:
Lithium why are you getting worse? I have to pay for advanced support?
[editline]23rd September 2011[/editline]
Can someone help me? I am trying to update my website and it wont update. I tried flushing my DNS but it still didn't work.
[QUOTE=toaster468;32446827]Lithium why are you getting worse? I have to pay for advanced support?[/QUOTE]
Make a support asking why
What y'all think about Code Igniter?
What's the best place to learn:
HTML
CSS
JavaScript
XML
PHP
MySQL
?
I know several programming languages (C, Java, Python, AS3,..) and I'm looking into entering the world of web, I know what goes underneath and how it works but never built a website.
Many people despite w3schools.com so in your experience what's the best place to learn all those languages?
[QUOTE=Known Havok;32452312]What y'all think about Code Igniter?[/QUOTE]
It's solid, does its job, but a bit outdated by now. Before settling on it have a look at Kohana (which started as a fork of CI) or FuelPHP.
[QUOTE=bunguer;32454341]What's the best place to learn:
HTML
CSS
JavaScript
XML
PHP
MySQL
?
I know several programming languages (C, Java, Python, AS3,..) and I'm looking into entering the world of web, I know what goes underneath and how it works but never built a website.
Many people despite w3schools.com so in your experience what's the best place to learn all those languages?[/QUOTE]
People have said htmldog.com is good.
[QUOTE=bunguer;32454341]What's the best place to learn:
HTML
CSS
JavaScript
XML
PHP
MySQL
?
I know several programming languages (C, Java, Python, AS3,..) and I'm looking into entering the world of web, I know what goes underneath and how it works but never built a website.
Many people despite w3schools.com so in your experience what's the best place to learn all those languages?[/QUOTE]
[url]http://www.tizag.com[/url], [url]http://www.php.net[/url], [url]http://www.htmldog.com[/url], [url]http://www.w3c.org[/url], [url]https://developer.mozilla.org/en/Web_Development[/url]
All of those should give you basic knowledge about most of those you wanted to learn.
In javascript, Math.random(); creates a number between the 0 and the 1, how will I let it create a number from 1 to 10?
[QUOTE=Staneh;32455191]In javascript, Math.random(); creates a number between the 0 and the 1, how will I let it create a number from 1 to 10?[/QUOTE]
I recommend using php to fix that problem because your way isn't
stinkyjoe compatible.
[url]http://www.php.net/manual/en/function.mt-rand.php[/url]
[QUOTE=Staneh;32455191]In javascript, Math.random(); creates a number between the 0 and the 1, how will I let it create a number from 1 to 10?[/QUOTE]
OneToTen = Math.random() * 10;
or, if you want a whole number
Math.round(Math.random() * 10);
Okay now, I want to draw an image in Javascript, I know how to do it in html, but how would I do it in javascript?
Guy's help. Javascript scopes always get me. :(
[img]http://dl.dropbox.com/u/386727/ScrnCap/js-scope.png[/img]
[editline]24th September 2011[/editline]
I thought functions have access to all parent variables?
How would I go about aligning these images and removing the little gap between them:
[img]http://dl.dropbox.com/u/28898399/site.PNG[/img]
The top and bottom images are in separate div tags, and the bottom image is in a table with the text to its right
i would use margin-top:[highlight][B]-[/B][/highlight][B]insert number here[/B]px;
Does anyone know of a good FTP synchronization thing? I would like to edit a part of a site through FTP using sublime text.
[QUOTE=Known Havok;32463143]Does anyone know of a good FTP synchronization thing? I would like to edit a part of a site through FTP using sublime text.[/QUOTE]
There is ftpbox.org made by someone from fp. I wouldnt say its that good. But this is the only thing i can think of. You can always use NPP/N++ :smile:
[QUOTE=zzlawlzz;32463234]There is ftpbox.org made by someone from fp. I wouldnt say its that good. But this is the only thing i can think of. You can always use NPP/N++ :smile:[/QUOTE]NO
[QUOTE=zzlawlzz;32463234]There is ftpbox.org made by someone from fp. I wouldnt say its that good. But this is the only thing i can think of[/QUOTE]
It doesn't connect to my ftp if I entered the details correctly :v:
[QUOTE=Known Havok;32463143]Does anyone know of a good FTP synchronization thing? I would like to edit a part of a site through FTP using sublime text.[/QUOTE]
You can mount a FTP server as a drive in Windows, Just google it :)
If you're doing a large enough amount of work to justify setting up some form of ftp sync, what you really ought to do is setup a local development server. This is a trivial task in this day an age, with dozens of available lamp, wamp, lemp, x packages available (and really, setting up your own server manually isn't hard if you go through the documentation).
I'll put it more bluntly: [B]do not develop directly in the production server[/B]. Even if it's a small personal website; good habits go a long way.
[QUOTE=StinkyJoe;32464527]If you're doing a large enough amount of work to justify setting up some form of ftp sync, what you really ought to do is setup a local development server. This is a trivial task in this day an age, with dozens of available lamp, wamp, lemp, x packages available (and really, setting up your own server manually isn't hard if you go through the documentation).
I'll put it more bluntly: [B]do not develop directly in the production server[/B]. Even if it's a small personal website; good habits go a long way.[/QUOTE]
Definetly agree with this , you really don't want every change you make to a site to be carried over onto the live version directly. Download your site files, use a local web server program such as WAMP to manipulate server side languages, then when your happy that the changes you have made have not hindered the security or reliability of the site, copy it to your live server.
[QUOTE=StinkyJoe;32464527]If you're doing a large enough amount of work to justify setting up some form of ftp sync, what you really ought to do is setup a local development server. This is a trivial task in this day an age, with dozens of available lamp, wamp, lemp, x packages available (and really, setting up your own server manually isn't hard if you go through the documentation).
I'll put it more bluntly: [B]do not develop directly in the production server[/B]. Even if it's a small personal website; good habits go a long way.[/QUOTE]
I actually created the website on my local machine. I just wanted an easy way to edit minor things (not just one, but many).
Thanks for your input.
[QUOTE=jaybuz;32457818]Guy's help. Javascript scopes always get me. :(
[img]http://dl.dropbox.com/u/386727/ScrnCap/js-scope.png[/img]
[editline]24th September 2011[/editline]
I thought functions have access to all parent variables?[/QUOTE]
Try:
[code]data = {address:addressName, distance:distance, price:price, company:company};[/code]
[editline]25th September 2011[/editline]
Just to see if it'll do anything. Going from False to Undefined seems like an error.
[editline]25th September 2011[/editline]
Ohhhhhhh, I think I see now. I don't think it likes you using location as a variable name. Location is like window, it's reserved. Try using a different variable name.
Sorry, you need to Log In to post a reply to this thread.