web-development

JQuery: $(this).text('some_text'); is causing my link to have a border

I have the following code: $('a.btn-slide').toggle(function() { $("#SliderDIV").slideDown("fast"); $(this).text('Hide/Show'); }); Only in Firefox, when I click the a href link to hide/show the DIV, Firefox display a dotted border around the href link (which I don't understand why and it shouldn't be). However, in IE and Chrom...

Standalone jQuery "touch" method?

So, I'm looking to implement the ability for a plugin I wrote to read a touch "swipe" from a touch-capable internet device, like an iPhone, iPad or android. Is there anything out there? I'm not looking for something as full as jQtouch, though was considering reverse engineering the code I would need out of it. Any suggestions on the be...

HTML: Is there an ascii character for a up/down triangle (arrow)?

I'm looking for an html/ascii character which is a triangle up and down so that I can use it as a toggle switch. I found , and - but those have an arrow "stem". I'm looking just for the html arrow "head". ...

WebSockets authentication

What are the possible ways to authenticate user when websocket connection is used? Example scenario: Web based multi-user chat application through encrypted websocket connection. How can I ensure (or guarantee) that each connection in this application belongs to certain authenticated user and "can't be" exploited by false user impersona...

JQuery: How to perform a "push" slide, not a slide up?

I using the following JQuery: $("#pushSlideDiv").slideDown("fast"); However, this creates a "slide" effect. Meaning, if I do a slidedown, this makes the underlining DIV reveal it's self from a top-to-bottom reveal. I want a "push" effect, where the slidedown instead reveals as though the div is being pushed onto the page ... where yo...

Web user interface. Add new item and list of items

Hello all I need your opinion on the following question. It's need to implement the administration web interface to add\change\remove\display system users. I need to display all users and controls for user adding/changing. What is the common pattern in web for this situation: create one page or create two separate pages for displaying a...

Heroku Push Problem part 2 - Postgresql - PGError Relations does not exist - Ruby on Rails

Ok so got through my last problem with the difference between Postgresql and SQLite and seems like Heroku is telling me I have another one. I am new to ruby and rails so a lot of this stuff I can't decipher at first. Looking for a little direction here. The error message and PostsController Index are below. I checked my routes.rb file an...

Coordinated logging in a SharePoint farm

We are deploying web parts to SharePoint 2007 and would like to include logging (log4net). The ideal solution would be to use a database appender to avoid the problems with knowing which actual server is executing the web part. This questions has been helpful: http://stackoverflow.com/questions/219668/sharepoint-and-log4net. I've got ...

How long do you keep session cookies around for?

Hi, I'm implementing a web app, which uses sessions. I'm using GWT and app engine as my client/server, but I don't think they're doing anything really different than I would do with PHP and apache etc. When a user logs into my web app, I am using HttpSession to start a session for them. I get the session id like this: // From my login...

Visual Studio 2010 Web Developer Express Tools.Attach to Process is not exists

Hello, I have loaded Web Site from HDD. Now trying attach it to process WebDev.WebServer.EXE. But in Visual Studio 2010 Web Developer Express edition of VS not exist tool Attach To Process. Is it normal? if yes, how can add this tool or solve my needs? ...

how to display a SWF over a span or div?

Hi, I have a swf file with a semi-transparent + tint effect and a HTMl element <span id='mybutton'>My Button</span> I want to place the swf over the span, so that i can see div/span/a the content through swf. Edit 1 How can i write a JavaScript code to place this swf over the element have id='mybutton'. If any JQuery code available ...

Is this a legitimate implementation of a 'remember me' function for my web app?

Hi, I'm trying to add a "remember me" feature to my web app to let a user stay logged in between browser restarts. I think I got the bulk of it. I'm using google app engine for the backend which lets me use java servlets. Here is some pseudo-code to demo: public class MyServlet { public void handleRequest() { if (getThreadL...

Special characters incongruence

Hello I'm building a Spring MVC web application that runs on Tomcat 6.0.20 and JDK 1.6.0_19. When I send some special characters through an HTML form some of them are stored as question marks ? For example these symbols are stored correctly: €, á, é, í, ‰, etc But some symbols are replaced with ? like: ₤, ♪, ☺ MySQL tables charset is u...

For who know both Java Web and Desktop

For who know both Java Web and Desktop, is it more easy a Java Desktop programmer change to Web, or vice versa? ...

Web developement learning env

I am currently learning Ruby on Rails. I currently do all my development on my laptop. However, I know in all "real world" situations, I will be connecting to a dedicated server that will hold the site. So here is my question: what are the pros and cons of developing on the machine I use vs running the website on a separate server? ...

Zend Linked or Dependent DropDowns

Hello, Does anyone knows how to properly make dependent dropdowns using the Zend Framework? I've found several ways to do so, but none of them is using the framework features. Dependent Dropdown: The options shown on the "B" , depends on the option selected on the "A" . Thanks for your help, Best regards, ...

What is wrong in the jquery code?

I have been struggling in fixing this code, wonder what is wrong at all... var tips = "<p class="adobe-reader-download">Most computers will open PDF documents automatically, but you may need to download <a title='Link to Adobe website-opens in a new window'"; tips +=" href='http://www.adobe.com/products/acrobat/readstep2.html' target='_...

Python script repeated auto start up.

I am designing a python web app, where people can have an email sent to them on a particular day. So a user puts in his emai and date in a form and it gets stored in my database. My script would then search through the database looking for all records of todays date, retrive the email, sends them out and deletes the entry from the table...

Best way to track the stages of a form across different controllers - $_GET or routing

Hi, I am in a bit of a dilemma about how best to handle the following situation. I have a long registration process on a site, where there are around 10 form sections to fill in. Some of these forms relate specifically to the user and their own personal data, while most of them relate to the user's pets - my current set up handles user s...

Conventional Approaches for Passing Data to Back-End?

I'm fairly new to web development, so please pardon the painfully newbie question that's about to follow. My computer science class group and I are developing a web application for class, which is built in Python (under Django) and uses jQuery on the front end. It's primarily an Ajax-ified application, and passing data from the backend ...