Hello
On a very first access to a website, is it possible to know if browser cookies are activated thanks to the GET request?
Is it possible particularly in a J2EE context? On the server side (no ajax/js solution)
...
Other SO threads have asked people
if they prefer N-Tier or MVC
architecture.
I'm not looking to
continue that debate on this thread.
I'm looking for something more specific.
My Question:
Does Anyone Still Prefer N-Tier Architecture After Having Shipped an MVC Application?
Reason for My Question:
Before I shipped an MVC web ap...
I am wondering if it is possible to dictate the order (i.e. :order => 'created_at DESC') within the view. I realize that logic in the view is not ideal but I seem to be having some problems locating where to affect this output.
For instance, here is my code:
<% @user.questions.each do |question| %>
<%= link_to_unless_current h (ques...
I basically have a div on my site that always has the same stuff. However, this div is not present on all pages which is why I won't use the dynamic web template. I was wondering if it was possible for PHP to get the code from a document on the server and put in into the div?
Ex:
<div id="section...
then my text file contains
<p>hel...
I'm using PHP include to include a PHP file that has HTML in it. some of the content has french accents and these show up as � on the site. How can this be solved?
Thanks
Here is the PHP file I include:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html di...
I'm 16 years old, and I've recently started to do freelance jobs. I've been playing with PHP since I was 12 and think that I can code reasonably well. So far, I've created a library for fetching info from LinkedIn profiles and some WordPress plugins.
However, right now this client wants me to convert an HTML template into a WordPress ...
Hello all,
I have this iframe and as u can see it call a js function with the onload trigger.
<iframe name="top" id="top" width="99%" height="20%" src="top.htm" frameborder="0" scrolling="no" onload="log_in()"></iframe>
What i need to do is to effect the element inside "top.htm" (change innerHTML and stuff like that) from that functi...
When I look at ASP.NET MVC projects I everytime see loose coupled architecture.
For what do I need a loose coupling in a web architecture (if I do not make unit tests)?
What are advantages and disadvantages of this?
...
I want to create a service that allows diverse web site owners to integrate material from my web servers into content served from their own servers. Ideally the resulting web page would only be delivered from the web site owners server, and the included content would be viewed as being part of the site by Google - which I think would rul...
Hi,
I'm learning web development, and I don't know how do this simple thing.
I've a html form with "text", "radio" and "checkbox" controls, that POST the values to the server and it saves them, for example in a file. I save the POST in raw format:
key=value&key=value&key=value&key=value
and I'd like that when the user open the form ...
I have several servers to test new code on. I primarily push out asp.NET web applications. Last week, I had an issue where I installed a newly developed web application on three servers. The three servers all run in separate environments. The application worked fine on two of them, but consistently crashed on the third server with ea...
Ok, so I had this working just fine before making a few controller additions and the relocation of some code. I feel like I am missing something really simple here but have spent hours trying to figure out what is going on. Here is the situation.
class Question < ActiveRecord::Base
has_many :sites
end
and
class Sites < ActiveRecor...
I am trying to restrict access to certain actions using a before_filter which seems easy enough. Somehow the ApplicationController is not recognizing that the current_user is the owner of the user edit action. When I take the filter off the controller correctly routes the current_user to their edit view information. Here is the code.
Li...
I am currently testing a large web form and would like to be able to easily populate the form with several different lots of test data without having to type them each time.
Is there a generic way to capture form inputs on a web page and have them repopulated on a different page load? I thought a tool like greasemonkey might be able to...
I can't seem to figure out how to do this. I am trying to pass four different variables to a single table. To be more specific I am trying to create a "like" in a likes table that also captures the site_id (like an answer), user_id, and the question_id. Here is the set up.
class Like < ActiveRecord::Base
belongs_to :site
belongs_to ...
Well, to build my menu my menu I use a db similar structure like this
To assign another submenu for existing submenu I simply assign its parent's id as its value of parent field.
parent 0 means top menu
now there is not problem while creating submenu inside another submenu
now this is way I fetch the submenu for the top menu
<ul cla...
We have XML interfaces between multiple systems. An Enterprise Domain Model is missing in the overall architecture, hence the terms
Product/Customer/User means different things to different systems.
We currently use excel sheets to map the elements in incoming XML to what the actual Field means within our system.
Additionally, it contai...
I'm going to create a web site which should manage users accounts.
A user opens an account and gets relevant data for his needs.
What technology should I be using to create this site?
Are there any templates I could use?
I don't have the time to take care of the web site's desgin,
Are there any places where I can buy some graphics?
Th...
This is really two questions one leading into the other. Firstly what does 'Permission denied to access property 'href' from a non-chrome context' actually mean?
Secondly I am using overlays in OpenLayers and wish to change the opacity of said layers, this is where this error is being thrown the code of which is here...
<input id='opac...
Hi there, can anyone explain why named anchor tags would not work in safari but work fine in other browsers: ie, ff, opera, chrome.
I have some links to different areas of the same page and nothing happens when clicking on them in safari only. All the other browsers mentioned take me to that area of the page.
I have tried using both t...