web-development

How do I check the size of an element on a live web page?

For quality assurance purposes, I need to verify that certain elements are the correct size. How do I check the size of an element on a live web page. For example: size of the side bar, size of an image, etc. ...

Jasper report always showing no content, why?

Hi, I have the following code: InputStream reportFile = MyPage.this.getClass().getResourceAsStream("test.jrxml"); HashMap<String, String> parameters = new HashMap<String, String>(); parameters.put("StringParameterName", "show me"); try { JasperReport report = JasperCompileManager.compileReport(reportFile); JasperPrint print = J...

Why function callback of Connection is not handled with Yahoo UI ?

I use Yahoo UI with Grails (so grailsui) and I try to upload a file with Ajax and get a JSON response from the server : The response is correctly returned by my controller but a popup is displayed to save the file but it's not a file it's a JSON result. My Yahoo Code is : YAHOO.util.Connect.setForm(document.getElementById('formi...

Version Control with Web Development

Right now, I am using Dreamweaver to edit my files locally then ftp them to the live server. I want to start using version control (I am thinking subversion) but I have no experience with version control at all. So is this something I would need to setup locally or have setup on my web server? If on my web server, is this something I ...

How do I sort feeds returned from Google Reader?

When I query Google Reader for the list of subscriptions for a user, it seems to be returned in a fixed order, no matter what the order is as shown at google.com/reader. (see http://www.google.com/reader/api/0/subscription/list for the list I'm talking about) Each subscription returns a 'sortid', which Google Reader uses when the user ...

WOFF Fonts, what Are they and why should I care?

So mozilla has proposed a new webfont, i'm not really into that world, but i want to keep myself up2date. So whats the great thing since even Microsoft is backing it, why should I as a webdev care? Whats the difference from the old ones? Do we need another font system? In what situations should i use WOFF? Why not just stick to the exi...

Why does the ID of Google's OpenID implementation change?

I'm trying to implement OpenId login for a web application. Whenever new user who logs in via OpenId I create a new user on the sustem, and among the data I store their openid URL, so that next time they login with that user. I'm testing this with my Gmail OpenID, and the problem is that everytime I do this, Google sends a different ope...

Should I aim for fewer HTTP requests or more cacheable CSS files?

We're being told that fewer HTTP requests per page load is a Good Thing. The extreme form of that for CSS would be to have a single, unique CSS file per page, with any shared site-wide styles duplicated in each file. But there's a trade off there. If you have separate shared global CSS files, they can be cached once when the front pag...

How to extend QueryableFilterRepeater to override the filters shown?

In previous versions of DynamicData you could override GetFilteredColumns method from FilterRepeater to manage which columns are used to generate filters. But now FilterRepeater is obsolete, and his successor QueryableFilterRepeater don't have such method. There is any way to override the columns used for filtering with QueryableFilter...

Mercurial hg, am I doing it right?

We are in the process of converting from CVS to Mercurial hg. Our infrastructure is Windows 2003/IIS6 Each developer develop on their machine 1xDevelopement server 1xStaging server Production environment Here's what I have done so far: Installed Mercurial on my machine, on the development server and on the staging server. Created...

How do I change the cursor during a jQuery synchronous browser blocking POST?

$.ajax({ url: "/cgi-bin/stats.exe", method: "post", async: false, data: { refresh: "a41" } }); Using ajax post synchronously - "async: false". While it blocks the browser during the active request, what is the most efficient way to change the cursor to the hourglass or display a wait .gif? Perhaps ...

Error when pushing to Heroku - ...appear in group - Ruby on Rails

I am trying to deploy my first rails app to Heroku and seem to be having a problem. After git push heroku master, and heroku rake db:migrate I get an error saying: SELECT posts.*, count(*) as vote_total FROM "posts" INNER JOIN "votes" ON votes.post_id = posts.id GROUP BY votes.post_id ORDER BY created_at DESC LIMIT 5 OFFSET 0): ...

What to do with lookup entities selected from drop down select ? How to send them to the service layer.

I am developing a spring mvc based application. I have a simple pojo form object, the problem is that many properties will be taked from drop down lists that are populated from lookup entities, so I return the entity ID to the form object. public NewCarRequestForm { private makeId; // this are selected from a drop down. private...

zopim chatting service like div required

if you look at this http://blog.zopim.com/ site, you will see on the bottom side a chatting service,, i actually dont want the chatting service,, i just want the div to be up on the top of all the stuff present at my site.. just like this one.. how can i have that,,, if any samples please share it.. it wud be quite helpful.. thanks......

How to output multicolumn html without "widows"?

I need to output to HTML a list of categorized links in exactly three columns of text. They must be displayed similar to columns in a newspaper or magazine. So, for example, if there are 20 lines total the first and second columns would contain 7 lines and the last column would contain 6. The list must be dynamic; it will be regularly ch...

What version of Internet Explorer (IE) should my web app support

Since MS will stop supporting anything before IE 8 soon, I am not sure if I should make my web app compatible with those older browsers. I know there are still people using them but I don't know if there are enough to make it worth while. Any suggestions as to how to decide what version to support? Thanks. ...

Submitting Chinese characters results in XML entities

I am submitting a Chinese character to my form but once it is submitted it is coming as XML entity. For e.g. I am entering this 星洲 and the value going to my form is &#26143;&#27954; Any inputs how to convert this XML entity to the Chinese character equivalent. ...

HTML text-area editor for code that traps TAB key

Hello, I have looked for months now, for JavaScript-based HTML editor I can embed onto my web pages to replace a TEXTAREA, but to enable me to edit CODE in a friendly, closer to a real editor, way. All editors I've tried (RadEditor from Telerik, FCKEditor, TinyMCE, etc etc), do not trap the TAB key, very useful when editing HTML code ont...

TinyMCE is modifying the XHTML 1.0 Strict HTML I input. How can I stop it?

The code I want to have saved through TinyMCE is as follows: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="90" id="homepage-banner"> <param name="movie" value="/images/header.swf" /> <param name="wmode" value="transparent" /> <!--[if !IE]>--> <object type="application/x-shockwave-fl...

sub menu border calls onmouseout event

I've created a simple menu and submenu with tags(not allowed to use ul elements). To access the submenu the user hovers their mouse over the menu item. I use the onmouseover and onmouseout events to either show or hide the sub menu depending on which item is selected. A pipe (|) is used to seperate each submenu item and this is what is ...