tags

What are asp .net validators rendered into in HTML?

Are all asp net validators rendered as < span> tags? This is important as spans are being used in the styling and a strict css heiracrchy is in place and I don't want to add redundant < span> tags around what will be rendered at runtime. ...

NHibernate query for matching all tags

Here are my relevant classes: public class Item { public virtual int Id { get; protected set; } public virtual IList<Tag> Tags { get; set; } } public class Tags { public virtual int Id { get; protected set; } public virtual string Name { get; set; } public virtual IList<Item> Items { get; set; } } These are mapped...

noindex, noarchive for dead web pages? what do you think is correct?

I've noticed that a fair number of web apps, in particular do not deal very well with pages/accounts that have been deleted. First off, I'll state that I am of the position that the content owner always owns the content and that if the content is deleted or the owner deletes the account, the provider/web app should do everything possibl...

Html Tag Error

Hi.... Im working with Visual studio 2003 and ultr grid... In my html code i can see tag error like "active schema does not support the element..." because of this i dont hav any problem to execute my web application.. but i just wanted to know why i am getting Tag error... is it because of third party tool ultrgrid?? Can anyone please h...

How can I always know about all tags in Mercurial?

I don't use Mercurial, but i'd like to start, so i'm reading about it. The only SCM system i've used extensively is CVS. Most of what i've read about Mercurial makes sense, and sounds good. But i'm alternately shocked and perplexed by that way it does tags. A tag is just a nickname for a changeset (and by 'changeset' we really mean the ...

Do browsers widely support numeric quotes in attributes?

There exist other ways of linking to JS, apart from this (the usual).. <script src="myscript.js" type="text/javascript"></script> ...that utilize other quote types: <script src=&#34;myscript.js&#34; type=&#34;text/javascript&#34;></script> Are these widely supported in modern browsers, and older browsers in use, such as IE6? Basica...

Can browsers understand unquoted attributes values?

Further to my last question, I'd like to know if current browsers can read attribute values without any quotes, even if the value contains slashes, like: <script src=/path/to/script.js type=text/javascript></script> Will it work without causing a DOM parsing error and corrupting the entire document? ...

jsp tag files and log4j

Whats the best way to add log4j logging to a jsp tag file.. I've got as far as importing the logger class.. <%@ tag import="org.apache.log4j.Logger" %> But having a bit of trouble initialising the logger object. <% Logger log = Logger.getLogger("xxx.xxx.xxx.xx"); %> Because I'm using a tag file with a .tag extension, what do I put ...

After stripping unwanted tags, what else should I do to text input?

In a PHP script I'm accepting input from the user from a textarea and want to allow a few basic tags. So when I output the string I'm using - echo strip_tags($content, '<b><i><ul><ol><li>'); Now normally I would use FILTER_SANITIZE_STRING but that would strip all tags and I would use html_entities() but that would prevent the tags I'm...

JSTL tag not translate in HTML.

Hi, My imports : xmlns:c="http://java.sun.com/jstl/core" xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" My JSTL Code : <h:outputLabel value="YESS" > <fmt:formatNumber value="0.25" type="percent"></fmt:formatNumber> HTML generated code: <label>YESS</label> <fmt:formatNumber value="0.25" type="percent"></fmt:formatNumbe...

Tag multiple branches in git?

I have a git repository with two branches; one for code that's used for manufacturing/test and one that's the actual production firmware (they're nearly identical). It's now time to cut a release to send to the manufacturer, so I naturally want to put down some appropriate tags on both branches. But, it seems that git won't let me put ...

Finding malformed XHTML with Javascript

Does anyone have a good way of finding if a string contains malformed XHTML using Javascript? Since my page allows 'user' generated XHTML returns (the users can be trusted) and injects it into the DOM, I want a way to check if there are unclosed or overly closed tags, and encode them as &lt; and &gt; so that it will simply display the e...

VIM and custom tagging

I am using vim in windows to edit assembly code. It is a nonstandard language and disassembly of the binary is done by a custom script so I define the format myself. I would like to use tags to be able to jump through the code for subroutine calls. I have searched around quite a bit and all roads seem to lead to using ctags to generat...

Proper tags for objects in jsdoc

What is the proper way to document objects of this style in jsdoc: /** */ var strings = { /** */ stripHTML: function(html) { //does something }, /** */ validHTML: function(html) { //does something else } } Namely the proper parameter to define the object, and to recognize the sub...

How can I get a bound control's client ID with javascript and/or server-side tags?

<asp:DataGrid> <ItemTemplate> 1) <asp:TextBox ID="tbComments" onChange="javascript:checkLength(<%# tbComments.ClientId %>);" runat="server"/> 2) <span id="<%# tbComments.ClientId %>Label"></span> </ItemTemplate> </asp:DataGrid> Any ideas to make the above working (which doesn't :P)? ...

How can I import a .ascx file into a .aspx page using tag registering?

Hi, I have this set up... <%@ Register TagPrefix="UserControl" TagName="UserLogin" Src="~/admin/Authentication/Login.ascx" %> <%@ Register TagPrefix="UserControl" TagName="UserRegister" Src="~/admin/Authentication/Register.ascx" %> Then later on in the same file I use the tags... ...

Remove Word 2007 tags from a text

Hi, Is there a way to remove tags from text, that was copy-pasted from Word 2007 on a server side (.NET) or client one (javascript). I need just text, without any formatting. ...

How can I emulate a SO-style tagging system in Rails?

I think that the SO-style tag system works very well and would like to emulate it in an app I am building with Rails. I am especially enamored by the way the tag entry box looks up the top 5 tag matches as you type. Is there a built-in function or plug-in that would do something similar for me in Rails? Otherwise, what would be a good...

is there any significant difference between the checkpoint in MKS and tag in subversion

Hi, I feel that checkpoint in MKS and tag in subversion serve the same purpose. when we create tag in subversion, it will create a local copy in physical location(Its a cheap copy pointing to main trunk. It will not consume space). When we create a checkpoint in MKS, will the contents gets stored in physical location? or is it just a ...

Time frames for Standard score

For finding trending topics, I use the Standard score in combination with a moving average: z-score = ([current trend] - [average historic trends]) / [standard deviation of historic trends] (Thank you very much, Nixuz) Until now, I do it as follows: Whatever the time is, for the historic trends I simply go back 24h. Assuming we have...