html

Which third party search engine (free) should I use ?

As the title says, I need a search engine... for mysql searching. My website is PHP based. I was going with sphinx but my hosting company doesn't support full-text indexes! So a search engine to be used without full-text! It should be pretty powerful, and must include atleast these functions below: When searching for 'bmw 520' only ...

zend search engine, need some guidance in the right direction please

I have been looking at manuals of the Zend search engine, but I don't really understand much of it. I have a php website (classifieds) and I want users to be able to search my mysql database for records. Can someone explain a little more about the Zend search engine, and how I should actually 'install' it. I don't have my own server (h...

Where is the dialogs' source code in CKEditor?

Could somebody with experience in CKEditor give me some pointers where to edit the structure and contents of the "insert Link" and other dialogs? At the moment, I want to modify the width of the link window, so that changing tabs doesn't result in the dialog being resized every time. I'm sifting through both the minified and unminified...

What should I do, create a search engine myself or use another one?

I have this classifieds website and I have now been searching for ways to implement a search function of the classifieds. I wonder, is there any tutorial for creating a pretty powerful search engine in PHP that you know of? I have looked into third party search engines, and it feels they are too much... PS: No full-text support on my ...

Is valid HTML5 OK to use now?

I've been reading about HTML5 and would like to start using some of it, particularly datasets as I've found an interesting looking jQuery plugin that I can start using... http://www.barklund.org/blog/2009/08/28/html-5-datasets/ Now, I understand that older browsers like IE6 may not like having extra attributes in there and may not know...

Override property in "style=" attribute?

I am trying to adjust the position of the background image of a button in CKEditor. CKEditor hard-codes button images with background-position: 0px 0pt. I don't want to change this, as it seems to be in the editor's core. I can, however, set a custom class for the button and style that in the style sheet. But because the background-po...

How do I parse partial HTML?

I'm trying to parse some HTML with DOM in PHP, but I'm having some problems. First, in case this change the solution, the HTML that I have is not a full page, rather, it's only part of it. <!-- This is the HTML that I have --><a href='/games/'> <div id='game'> <img src='http://images.example.com/games.gif' width='300' height='137' borde...

Applying html formatting in email's body

I am still trying to figure out, why i cannot apply html formatting in the body of a custom email. I am sure i am missing something, or i need a new pair of eyes! Here is the info added to the of the web page <head runat="server"> <link href="~/MyStyle.css" rel="stylesheet" type="text/css" /> </head> Mystyle.css contains the fo...

How to abstract the data away from the design in web pages?

What are ways of keeping the data separate from the design of a webpage, so that if you redesign the site, or you want to provide the ability for users to customize the layout, it would be really easy to do so. ...

How to change HTML tag content in Java?

How can I change HTML content of tag in Java? For example: before: <html> <head> </head> <body> <div>text<div>**text**</div>text</div> </body> </html> after: <html> <head> </head> <body> <div>text<div>**new text**</div>text</div> </body> </html> I tried JTidy, but it doesn't support ...

background image not displaying

can someone please tell me why the background image is not displaying in my php code. #wrap-iframe{ background-image: url(bg_01.gif); background-repeat: no-repeat; border:0 none; min-width:760px; min-height: 700px; } this is the CSS i have. the div box is displayed flawlessly. the image url is correct. if i inlcu...

CSS margins: aligning a list against a float-left image

Hi, The following is my first cut at coding-up a reddit-like comment in html+css. I have a few questions about css and the general structure: How do I get the comment body ("The King took off his hat...") to align with the comment head ("Nathan, posted...") and the comment tail ("reply permalink ...")? I tried making the margin-bottom ...

Is there a compressed representation of Xpath?

I am working on a project which requires working with XPath (on HTML). The (multiple) XPath is transferred to client-side inside JavaScript. Since XPath strings are long, I was wondering if there is a shorter representation which is equivalent to XPath? Perhaps one which works sort of like huffman encoding but specific to XPath. ...

How do i get html produced by javascript?

Hello everyone! I know the title is not very clear so i'll make an example: There are site A and site B, let's say they are financial sites. I need just one page (the one regarding italian pizza quotations) from both the sites, to compare some values and to know where and when to sell italian pizza at higher prices. Everything is really...

Set a:hover based on class

I have the following HTML: <div class="menu"> <a class="main-nav-item" href="home">home</a> <a class="main-nav-item-current" href="business">business</a> <a class="main-nav-item" href="about-me">about me</a> </div> In CSS, I want to set the a:hover for these menu items to a particular color. So I write: .menu a:hover { ...

JavaScript eyedropper (tell colour of Pixel under mouse cursor)

I am looking for an "Eyedropper" tool, that gives me the hex value of the pixel the mouse cursor is under, in Javascript for a CMS. For Firefox, there is the excellent ColorZilla extension that does exactly that. However, it's FF only of course, and I would really like to deliver the tool along with the CMS. A dutch developer has had t...

Is <dl> element from XHTML 1.0 adapted to display a resource tag list or a subscription feed ?

I wonder if the <dl> element from XHTML 1.0 is semantically valid to display a resource tag list, like that: <dl> <dt>Tags</dt> <dd><a href="">Lorem</a></dd> <dd><a href="">Ipsum</a></dd> <dd><a href="">Dolor</a></dd> </dl> Or with a subscription feed, as the code bellow shows: <dl> <dt>Feeds</dt> <dd><a href=...

Passing key-value pairs to a JavaScript file

Can you pass key-value pairs to a JavaScript file like that: <script type="text/javascript" src="http://www.example.com/script.js?key=value"&gt;&lt;/script&gt; ...

Vertical dividers on horizontal UL menu

Hi, I'm trying to create a horizontal navigation bar(No dropdown, just a horizontal list), but I'm having trouble finding the best way to add vertical dividers between the menu items. The actual html is as follows: <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5</li> </ul> The current css is...

Will margin and padding properties retain their specified values if…

Hi Assume width of a viewport (display area of a browser) is 800px and that margin and padding properties of some html element E are set to values of 200px and 300px. a) If we resize the viewport to width of 300px, then E will adjust its size to fit into the viewport – in other words, when viewport was resized, the sizes of E’s pa...