• Web Development Questions That Don't Need Their Own Thread v2
    3,079 replies, posted
[QUOTE=Alaura;32788667]I have a question, is there any software, or code that i could use so that i could stream music from my site to the internet but still have a folder on my computer that would allow me to play music off my computer but also have it online so other people could hear it?[/QUOTE] [url]http://www.icecast.org/[/url]
Are there any movements out there to replace javascript as the de facto web scripting standard? I have never seen another "standard" programming language with so many side projects devoted to making it suck less.
[QUOTE=Larikang;32797132]Are there any movements out there to replace javascript as the de facto web scripting standard? I have never seen another "standard" programming language with so many side projects devoted to making it suck less.[/QUOTE] Isn't google working on Dart or something?
config file [php] $dsn = 'mysql:host='.$config['db']['host'].';dbname='.$config['db']['db']; $pdo_user = $config['db']['username']; $pdo_pass = $config['db']['password'];[/php] The other file [php] function POSTchanged($type,$data,$dsn,$pdo_user,$pdo_pass) { $dbh = new PDO($dsn,$pdo_user,$pdo_pass); if(!empty($data) { $stmt = $dbh->prepare("SELECT * FROM user WHERE ".$type."=:data"); $stmt->bindParam(':data', $data, PDO::PARAM_STR); $stmt->execute(); } else { $stmt = $dbh->prepare("SELECT * FROM user WHERE ".$type."=:data"); $stmt->bindParam(':data', NULL, PDO::PARAM_STR); $stmt->execute(); } } [/php] Shouldnt this work?
What's the best way to add RSS feeds to my website home page? lets say I have seperate XML file, and I want those entries to be posted automatically when I update that XML file. I am total noob in PHP or javascript. I know there are like RSS to JavaScript converters online, but those asses put branding all over it.
I'm a newbie in the web development scene, but I'm currently interested in static site generation. Do any of you have suggestions on software to accomplish this?
[QUOTE=Jookia;32799687]I'm a newbie in the web development scene, but I'm currently interested in static site generation. Do any of you have suggestions on software to accomplish this?[/QUOTE] Do you mean something like Joomla or Wordpress?
[QUOTE=Jookia;32799687]I'm a newbie in the web development scene, but I'm currently interested in static site generation. Do any of you have suggestions on software to accomplish this?[/QUOTE] Static site generation? Notepad++/Sublime Text.
I mean something that takes templates, input files and combines them to output a HTML site.
[QUOTE=Crhem van der B;32799803]Static site generation? Notepad++/Sublime Text.[/QUOTE] I think he means that he won't be coding it himself with the generation part. [editline]15th October 2011[/editline] [QUOTE=Jookia;32799848]I mean something that takes templates, input files and combines them to output a HTML site.[/QUOTE] It would be more rewarding and useful to just learn html + css. WYSIWYG editors are very limiting and usually can't do what you want them to do. At least the ones I once tried were awful.
I know HTML and CSS. I just don't want to copy and paste HTML around every time I change something.
[QUOTE=Jookia;32799984]I know HTML and CSS. I just don't want to copy and paste HTML around every time I change something.[/QUOTE] what do you mean?
[QUOTE=Jookia;32799984]I know HTML and CSS. I just don't want to copy and paste HTML around every time I change something.[/QUOTE] Then I really don't understand what it is you want.
he might be looking for a CMS I think or actually I have no clue what he's talking about
I have a good wysiwyg. [url]Http://jung3o.com/showcase/wysiwyg[/url]
Static site generation?
How do I join two different query arrays together? [editline]15th October 2011[/editline] I want to have my stuff ascending by price but if the price is 0 (which would be the top) I want it at the bottom. I was told it's impossible with one query.
[QUOTE=Jookia;32800460]Static site generation?[/QUOTE] We have absolutely no idea what that is supposed to mean or if it even exists.
[QUOTE=Jookia;32800460]Static site generation?[/QUOTE] Its only static.html /css Javascript has to be on.
Eh, I guess you guys aren't familiar with it. I'll try some other site.
[QUOTE=Jookia;32801122]Eh, I guess you guys aren't familiar with it. I'll try some other site.[/QUOTE] Looking for any particular language? Phrozn for PHP looks neat, even though I've yet to try it out: [url]http://www.phrozn.info/en/[/url] If you look in that page's footer, you'll see some other examples, like Jekyll for ruby.
[QUOTE=Jookia;32799984]I just don't want to copy and paste HTML around every time I change something.[/QUOTE] If I understand correctly <?php include 'header.html'; ?> if you don't want .php do some htaccess magic
[QUOTE=Jookia;32799687]I'm a newbie in the web development scene, but I'm currently interested in static site generation. Do any of you have suggestions on software to accomplish this?[/QUOTE] [url=http://nanoc.stoneship.org/]nanoc[/url]
I'm using JavaScript to change the div loaded via the code below (Which is connected to some navigation for end user) How would I go about automatically loading the "welcome" div? [CODE] <script> $("div.content").hide(); $("li.welcome").click(function() { $("div.content").slideUp(400).fadeOut(300); $("div#Welcome").fadeIn(600); }); $("li.bio").click(function() { $("div.content").slideUp(400).fadeOut(200); $("div#about").fadeIn(600); }); $("li.portfolio").click(function() { $("div.content").slideUp(400).fadeOut(200); $("div#services").fadeIn(600); }); $("li.contact").click(function() { $("div.content").slideUp(400).fadeOut(200); $("div#Contact").fadeIn(600); }); </script> [/CODE]
[QUOTE=Chuushajou;32802087]I'm using JavaScript to change the div loaded via the code below (Which is connected to some navigation for end user) How would I go about automatically loading the "welcome" div? [CODE] <script> $("div.content").hide(); $("li.welcome").click(function() { $("div.content").slideUp(400).fadeOut(300); $("div#Welcome").fadeIn(600); }); $("li.bio").click(function() { $("div.content").slideUp(400).fadeOut(200); $("div#about").fadeIn(600); }); $("li.portfolio").click(function() { $("div.content").slideUp(400).fadeOut(200); $("div#services").fadeIn(600); }); $("li.contact").click(function() { $("div.content").slideUp(400).fadeOut(200); $("div#Contact").fadeIn(600); }); </script> [/CODE][/QUOTE] Use CSS.
[QUOTE=mobrockers2;32800868]We have absolutely no idea what that is supposed to mean or if it even exists.[/QUOTE] Instead of outputting directly to a web browsers, he wants software to output to html files instead, and those are served to the client.
I fixed my problem by not fixing my problem. Instead I set the price to 9999 to show TBA. That makes sense right, right?
I'm fairly new to HTML and CSS and I'm wondering what language would I need to learn to make the navigation change the content of the page but nothing else? Or would I just simply have to make multiple HTML files for each link in the navigation?
[QUOTE=Xylem;32806377]I'm fairly new to HTML and CSS and I'm wondering what language would I need to learn to make the navigation change the content of the page but nothing else? Or would I just simply have to make multiple HTML files for each link in the navigation?[/QUOTE] HTML = bones of a website CSS = skin of a website At the most basic level, you can just write a simple navbar in HTML. However, HTML can only be displayed per-page, so the way you're thinking of doing this wouldn't work. The navbar would have to be coded on every different page. If you want to make it easy and only have one place where you store your navbar code, you can use php. Essentially you can't make the navbar change the content of the page, they would have to be different pages. Though it may be possible with some advanced JavaScript knowledge.
[QUOTE=TheDecryptor;32804115]Instead of outputting directly to a web browsers, he wants software to output to html files instead, and those are served to the client.[/QUOTE] Yeah I figured that after Joe posted that link. [editline]16th October 2011[/editline] [QUOTE=Xylem;32806377]I'm fairly new to HTML and CSS and I'm wondering what language would I need to learn to make the navigation change the content of the page but nothing else? Or would I just simply have to make multiple HTML files for each link in the navigation?[/QUOTE] You'd need to learn how to include pages in php for that.
Sorry, you need to Log In to post a reply to this thread.