html

ASP.NET MVC search route

I setup a search route: routes.MapRoute( "Search", "Search/{q}", new { controller = "Search", action = "Index" } ); The search form has an input box and a button. I want the search with a GET as below. <% using(Html.BeginForm("Index", "Search", FormMethod.Get)) {%> <%:Html.TextBox("q")%> <span class="query-button"> ...

How to get rid of the double scroll bar problem when using an iframe

I've seen this problem on the web, and all the suggested solutions aren't working for me, so I thought I'd come here. I have a page that has an iframe. The top of the page is a dropdown menu, the rest of the page is the iframe. The idea like I'm sure everybody else does, is to have the menu stay stationary and the menu selection runs an ...

HTML character reference display problems.

Hey folks, I'm currently developing a site in Joomla, and one of the components I'm using makes use of a PHP file to administer the language. (english.php, spanish.php) The problem I'm having is that if I use the plain text version of eg. "á", it will show up in the browser tab title ok, but as a � in the body of the page. But if I use...

How to insert a UIImage into an e-mail with html content ?

Hi, I'm sending mails thanks to the MFMailComposeViewController API, and I manage to add uiimages in attachment, but I'd like to insert my uiimage into html code in my e-mail, any idea of what kind of conversion I should use for my image ? Thanks. ...

Need Json results in a Table Format

Hi, I am getting results in json format, i need to display my results in a table format, Getting a input from html, executing it servlet program, the sparql query shows result in Json format, can anybody help me in showing the result in table format? response.setContentType("json-comment-filtered"); response.setHeader("Cache-Control","n...

Jquery Session & Table Filtering

This is my Jquery <script type="text/javascript"> $(function() { var from = $.session("from"); var to = $.session("to"); var $th = $('#theTable').find('th'); // had to add the classes here to not grab the "td" inside those tables var $td = $('#theTable').find('td.bluedata,td.yellowdata'); $th.hide(); $td.hide(); if (to == ...

Left floated element and unordered lists (ul).

Hello, I am trying to indent the li elements of a ul. There is a left floated div with an image in it. The li element will indent only if I add left padding that is wider than the image itself. If I float the ul left, this solves the issue, but then all elements after the ul are floated to the right of the ul. If you would like to loo...

Wrap CKEditor WYSYWG content with additional (non editable) HTML to apply element specific formatting

I am attempting to have the WYSYWG view within CKEDITOR display with the same formatting as it will within the final rendered HTML. I am currently applying the correct CSS through specifying the contentsCss property when loading CKEditor. This works fine for some of the formatting, however a lot of the css formatting is applied to elem...

Internet Explorer 8 - Div disappears on resize.

I have a page which works fine in Firefox and Chrome. I.E. 8 however decides to not show a div when the browser is resized. Most of the page looks fine, but the div I am using for the content does not and just disappears when I resize I.E. <div id="wrapper"> <div id="innerWrapper" style="width:215px;"> <div id="mainColumn" st...

How to accomplish scrolling text on Twitter home page?

Hi, On the twitter home page (not logged in), there a scrolling text in the middle below the logo. How is this accomplished? It stops scrolling when mouseover and also has a popup dialog on relevant text. Thanks, Mike ...

CSS browser safe way to apply a radius border?

I want to apply a 3px top left & top right radius border. How can I do this across all browsers (e.g. IE, WebKit, Mozilla)? And if the browser doesn't support the border-radius attribute, just default to no radius (square corner). ...

Preview Site as Thumbnail

Hello all, I am trying to figure out how services like snap shot are so fast in showing a preview of a site as a small thumbnail when you hover over a link? I mean I can generate a thumbnail of a site and show it but it will take me 10 seconds or more but for services I have seen that provide this, its almost a second or two. How are t...

Drop down menus and pathetic art of styling

Sorry folks, I must be brain-dead or something but I can't get the styling on these drop-down menus to cooperate. I have the color and the font right, but I have unwanted spaces between the list elements and the a and the a:hover sizes should be the same. I would appreciate some help getting this to work correctly. Here is the page ...

Table-Laout:fixed rendering different in IE6/7 then IE8/Chrome/FF

Basically I want the column widths on a table to ignore the size of the data. Excess data can be cutoff. Right now it is stretching the width of my columns even though I'm using table-layout:fixed. My expected behavior works in IE6 and 7 but not in anything else. Further if I remove my DTD then it will work just fine in IE8 but still not...

How to calculate CSS letter-spacing v.s. "tracking" in typography?

I have instructions from a graphic designer for a layout that specifies "track 100" for some elements. In CSS letter-spacing is the equivalent property for "tracking". Given a value for tracking, how do you express this as a value for CSS in pixels? ...

pagination in php error

i've implemented this pagination class for search.php page in a separate file called class.pagination.php, but when i execute the search page, nothing happens. it just displays a blank page. this is my search.php file, where i'm calling this class: <?php include 'config.php'; require ('class.pagination.php'); $searc...

Regex with dynamic <textarea>

How can I do this with the JS replace() method: Make \n\n change to <p>$1</p> Change single \n to <br> Then back again. I think I have this part, see the JS at the bottom. Example HTML: <p>Hello</p><p>Wor<br>ld</p> The <textarea> would look like: Hello Wor ld So, how can I achieve this? It's an AJAX form where when you click o...

Scroll iframe by mouse coordinates

It is possible to scroll an iframe by mouse coordinates on mouse move event? ...

Fetch HTML page and store it in MYSQL- How to

Hi, What's the best way to store a formatted html page with CSS on to MYSQL database? Is it possible? What the column type should be? How to retrieve the stored formatted HTML and display it correctly using PHP? What if the page I would like to fetch has pics and videos, show I store the page as blob What's the best way to fetch a pa...

Setting <td> value using jquery

Hello, I have the div structure shown below. For the second <td> in the table i want to replace &nbsp; with a hyperlink whose href attribute is stored in the variable myLink. How can i do this with jquery ? Please help. Thank You. <div class="pbHeader"> <table cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> ...