tags

html auto tag completion

Is there any IDE that lets or complete the tag immediately ? eg. once i finish writing <html>, it will insert </html> automatically. this will reduce time and also help to reduce error. I am working in windows and would like to have some free editors/IDE. I am just starting to learn some html and web programming, so any tips is welco...

Trouble closing img tags in Javascript – using strict xhtml DTD

Hi I am using a Javascript called Niceforms.js which makes HTML forms looks pretty. It works fine under the xHTML Transitional Doctype, but I need to build my site using Strict xHTML. It has a few problems rendering under Strict and I'm fairly sure it's because it isn't putting the trailing slash in a few <img> elements so that they ...

Tagging file system instead of directories?

In the modern file systems there are files and directories. In a directory, there are sub-directories and files. My question is, wouldn't it be better if all the files were in one place, and each file could tagged? So each file have tags, just like in Stack Overflow: every question has tags. The main advantage, is that searching could b...

how do i stop beautiful soup from skipping rows while parsing?

while using beautifulsoup to parse a table in html every other row starts with <tr class="row_k"> instead of a tr tag without a class Sample HTML <tr class="row_k"> <td><img src="some picture url" alt="Item A"></td> <td><a href="some url"> Item A</a></td> <td>14.8k</td> <td><span class="drop">-555</span></td> <td> <img src="so...

Groovy/Grails validations and hasFieldErrors issue

I have created a custom tag that looks like this: def textField = { attrs -> def field = attrs.name.split('\\.')[-1] log.error("--------- Field is ${field}") if (attrs.bean && attrs.bean.errors.hasFieldErrors(field)) { def className = attrs.remove('class') def classStr = 'errors ' if (className) { ...

How to add CSS to struts2 tags

Hi, I am using struts2 to build a web application and I use struts2 tags extensively. I am not able to apply CSS styles to my struts2 textfields, buttons, labels etc., What is the trick for setting CSS rules to struts2 UI components. Please help ...

SVN - When you tag a working copy is it still a cheap copy?

Using Subversion, in my working copy I make a minor modification (update a version number). I would then like to tag my working copy. Would this tag still be a cheap copy with the modification, or would SVN duplicate the files? I would hate to see my repository grow enormously in size because I'm trying to save a version number change...

How to design tables that map the same entity ?

Given the two following tables : Gallery id | title | desc Site id | title | desc | url I've a tags system which can apply to both Gallery and Site tables. I'm wondering if I should do : TagMap tagId | entityId | applyTo Where applyTo could be 'site' or 'gallery' or use separate table like the following : TagGalleryMap tagId | g...

Delphi DB Aware visual attractive tag component available?

I need to implement a tag system for video program and before I build something myself, is there an attractive drag-n-drop tag component that will filter a table for me? ...

RegEx to extract all HTML tag attributes including inline JavaScript

I found this useful regex code here while looking to parse HTML tag attributes: (\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']? It works great, but it's missing one key element that I need. Some attributes are event triggers that have inline Javascript code in them like this: onclick="doSomething(this, 'foo', 'bar');return false;...

ruby nl2br outside <code> ... </code>

Hi everyone, I've been struggling on this thing for a week without being able to find what I'm looking for. Here is what I'd like to do: I'm setting up a wiki where I can post all my knowledge to (yes, I know a couple things :p) but I can't render it the way I'd like to. The bodies of my posts are text fields. In order to render them t...

Accessing Spring beans from servlet filters and tags

I can access Spring beans in my Servlets using WebApplicationContext springContext = WebApplicationContextUtils.getWebApplicationContext(getServletContext()); in the Servlet's init method. I was wondering is there an equivalent of the WebApplicationContext for servlet filters? Also, is it possible to access Spring beans i...

subversion: how to view comments placed on tags

Hi, How can I view the comments on the tags in svn? Assume I create a tag: svn cp -m"vhost apache config" file:///var/svn/repos/foo/trunk file:///var/svn/repos/foo/tags/release-0.1 Later, I have tagged many times, and I need to find out what each tag is about. I can use: svn ls --verbose file:///var/svn/repos/foo/tags --------------...

amp is included in url struts tag

Hi, In my web application, I use strust2 url tag to pass parameters like id etc., For example, I use a link to delete an entity and I use param to pass the id of the entity to be deleted. And I follow this throughout my web app for adding, editing, deleting an entity. During run time, sometimes, I don't get the params to be stored in ...

when to use JTSL ,struts tags

Someone can please explain whether to use JSTL tags or struts tags for presentation in jsp ? ...

Ruby on Rails: Notification System For Different Sets of Tags

I have a site with a tagging system but would like to enable users to be able to subscribe to different sets of tags of their choice so that when a new submission is made and has tags that match what the user is subscribed to they get a notification. For example, say a user is only interested in red, wallpapers that are considered large....

How to use anchors instead of Submit button in Struts2 ?

I wish to use anchors instead of submit button in a struts tag form. Can I do it ? How should i create it ? please help ...

Strip anchors down to their contents, only if the anchor's URL contains...

Does anyone know a regex function in PHP to strip an anchor of its contents, only if the anchor's href attribute contains specific text? For example, I have an HTML page and there are links throughout. But I want to strip only the anchors that contain "yahoo" in the URL. So <a href="http://pages.yahoo.com/page1"&gt;Example page</a> woul...

Getting elements children with certain tag jQuery

I'm trying to get all the input elements from a certain form from jQuery by providing only the name of the form and only knowing that those wanted fields are input elements. Let's say: <form action='#' id='formId'> <input id='name' /> <input id='surname'/> </form> How do I access them individually with jQuery? I tried something like ...

PHP: Opening/closing tags & performance?

Hi, This may be a silly question, but as someone relatively new to PHP, I'm wondering if there are any performance-related issues to frequently opening and closing PHP tags in HTML template code, and if so, what might be best practices in terms of working with php tags? My question is not about the importance/correctness of closing tag...