Web Development Questions That Don't Need Their Own Thread v2
3,079 replies, posted
Try background-color: transparent !important; in the transparent class.
Nope didn't work
Is there any free currency exchange rate API in Javascript (No JQuery please. Unless... JQuery is the only option.)?
If so, can you link it to me please?
[QUOTE=ptown2;33065610]Is there any free currency exchange rate API in (Normal, not JQuery. Unless... JQuery is the only option.) Javascript?
If so, can you link it to me please?[/QUOTE]
[url=http://josscrowcroft.github.com/money.js/]money.js[/url]
[QUOTE=Jelly;33065620][url=http://josscrowcroft.github.com/money.js/]money.js[/url][/QUOTE] Thanks.
Even though I edited the post for it to be less... engrish.
is there a way to make a timeout function for this search query? the var url
[code]
function searchClicked() {
var tagField = document.getElementById('tags');
var tags = tagField.value;
tags = trim(tags);
if (!tags.length == 0) {
var url = 'http://hitta.db.umu.se/hitta/rest/search?q='+tags+'&hl=sv&callback=parseSearch';
} else {alert ("Specify search terms.")}
}
[/code]
[code]var t = setTimeout("code to be executed when the time is up here", milliseconds here);[/code]
setTimeout("searchClicked();", 1000);
thanks. i'll try
[editline]1st November 2011[/editline]
[QUOTE=TehWhale;33073236]setTimeout("searchClicked();", 1000);[/QUOTE]
wouldn't this just make it try again
[QUOTE=Cuel;33073483]thanks. i'll try
[editline]1st November 2011[/editline]
wouldn't this just make it try again[/QUOTE]You can have it just return from the function after a certain amount of time:
setTimeout("function() { return false; }", ms);
not sure what you mean. i want something like this i guess
[code]
function searchClicked() {
//bla bla do stuff
var url = 'http://hitta.db.umu.se/hitta/rest/search?q='+tags+'&hl=sv&callback=parseSearch';
Timer(true);
return false;
}
function Timer(start){
var time = 0;
if (start) {
time = setTimeOut(//tell user server is down, 15000);
} else {
clearTimeout(time);
}
}
function parseSearch(json) {
Timer(false);
//bla bla parse json
[/code]
problems:
server might still respond after 15sec and callback parseSearch()
users can spam the search button and trigger a lot of timers i guess? i'm not sure. will it reset?
i'm not sure if i'm doing this the right way
[QUOTE=Cuel;33076044]not sure what you mean. i want something like this i guess
[code]
function searchClicked() {
//bla bla do stuff
var url = 'http://hitta.db.umu.se/hitta/rest/search?q='+tags+'&hl=sv&callback=parseSearch';
Timer(true);
return false;
}
function Timer(start){
if (start && window.time == null) {
window.time = setTimeOut(//tell user server is down, 15000);
} else {
clearTimeout(window.time);
}
}
function parseSearch(json) {
Timer(false);
//bla bla parse json
[/code]
problems:
server might still respond after 15sec and callback parseSearch()
users can spam the search button and trigger a lot of timers i guess? i'm not sure. will it reset?
i'm not sure if i'm doing this the right way[/QUOTE]
nah, time would be local anyway- you would never clear the timeout that was originally set.
window.time maybe?
[editline]1st November 2011[/editline]
instead of doing the timeout, you could check for any status code except for 200 from the server, maybe?
i don't know how to do that.
[QUOTE=reeferdk;33060730]Sounds relatively simple, but it depends on:
How do you want the servers to communicate with your PHP-"master server" ? HTTP? Sockets? SOAP?
How do you want your clients to communicate?
How long it will take for you to make, i don't know :-)[/QUOTE]
servers will register via http i think.
client <> server will be sockets.
as I already said, I don't have that much experience in php...
are there any tutorials on this topic?
[QUOTE=Felheart;33081142]servers will register via http i think.
client <> server will be sockets.
as I already said, I don't have that much experience in php...
are there any tutorials on this topic?[/QUOTE]
Yeah there is lots of tutorials on PHP, this can be done relatively simple, by storing the information in a database and then retrieving it again for the clients.. Take a look at $_GET or $_POST (preferably, if you can handle posts in your server/clients) and some database abstraction like mysqli or pdo.
i solve all my problems on php with if statements :v:
Hi all,
I am in a dilemma and about to have a meltdown.
One of my students (year 12) has decided she now can't finish her page, and her initial brief stated that the client wanted a website that was easy to maintain. I've been teaching skills this year mainly to do with HTML & CSS, because I'm not a web developer, I'm a high school technology teacher (and can only cover a certain amount of information with students who just don't seem to care - so content management systems got skipped due to lack of time). I also made sure that the students were aware at the start that their sites would not be too complex.
Now she recieves an email from her client's daughter in law who is all tech savvy and expecting a 16 year old to create wordpress/drupal templates.
I said I would convert her html page into a format usable by a CMS, but now I am stuck for what CMS to use. I need one that is REALLY easy to create templates for (as in, you just write html and stick special tags in where you want the content). And really easy. I've used light and easy cms before, and the templating is very easy, but the backend looks like rubbish and is really confusing to use, so that's out.
Any advice would be greatly appreciated...
[QUOTE=Lukasaurus;33095979]Hi all,
I am in a dilemma and about to have a meltdown.
One of my students (year 12) has decided she now can't finish her page, and her initial brief stated that the client wanted a website that was easy to maintain. I've been teaching skills this year mainly to do with HTML & CSS, because I'm not a web developer, I'm a high school technology teacher (and can only cover a certain amount of information with students who just don't seem to care - so content management systems got skipped due to lack of time). I also made sure that the students were aware at the start that their sites would not be too complex.
Now she recieves an email from her client's daughter in law who is all tech savvy and expecting a 16 year old to create wordpress/drupal templates.
I said I would convert her html page into a format usable by a CMS, but now I am stuck for what CMS to use. I need one that is REALLY easy to create templates for (as in, you just write html and stick special tags in where you want the content). And really easy. I've used light and easy cms before, and the templating is very easy, but the backend looks like rubbish and is really confusing to use, so that's out.
Any advice would be greatly appreciated...[/QUOTE]
you should get your student to use wordpress with starkers theme
[url]http://wordpress.com/[/url]
[url]http://starkerstheme.com/[/url]
[editline]3rd November 2011[/editline]
if she know about html and css, it shouldn't be a problem to create the theme.
Here is her page at the moment - Some of it is not too good (the HTML/CSS I mean, the client is happy with the design and layout and for a year 12, first web page ever attempt, it's pretty good), but I have to assess, not do it, so some things I would have done differently.
[url]http://test.techlight.org/paddyrichardson/[/url]
Will that be easily converted using starkers theme?
[editline]3rd November 2011[/editline]
I found GetSimple CMS. Templating looks relatively easy, the backend is userfriendly, and it is updated regularly... anyone know anything about it and whether or not I should steer clear? [url]http://get-simple.info/[/url]
Wordpress backend is not what this person requires. They only need to update single pages.
Ohh i was thinking about blogs. It wouldnt hard sine all the backend is done for you, but i would not use wordpress to do that. I've never experimented with cms.. Sorry
[QUOTE=zzlawlzz;33099108]Ohh i was thinking about blogs. It wouldnt hard sine all the backend is done for you, but i would not use wordpress to do that. I've never experimented with cms.. Sorry[/QUOTE]
That's cool, thanks for your suggestions :) I ended up using "Get Simple CMS" which is actually very simple. The backend is very user friendly for a person who has never made a website before. The only downside is the backend content editor is SO basic. But I am finding it really easy to make a template for. In fact, it took me less than 45 minutes :)
Take a look at Perch as well, super simple CMS.
[url]http://grabaperch.com/[/url]
Okay guys, I am in an Introduction to web development class and the instructor wants us to make a simple CSS file. I am looking for a CSS property that will make a paragraph look like a "blockquote" in HTML. So I want it to look like what this would look like:
[code]
<blockquote> Radda radda blah blah the content of this text is not important</blockquote>
[/code]
But I'm not allowed to fuck with the HTML code. He wants me to make a custom ID thingy (don't know the name) in my CSS sheet that when applied to a paragraph in the associated HTML page, will make it look like a big quoted section of text. He did not give us any instructions on how, and I tried googling it A LOT. So here is where I will put the CSS property:
[code]
#id1
{
/*property goes here*/; color:#895D26; font-size:14px;
}
[/code]
Don't laugh at me please, that would be rude. If I am not making clear what I am trying to ask here then let me know.
[QUOTE=rivershark;33104248]Okay guys, I am in an Introduction to web development class and the instructor wants us to make a simple CSS file. I am looking for a CSS property that will make a paragraph look like a "blockquote" in HTML. So I want it to look like what this would look like:
[code]
<blockquote> Radda radda blah blah the content of this text is not important</blockquote>
[/code]
But I'm not allowed to fuck with the HTML code. He wants me to make a custom ID thingy (don't know the name) in my CSS sheet that when applied to a paragraph in the associated HTML page, will make it look like a big quoted section of text. He did not give us any instructions on how, and I tried googling it A LOT. So here is where I will put the CSS property:
[code]
#id1
{
/*property goes here*/; color:#895D26; font-size:14px;
}
[/code]
Don't laugh at me please, that would be rude. If I am not making clear what I am trying to ask here then let me know.[/QUOTE]
use padding and border-left and
[QUOTE=rivershark;33104248]Okay guys, I am in an Introduction to web development class and the instructor wants us to make a simple CSS file. I am looking for a CSS property that will make a paragraph look like a "blockquote" in HTML. So I want it to look like what this would look like:
[code]
<blockquote> Radda radda blah blah the content of this text is not important</blockquote>
[/code]
But I'm not allowed to fuck with the HTML code. He wants me to make a custom ID thingy (don't know the name) in my CSS sheet that when applied to a paragraph in the associated HTML page, will make it look like a big quoted section of text. He did not give us any instructions on how, and I tried googling it A LOT. So here is where I will put the CSS property:
[code]
#id1
{
/*property goes here*/; color:#895D26; font-size:14px;
}
[/code]
Don't laugh at me please, that would be rude. If I am not making clear what I am trying to ask here then let me know.[/QUOTE]Use text-align: justify;
Quick question about rendering in IE7.
The menu of the following image has the following HTML:
[code]
<!-- main navigation -->
<nav class="menucontainer">
<div class="menu">
<div class="menuleft"></div>
<div class="menutile">
<ul>
<?php get_navigation(get_page_slug(FALSE)); ?>
</ul>
</div>
<div class="menuright"></div>
</div>
</nav>
[/code]
It also has the following styles (I only posted relevant styles):
[code]
.menucontainer{
width:100%;
text-align:center;
}
.menu{
display:inline-block;
margin:0 auto;
}
[/code]
The site works fine in IE8 & 9
But the menu won't centre in IE7
IE8
[img]http://test.techlight.org/IE8.png[/img] - Working fine
IE7
[img]http://test.techlight.org/IE7.png[/img] - Menu won't centre
[QUOTE=iamacyborg;33100728]Take a look at Perch as well, super simple CMS.
[url]http://grabaperch.com/[/url][/QUOTE]
That looks really nice but I can't justify spending £35 on it: :<
[QUOTE=twenty;33115683]That looks really nice but I can't justify spending £35 on it: :<[/QUOTE]
Maybe something like [url]http://pyrocms.com/[/url], it's simple and free.
There might be some that are simpler though.
[QUOTE=Lukasaurus;33115580]Quick question about rendering in IE7.
The menu of the following image has the following HTML:
[code]
<!-- main navigation -->
<nav class="menucontainer">
<div class="menu">
<div class="menuleft"></div>
<div class="menutile">
<ul>
<?php get_navigation(get_page_slug(FALSE)); ?>
</ul>
</div>
<div class="menuright"></div>
</div>
</nav>
[/code]
It also has the following styles (I only posted relevant styles):
[code]
.menucontainer{
width:100%;
text-align:center;
}
.menu{
display:inline-block;
margin:0 auto;
}
[/code]
The site works fine in IE8 & 9
But the menu won't centre in IE7
IE8
[img]http://test.techlight.org/IE8.png[/img] - Working fine
IE7
[img]http://test.techlight.org/IE7.png[/img] - Menu won't centre[/QUOTE]
Is a doctype declared? For as far as I heard a proper doctype fixes a lot of IE rendering problems.
yep :) transitional xhtml I think.
Sorry, you need to Log In to post a reply to this thread.