Forum: PHP 9 Days Ago |
| Replies: 5 Views: 149 No, use
<script type="text/javascript" src="image.js"></script>
instead.
It's cleaner. |
Forum: Ruby 9 Days Ago |
| Replies: 3 Views: 306 It looks like your YAML class is corrupted. Try reinstalling ruby:
C:/ruby1.9/lib/ruby/1.9.1/yaml.rb:9:in `require': no such file to load -- stringio (LoadError) means that the stringio library is... |
Forum: Ruby 9 Days Ago |
| Replies: 4 Views: 552 You also can use a (rather antiquidated, but included) cgi class.
The CGI class would be like
#!/usr/bin/env ruby
# *-ruby-*-
require 'cgi'
# Create an instance of CGI, with HTML 4 output... |
Forum: Ruby 9 Days Ago |
| Replies: 2 Views: 537 In short. No.
However, if, as noted before, you are using php files for data access, you can use pure ruby (or sinatra-like frameworks) to work with the data.
Rails will be extremely hard to mix... |
Forum: PHP 9 Days Ago |
| Replies: 5 Views: 149 Javascript Image Rotator:
(not PHP)
Usage:
The switchtime is milliseconds to switch (at 5 seconds right now),
The images array is an array of images to be cycled through. They can be a relative... |
Forum: Site Layout and Usability 24 Days Ago |
| Replies: 5 Views: 542 OK...
A few notes:
1 : The text bar at the bottom listing everything needs to be made into a css sprites navbar or an image map. People like clickability, or you can just remove it. You'll also get... |
Forum: Site Layout and Usability 25 Days Ago |
| Replies: 5 Views: 542 Well... I can't seem to load the website, it seems as if the dns is down. |
Forum: PHP 25 Days Ago |
| Replies: 2 Views: 164 Make sure you datetypes are stored from php's time() and converted to (my)sql when saved. That way you can use sql to compare the dates and return values, faster and more portable than using php.
... |
Forum: JavaScript / DHTML / AJAX 25 Days Ago |
| Replies: 2 Views: 331 Can't you use relative urls? |
Forum: JavaScript / DHTML / AJAX 25 Days Ago |
| Replies: 1 Views: 340 Do-- document.getElementById('myTable').getElementsByTagName('tbody')[0]
to get the tbody instead of the whole table if you want to.
Typically, browsers will try to 'fix' your markup by... |
Forum: PHP 26 Days Ago |
| Replies: 3 Views: 188 The bad code flying around on daniweb... yep.
But don't be sorry about it... help make it better :).
Teach people... |
Forum: Ruby 26 Days Ago |
| Replies: 1 Views: 422 Take a look at hpricot (http://hpricot.com/) and nokogiri (http://nokogiri.rubyforge.org/nokogiri/) |
Forum: PHP 29 Days Ago |
| Replies: 16 Views: 331 Is your database connecting at all?
Is this an inherited program? |
Forum: JavaScript / DHTML / AJAX 29 Days Ago |
| Replies: 7 Views: 496 The part about being different from before, can't be (easily) done through php, you'll need to do it through javascript (shouldn't be too hard). (HTTP is stateless).
I'd also just have PHP... |
Forum: JavaScript / DHTML / AJAX 29 Days Ago |
| Replies: 7 Views: 496 The part about being different from before, can't be (easily) done through php, you'll need to do it through javascript (shouldn't be too hard). (HTTP is stateless).
I'd also just have PHP... |
Forum: Ruby 29 Days Ago |
| Replies: 4 Views: 743 No. Do not try to develop online.
One, that will strain the shared host.
Two, you will be frustrated (only after 5 support tickets was I able to get mongrel working).
I would seriously recommend... |
Forum: PHP 29 Days Ago |
| Replies: 7 Views: 269 An overview of smarty http://blog.themeforest.net/tutorials/smarty/.
I like phptal more, and I think it's easier to learn. The handbook / guide on the linked site above provides everything you'll... |
Forum: PHP 29 Days Ago |
| Replies: 6 Views: 181 Do you have the site url?
Also, are you allowing any tags to work using strip_tags? |
Forum: ASP 30 Days Ago |
| Replies: 5 Views: 644 See here:
Hi,
Já vi virus causando isso, como está acontecendo no provedor, trata-se de um virus nos servidores do provedor. I have seen virus causing it, as is happening in the provider, it is... |
Forum: ASP 30 Days Ago |
| Replies: 5 Views: 644 I'd check your database for rouge entries, users.
Double-check your file permissions, and if your on a shared host, it might be a bad security setup in the host, allowing access to the files. Are... |
Forum: JavaScript / DHTML / AJAX 30 Days Ago |
| Replies: 8 Views: 492 $(function(){
$("ul.sc_menu a").click(function() {
$('#content #mainbg #infobox #trackinfo').animate({opacity:"0"},
function(){
alert('animated');
$.post('projects-agent.php', {'title':... |
Forum: PHP 30 Days Ago |
| Replies: 7 Views: 269 1st off - to 'OOP'ize code, you need to seperate views from the actual code.
2nd - Use a database class, an application class, and a main class.
3rd - Try to find a good templating system. I like... |
Forum: Ruby 30 Days Ago |
| Replies: 4 Views: 743 Start with learning bash and setting up a development linux machine, either virtual or dual-boot.
It will really save you in time and effort later down the road.
Then, install ruby on rails, and... |
Forum: HTML and CSS 31 Days Ago |
| Replies: 4 Views: 287 Is your version of IE7 an old version? Does it have any toolbars etc?
I'd develop on firefox, then make it work on ie7, then ie8.
Is the site online? |
Forum: HTML and CSS 31 Days Ago |
| Replies: 4 Views: 287 It might be an old version of ie7, thee are versions within versions. Try updating your computer.
Also, it might be due to a cache issue, try refreshing holding down shift (Shift+F5) to clear the... |
Forum: Site Layout and Usability 31 Days Ago |
| Replies: 4 Views: 717 Just add a meta redirect to the header in a new file, so the page will be redirected to the new website.
There will only be a link, like we've moved to a new page.
I don't see a reason to keep the... |
Forum: Site Layout and Usability 31 Days Ago |
| Replies: 4 Views: 717 Make an html page that uses a meta redirect and a moved message.
Google will interpret that page as a redirect.
However, don't use a javascript redirect, because google will not see that. |
Forum: PHP 32 Days Ago |
| Replies: 7 Views: 228 Nope. Unless you use some brand-new browser capiabilities, or flash.
If it's just a bunch of fields, you can try to save it to a session cookie variable, or cookies, but beware that cookies are... |
Forum: Ruby 32 Days Ago |
| Replies: 2 Views: 742 Try restarting your computer and stopping a running apache service.
There is a webserver running that is conflicting with instant rails.
To see what server it is, type localhost into your address... |
Forum: HTML and CSS 32 Days Ago |
| Replies: 2 Views: 251 Take a look at for information and tutorials: http://iain.codejoust.com/2009/05/learning-php-xhtml-css/
I would recommend to start with http://htmldog.com/ and http://w3schools.com/. |
Forum: PHP 32 Days Ago |
| Replies: 7 Views: 228 Save the client's ip (or session cookie id) on the server in the database when the entered information and the date.
When that computer visits the website again, you can poll the database and... |
Forum: ASP 32 Days Ago |
| Replies: 1 Views: 748 Check the javascript for getting the source, it seems to use IE-only extensions. Also, check for popup blockers, and look in the firefox error console for errors (Tools>>Error Console). |
Forum: PHP Oct 16th, 2009 |
| Replies: 1 Views: 550 Usually programs of this sort are called Content Managament Systems, that keep the content of a website within a database, and shown by a template.
Some good CMS solutions and reviews can be found... |
Forum: JavaScript / DHTML / AJAX Oct 16th, 2009 |
| Replies: 2 Views: 580 Learn javascript in an out.
Take a look at the contenteditable property.
Also, learn how to find the currently selected text within a textarea.
jQuery is good to learn, and take a look at a very... |
Forum: JavaScript / DHTML / AJAX Oct 14th, 2009 |
| Replies: 1 Views: 318 What is the styling applied by?
Is it inline the ajax input, or provided using css classes.
Does that html get escaped into visible entitles?
Also, try adding ';'s after every function call, it... |
Forum: PHP Oct 14th, 2009 |
| Replies: 14 Views: 311 You need to install the command line utilities for PHP:
sudo apt-get install php5-cli |
Forum: JavaScript / DHTML / AJAX Oct 13th, 2009 |
| Replies: 1 Views: 367 Learn jquery if you want to quickly and easily do menu switches:
$(function(){
$('a.menu').click(function(){
var loc = $(this).attr('href');
$('#content').load(loc+' #content');
});... |
Forum: Ruby Oct 13th, 2009 |
| Replies: 6 Views: 3,982 Actually, on second thought, I would just download vmware or virtualbox, download ubuntu (server edition if you want to do all the file editing remotely, or desktop if you don't).
You can look at... |
Forum: Site Layout and Usability Oct 9th, 2009 |
| Replies: 2 Views: 784 AJAX indeed does power Google's AutoSave.
The whole back-button conundrum-- was it any better with old-school cgi apps? Those are horrible in comparison.
I think web 2.0 is another catchphrase for... |
Forum: Search Engine Optimization Oct 9th, 2009 |
| Replies: 10 Views: 561 From a technical and SEO standpoint:
Sometimes you might want to duplicate the content on all domains, pointing them to the same documentroot.
If you want to user to think he is on the website name... |