Using Ruby on Rails, I have created a blog. The blog has posts, and comments associated with each post.
I want to add a name field to the comment controller (or model, not sure), so that the commenter is identified. Since right now it's just a comment that's being added. The name field should be stored in the database.
What is the b...
I'm looking for a way using jQuery to return an object of computed styles for the 1st matched element. I could then pass this object to another call of jQuery's css method.
For example, with width, I can do the following to make the 2 divs have the same width:
$('#div2').width($('#div1').width());
It would be nice if I could make a t...
Possible Duplicate:
What is the best way to programatically detect porn images?
Im currently working on a site were i would like to offer the users to freedom to upload images to be displayed on said site. The problem is i dont want pornographic images to be displayed. i know google and other sites are already using some sort of...
I need to insert a horizontal bar chart in a web page. The thing I have to do is very similar to a Gantt Chart.
I'd like to use a javascript library for the purpose. I tried jsgantt, but actually it is not very beautiful.
I could evaluate also a server generation of the graph. In case my server side language is Python.
It will be part...
Hello!
For a website we're about to implement automatic country/language selection, but still giving the user the choice to change it.
First of all, if the user enters the website using a domain with a country-level TLD they will be presented the correct language by default. But the question is what should the logic be if they come fro...
Hi there
I hava an unordered List navigation and i wanted to transform this to JSF code.
Actually , there is no JSF tag ..
Here is the raw-HTML Navigation :
<ul id="navbar">
<li id="articles"><a href="Link1">Articles</a></li>
<li id="topics"><a href="Link2" title="Topics">Topics</a></li>
....
</ul>
..so what should i do ?
...
I am helping someone out with a javascript-based web app (even though I know next to nothing about web development) and we are unsure about the best way to implement a feature we'd like to have.
Basically, the user will be using our tool to view all kinds of boring data in tables, columns, etc. via javascript. We want to implement a fea...
I'm using ASP.NET webforms and lots of javascript/jQuery. I'm looking for a really simple and easy way to implement spell checking for a single text area in IE (since all the other browsers implement their own spell checking). I usually stay away from IE specific technologies but I'm willing to make an exception since I only need the f...
Working on a site that is just HTML and CSS. I am quite new with this. I have a header, body and footer that I would like to repeat to fill up the page. Think envato.com.
Here is some sample code I have so far.
CSS:
.blkside {
z-index:99;
background-image: url(/images/blkside.jpg);
background-repeat: repeat-x;
top:0px;
right:85px;
pos...
Hi -
A few associates and myself are starting an EMR project (Electronic Medical Records). I have heard talk in the past - and more so lately - about a standard record format - to facilitate the transferring of records when appropriate (HIPAA) from one facility to another. Has anyone seen any information on this?
Much appreciated,
Jim
...
I think the subject pretty much covers it. I'm not a web programmer (I am a programmer), I'd like to write some play web apps, I don't really have a lot of spare time. So what's the quickest way to get up and running to play around with GWT?
...
I am writing a DOM inspector, something like what firebug is doing but sure very simpler "just inspect elements".
What i want to do is when the user click on an element it will make some functions i wrote, and in same time i don't want this element to do any other pre attached events.
Means:
If the user inspected anchor element, and t...
I just want to know why people use dot net over something like php for web dev. What are the advantages? Is it true that .net generates your javascript and html?
...
I would like to know which steps and which concepts do you follow when you're starting a web application from scratch.
When you're asked to develop a new web application and the only thing you're told is which features are wanted, how do you do ?
How and in which order do you conceive all the different layers in your application, from ...
hi,
I am planning to build a RIA about a year from now (when my current contract ends). What technology would you recommend investing time in?
I will need good cross browser/platform support for video, music, and canvas.
And ideally I would like to leverage my Python skills.
Silverlight looks interesting because I could use Python th...
I'm developing a sort of web application and recently come a need to log some of user activities in it. Therefore come with natural question is it a good idea to use Apache server logging mechanism for that? If the answer is yes, please explain why and so if not. Mine main concern is reduction in performance as a result of enabling loggi...
I'm returning an UTF-8 XML response and some elements have user provided content, so I must ensure they are properly escaped. Is using htmlspecialchars(..., ENT_COMPAT, 'UTF-8') enough for a proper escape of an XML element text?
...
Possible Duplicate:
Which Javascript framework (jQuery vs Dojo vs )?
What is the best? I mean: what I need is simple AJAX features and OOP javascript tools, and manipulation of DOM.
Think about the future, popularity and possible extensions or integration with other tools, what is the best choice?
Thanks
L
...
Hello there,
Assuming I have the following html div which I want to replicate its children, changing the value of each span in the process
<div><span class="foo">[Name]</span> <span class="bar">[Name]</span></div>
Using jQuery I can get a reference to the "div" by
var $div = $("div");
and then clone as in
var clone = $div.childre...
I've been playing a little bit with Arc/Anarki and Clojure lately. But what I really miss is something like mod_arc or mod_clojure for Apache. What I really miss is good Apache integration for a Lispy web language.
Both Arc and Clojure use their own built in webserver that you launch within your code. I want all the functionality, re...