web-development

What's the best way to set HTML tags visible and invisible at code-behind?

Hi.. I have a Change Password page that has a H2 HTML tag that says "The password has been successfuly changed". This H2 tag, however, needs to be visible only on success. That is: I want to manually activate it (Visible=true) in the "Change password" button click postback event. The question is: What's the best way to control this H2 t...

jQuery animation issue in Chrome

I was animating an a element in jQuery using jQuery 1.3.2 and jQuery color plugin. I was animating the 'color' and 'backgroundColor' properties at the same time. In IE8 and FF it worked just fine. Chrome animated the mousehover color and then stopped. The background stayed the same and the mouseout did not undo the effect as it should ha...

SQL query in tables side by side instead of one long table

hi there, I have ajax ReorderList in my wep page,and I get the data from SQL Server. I would like to add table cells dynamically according to number of records and show the result side by side until for example I have five data in a row and then move to the next row, any idea? Thanks in advance ...

Python or Ruby for web development?

I'm a web developer proficient in HTML, CSS and Javascript, but to be able to develop my own web applications, I'd like to learn a programming language besides PHP. I've been learning Python for a while now but it seems a general purpose language, a bit complex, and not suited for web-development I guess. So if my focus is creating we...

does Microsoft JVM support writing cookies in Applets?

I know that sun's can handle that through JSObject but is there some way for Microsoft JVM? I tried using JSObject with Microsoft but's it's unable to write/read any cookies. it returns "undefined" instead. any help appreciated. ...

Is using flash on a website homepage considered bad practice?

Hi, We are revising our company website and I wondered if it considered bad practise to use flash on the home page. This would cause issues for those users who dont have flash installed (and maybe dont want flash) Thanks ...

Entity Data Model in MVC Architecture?

hello all I have created a entity data model in my MVC application. After creating I did some changes in the database. Should I create my entity model again or is there any way I can just update the entity model? Please tell me Thanks, Ritz ...

how to enlarge an image (any type) from c# without losing quality.

question says it all.. app would be in asp.net and c# (4.0) ...

JQuery: How to create a lighbox to open up a webpage

Using JQuery, how do I create a lightbox effect but instead of display a single photo - I want to display an HTML document within the lightbox. Essentially, if you have every used Facebook - they do this effect all the time. Instead of going to a new webpage to send a message, it just pops up the message HTML form inline on the current ...

is it possible to tamper post data when using frames

I have a site that is using frames. Is it still possible from the browser for someone to craft post data for one of the frames using the address bar? 2 of the frames are static and the other frame has php pages that communicate using post. And it doesn't appear to be possible but I wanted to be sure. ...

JQuery: Can I use a Dialog to open up an external web page?

Can I use a JQuery Dialog to open up an external web page, and if so - how? Essentially, I want to replicate the abilities of LightWindow using JQuery (LightWindow is based on scriptalous). www.stickmanlabs.com/lightwindow/index.html Ideally, I want to use something that is apart of the JQuery core. If it need to be a JQuery plug-in, ...

calling the default event handler from my custom click handler?

Hi everyone, I am using jquery to implement event delegation on my page. I define a click handler for the top level element, but only want to do something "custom" if the click fell on an element of certain class: $("#myDivWithManyLinks").click(function(e){ var target = $(e.target); if (target.hasClass('myClass123') { /...

REST api pagination: make page-size a parameter (configurable from outside)

Hi guys, we are having a search/list-resource: http://xxxx/users/?page=1 Internally the page-size is static and returns 20 items. The user can move forward by increasing the page number. But to be more flexible we are now thinking also to expose the size of a page: http://xxxx/users/?page=1&size=20 As such this is flexible ...

PayPal Web Payments Pro currency conversion

Here is the situation: US company, with all EU clients at this time (due to needing US approval that they are seeking). What is the best way to take USD and convert to EU with Paypal? Is there anyway to take an estimated weight and use Paypal to calculate shipping based on the country the buyer is from? ...

What is the best way to center a webpage's content using css?

I have seen several methods for creating simple fixed width single column layout using css. I like the one shown here because there is very little code involved and it works on every browser I have tried. css: body { text-align: center; } #container { margin: 0 auto; width: xxxpx; text-align: left; } html: <body> <div id...

Why can protocol be omitted from absolute paths on a webpage?

I recently ran across a website that had some interesting styling on a select element. I went to investigate and found this (names changed to protect the innocent): <script type="text/javascript" src="//www.domain.tld/file.js"></script> It works despite HTTP: being omitted. What is the purpose of leaving off the protocol? ...

Web API Design: Form POST'ing key-value pairs: JSON or checkbox style?

Design question for RESTful APIs: one of the input parameters to my API (that is, the data sent from the client to my API) is a dictionary (hash / key-value pairs). What's the best way to encode this so that the API can be easily invoked from web pages as well as scripts/programming languages? My first thought was to json encode the obj...

Which Google API/Tool should a web-developer know about?

I am looking at Google's list of APIs & Tools. Which Google API should a web-developer know about? Update: Programmable web - most popular shows currently Google Maps Google Ajax Search Google Homepage ...

What is the (most?) secure way to handle database connections in a web application?

I have a web application written in Perl using PostgreSQL. When accessing the PostgreSQL database I need to supply both username and password. In order to have the password available for unattended start-ups of the system I need have that password embedded in my application or in a configuration file or as an environment variable confi...

What is the recommended way to encrypt user passwords in a database?

In a web application written in Perl and using PostgreSQL the users have username and password. What would be the recommended way to store the passwords? Encrypting them using the crypt() function of Perl and a random salt? That would limit the useful length of passswords to 8 characters and will require fetching the stored password in ...