4
голосов
5ответов
3066 просмотров

Storing arbitrary info in HTML tags for JavaScript?

A very general question. I am dynamically generating a form that is split into multiple levels of tabs using HTML / JavaScript. I want to highlight some of the fields (those that have a value differing from a global template) with a star * symbol using CSS and background-image. A JS field iter...

7
голосов
1ответов
3924 просмотров

Using YAML tags to denote types

I don't quite understand how to use application specific YAML tags, and maybe its because my desired use of them is purely wrong. I am using YAML for a configuration file and was hoping to use tags to provide my configuration loader with a hint as to what datatype it should parse the data into -...

0
голосов
2ответов
182 просмотров

Php tags display

There are 4 tables used for storing tags: tagovi, tagovi_vijesti, tagovi_blogovi, tagovi_dogadjanja Structure od table tagovi: id - name Structure of table tagovi_vijesti: id - vijesti_id - tag_id The same is for other two tables. On main page I display tags from all three tables this w...

1
голосов
3ответов
257 просмотров

Matching of user search keywords to tags

Can somebody advise idea, how to match user input (few words) to appropriate tags in system (each of them also 1 or N words)? Here is sample to demonstrate problem: I have a Tags, assigned to objects. For example (tags are separated by COMA, but in real life I have relation to table) Object ...

0
голосов
2ответов
289 просмотров

onclick on link display only div, make other body balck or shaded

I have a page which has anchor tag clicking on which ma div tag toggles. I want to make whole body of page black or shaded except that Div tag.

0
голосов
3ответов
9210 просмотров

how to increase the height dynamically of 2nd div on giving more data in 1st Div

<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> <style type="text/css"> #t2 { width: 87px; top: 49px; left: -566px; } #t1 { ...

4
голосов
3ответов
3988 просмотров

PHP XPATH of HTML document omitting all tags. I want to keep them

I am parsing a HTML document with XPATH and I want to keep all the inner html tags. The html in question is a unordered list with many list elements. <ul id="adPoint1"><li>Business</li><li>Contract</li></ul> I am parsing the document using the following PHP...

11
голосов
5ответов
2582 просмотров

Algorithm that searches for related items based on common tags

Lets take StackOverflow questions as example. Each of them has multiple tags assigned. How to build an algorithm that would find related questions based on how many common tags they have (sorted by number of common tags)? For now I can't think about anything better than just selecting all questi...

0
голосов
2ответов
174 просмотров

popluating multiple id tags

How can i populate multiple id tags simultaneously. On my page i have id tags starting with "total_" phrase, like total_1, total_2 etc., is there a way by which i can populate each of them on a single click in javascript. Should i use regex or parser. Any help will be highly appreciated. Than...

0
голосов
2ответов
407 просмотров

how to download all the tags from delicious

how to download all the tags from delicious, like all the tags shown in: http://delicious.com/tag

1
голосов
2ответов
2715 просмотров

Access variable in jsp tag files inside a loop?

I try to create a jsp tag file, which will call a helper class to print the input object. So I created a file /WEB-INF/tags/formatter.tag <%@ tag import="package.Formatter"%> <%@ attribute name="value" required="true" type="java.lang.Object" %> <%=Formatter.format(p...

0
голосов
2ответов
188 просмотров

List of URL tags in HTML/JS/CSS

I need to replace all URLs within any website, also realtive URLs like /imgages/. Therefore I need a list of tags that can contain URLs which a browser would download such as href=, src=, url(). Are there any additions for HTML/CSS/JS?

4
голосов
2ответов
417 просмотров

Database design: Keeping track of tag changes between revisions

I'm building a revision system similar to the one Stack Overflow has and there's one thing I can't get my head around, what's the best way to the differences in tags between multiple revisions? The simplest way I can think of is we have 3 tables, revisions, tags and another to link the two. Eac...

15
голосов
6ответов
10272 просмотров

Tagging an SVN checkout with externals on development branches

Most of our projects use a lot of common code. We are (finally) moving towards a system where we are managing that shared code in a uniform way. We treat the shared code as a separate project in SVN, then reference it as an external. However, we tend to point the external libraries to development...

15
голосов
2ответов
8758 просмотров

Strip HTML tags and its contents

I'm using DOM to parse string. I need function that strips span tags and its contents. For example, if I have: This is some text that contains photo. <span class='title'> photobyile</span> I would like function to return This is some text that contains photo. This is what I trie...

1
голосов
3ответов
987 просмотров

how to remove parent element if it exists?

So, sometimes, my output will look like this: <p><img src="someimage.jpg" /></p> <p>A new paragraph</p> Other times, it will look like this: <img src="someimage.jpg /> <p>A new paragraph</p> I'm trying to write some sort of "if" statement wher...

3
голосов
4ответов
7008 просмотров

How do you retrieve the tags of a file in a list with Python (Windows Vista)?

I want to make something of a tag cloud for various folders I have, but unfortunately, I can't seem to find a way to access the tags of a file in Windows Vista. I tried looking at the win32 module, and os.stat, but I can't seem to find a way. Can I get some help on this?

5
голосов
6ответов
14793 просмотров

3D sphere tag cloud

Does anyone know how to achieve a 3D sphere tag cloud, like on this site: http://krypted.com/ Is there a Javascript library that can easily do this, or was it most likely written by hand?

1
голосов
6ответов
2114 просмотров

Regular Expression for Conditional Substitution of Angle Brackets

Is it possible to create a single regexp to replace with their entity equivalents in Komodo Edit? s/<|>/<|>/

20
голосов
5ответов
8276 просмотров

Django inclusion tag with configurable template

I've created an inclusion tag, however I'd like to be able to make the template optionally configurable. There doesn't seem to be support for this out of the box, so I'd like to see how people did this - maybe a method search the templates directory first for a specific template name and then fal...

1
голосов
3ответов
2559 просмотров

HTML tag replacement using regex and python

I have a Python script that will look at an HTML file that has the following format: <DOC> <HTML> ... </HTML> </DOC> <DOC> <HTML> ... </HTML> </DOC> How do I remove all HTML tags (replace the tags with '') with the exception of the opening and cl...

2
голосов
3ответов
1149 просмотров

Is it possible to simulate HTML tag <label></label> in asp:Label ASP.NET Control?

I really like the HTML tag which makes it really easy to see which label stands for which input element by checking its 'for' attribute. You know, something like: &lt;label for="txtInput"&gt; Enter your name&lt;/label&gt; &lt;input type="text" id="txtInput" /&gt; Is it possible to do ...

1
голосов
2ответов
1306 просмотров

Effective Custom Tag Parsing with C#

I'm currently playing around with a CMS idea I've got. It's based on a MonoRail, NHibernate stack. I know there are already a million CMS solutions out there. This is more for my benefit for trying some new stuff out. Anyway, the admin side of things is going well with a plugin architecture in...

0
голосов
2ответов
74 просмотров

what is the slickest way you have seen with respect to tag editing

i have a list of tags on a website next to each link and i want to allow users to edit this list (add, remove, modify) i want to come up with a slick way so they can do this without it feeling klunky so things like autocomplete, ajax without going to the server, etc have you seen any examples o...

3
голосов
2ответов
1150 просмотров

Generating tag cloud count given these 3 tables

I have these three table to store tags for photo albums. Here is the schema table 1: Albums Album_ID Album_Name table 2: AlbumTags Tag_ID Tag_Name table 3: AlbumTagBridge ID Tag_ID Album_ID What is the most efficient SQL to be able to come up with a result set that looks like this: Tag...

4
голосов
4ответов
985 просмотров

Recommendations for a simple search engine for bag of words?

Any recommendations for small, lightweight, bag of words search engine? I have a set of 'documents' that are each basically a small bag of arbitrary words. Given a new document, I need to get a list of 'similar' documents along with some weight for how similar they might be. Documents are likel...

2
голосов
7ответов
7859 просмотров

<br> HTML tag not cross-browser compatible

I have an issue with the HTML &lt;br /&gt; tag. I have 2 images above each other. With no &lt;br /&gt; between the two, the bottom border of the top image touches the top border of the bottom image which seems to be what it is supposed to be. Then if I put 1 &lt;br /&gt;, there should be some s...

3
голосов
5ответов
15567 просмотров

How to add text or characters using CSS (no javascript)?

Well it should work in IE, I know IE doesnt support content property anything other that?

1
голосов
4ответов
979 просмотров

PHP Search Title and Tags

Greetings, I'm thinking about the best way to implement a search on my website. I know about Sphinx and MySQL Full-text searches, however I'm not just searching a single field. I have two things that I want to search: the title of an article and the tags associated with that article. What I was...

0
голосов
2ответов
2945 просмотров

PHP Dom XML Parsing on empty self closing tags

I'm using DOM to parse an xml file. And I am having trouble catching an error that throws when the XML tag is empty and self closed. eg. &lt;Title /&gt; $xml=("http://www.example.com/xml-to-parse.xml"); $xmlDoc = new DOMDocument(); $xmlDoc-&gt;load($xml); $element = $xmlDoc-&gt;getElement...