web-development

Why I can't send a post method in RoR?

I have this method to post the value to the "/store/add_to_cart" <form action = "/store/add_to_cart" method="post"> <% for product in @products -%> <div class = "entry"> <%= product.title %> <%= product.price %> <p> </div> <% end %> <%= select( "payment", "id", { "Visa" => "1", "Mastercard" => "2"}) %> <%= submit_tag 'Make Order' %> <...

Post parameters are becoming null (at random)

Hi, My web application is developed with Struts2 and it was working fine till recently. All of a sudden one of the modules has started malfunctioning. The malfunctioning module is 'Update Student details' page. This page has a lot of fields like 'schoolName', 'degreeName', etc . School 1: <input name="schoolName"> School 2: <input ...

Can a standalone web application built with cherrypy be compiled?

I want to build a web application that stands completely by itself, apache not required. Is cherrypy a good solution, and can this be compiled with something like py2exe? ...

JavaScript issue with Chrome

I'm not sure how this is Chrome specific, but it is. This is working on every other browser, including all IE* browsers etc. In fact, there's no code here that's client specific. All of this is being generated on the server. Yet after clearing Chrome's cache a million times and restarting it... the following doesn't work: <script type="...

best practice for dealing with common "structural" elements of pages?

Hi everyone, Very basic question: I am coding a web app that has a handful of pages. These pages have the usual shared elements: eg, the site's header/masthead and a side-bar are present on all pages. The HTML is static (not dynamically generated, its "ajaxy-ness" is done client-side). What is the best way of importing/"including" thos...

Ajax Calendar always visible

Hi there, Is it possible to have an ajax calendar inside a div and make it be always visible,like asp:calendar? and highlight today's date and add some task to the calendar for different dates? Thanks in advance ...

window.location.replace JS

What does the following code return? window.location.replace("/ak012/(S(sar23pq1ki5wo22qqmmidvie))/HTML/Page.ashx?ID=4") ...

TinyMCE editor - line breaks not correct

Hoping there's some TinyMCE guys in here ready to help. I'm using the BBCode plugin. I have the following lines in the editor window: This is line one This is line three Line two is empty. When I'm viewing this in HTML i get the following. This is line one This is line three Without the extra empty line. tinyMCE.init({ mode ...

Some fundamental but important questions about web development?

Hi All: I've developed some web-based applications till now using PHP, Python and Java. But some fundamental but very important questions are still beyond my knowledge, so I made this post to get help and clarification from you guys. Say I use some programming language as my backend language(PHP/Python/.Net/Java, etc), and I deploy my...

Finding the origin of HTTP request on a page

How can I figure out where a request is made in a javascript application? I'm debugging a large application which generates an incorrect HTTP request somewhere. I believe I haven't configured something properly with the API generating the request (Google Maps). If I could figure out where the request is made, then I could trace back to...

How can you prevent Internet Explorer from caching HTML without using random query-strings

We are currently using random query-strings to prevent Internet Explorer from caching HTML on postbacks, but we are in the process of implementing URL re-writing and it would be nice if we could remove these random parameters. What's the best pratice in this situation? ...

PHP Login Redirects

This is maybe a stupid question, but I figured I'd ask before I did something goofy: I've got an web application with a custom Login dialog which takes a user/pass that gets sent to the server. If both match an entry in the database, then there is maybe 10 or so pages that the user gets access to (depending on the rights associated with ...

Best Practise of Making notifications for logged in user

Hi. I am making a web-site , which is a social network. There is need of making overall notification block/bar on the website. User should be notified when a) there is new message b) there is new friend request c) there is new photo rating .... As application (php/mysql) should be made with future calculation of minimum 100-1500 us...

How to get a web page input datas?

Am very New to Web Page Development. In my website i have the help page like Name, Email ID, Contact No, Comment and Submit Button Suppose i entered the data in the help page , then i press submit button means that entered data's should sent to the email account For Example Help Page Name - Raja Email - [email protected] Contact - 98763...

Getting started with PHP and Expression Web

I want to build a basically interactive website with these tools. I need to make a navagation bar with a submenu. Ex: Services then when mouse is over Services it looks like: Services boo foo I'm familiar with adding css styles, i'm just not sure about sub menus. On the php side of things, I want people to select from the ...

How to Save Print version of HTML for the current Page Server side.

I have some pages that I want to save the PRINT version of the HTML that the browser would render. I need to do this server side, because I want to convert it to a PDF and them embed it in an email. These pages I want to print have the following in the header of their Master Page. <link media="all" href="../css/stylenav.css" type="text/...

How to fix image maps in Safari? Broken when page is zoomed.

Safari 4 apparently has a serious bug with imagemaps - the clickable areas go out of registration when the page is zoomed to anything other than 100%. It pretty much renders image maps unusable. This is not my page, but it shows the problem; zoom in or out in safari and then click a shape: http://www.elated.com/articles/creating-image-m...

Does Object Oriented Design have a place in web development?

I work at a web development shop so naturally we deal with user profiles. When dealing with one of our sites I noticed that there was no 'User' class, which struck me as odd since we certainly have users. Instead the site relies on interacting with DataRows (this is C#) returned through static methods with little to no instantiation. ...

Examples of modal dialogs for comment forms?

I'm looking for examples of actual websites (not articles/demos) that use a modal dialog (like a jQuery dialog) to display comment or contact forms, in order to get some ideas of how I might want to implement similar functionality. I'm having some difficulty finding such sites via search, though. ...

Is it possible to have C# and vb.net in the same asp.net website?

Is it possible to have C# and vb.net in the same asp.net website? without separating in class libraries. ...