html

Floating div in rails

When the user clicks on a link, I want to open a modal window (like the ones used in stack overflow, but centered). If the browser doesn't allow to open floating div, then go to another page. Is there an easy way to do this in Rails? (otherwise I can code it from scratch) ...

Compressing CSS and JS without mod_gzip and mod_deflate

I would like to compress the CSS and JS files on my server to minimise load times, problem. My hosting is with Streamline.net (big mistake, never go there) who will not activate mod_gzip and mod_deflate due to security issues. Does anyone have another way to compress these types of files (and image files too if poss) without going the ...

adding rows dynamically to an html table with no rows

i am using this to add a row dynamically to a table $('#myTable tr:last').after('<tr><td>1</td><td>a</td></tr>'); but it doesn't seem to work if the table has no records: <table id="myTable" class="altTable"> <thead> <tr> <th> Col1 </th> <th> Col2 ...

Anyway to bring up the 'Open / Save' dialogue for the user?

Not sure if the title makes sense sorry... basically I'm generating Word documents that I wanted to open automatically on the client's machine, but it seems this isn't possible, so instead of just presenting a list and having them manually click on each one, I was wondering if at the very least it could bring up the 'Would you like to sa...

PHP & HTMl Mix in a PHP $Var

Mixing html and php is simple: <? while($row): ?> <p><?=$row['name'] ?></p> <?php endwhile; ?> But how could i store html like this into a php variable? (Purposed syntax, but doesn't work) <? $html = ?> <p>My HTML!!</p> <? ; ?> ...

Why can't radio buttons be "readonly"?

I would like to show a radio button, have its value submitted, but depending on the circumstances, have it not editable. Disabled doesn't work, because it doesn't submit th value (or does it?), and it grays out the radio button. Readonly is really what I'm looking for, but for some mysterious reason it doesn't work. Is there some weird ...

table created using jquery is not accessible from servlet

Based on the help availed from stackoverflow I created the table with hiddenfields to pass the value to servlet, but in servlet I am unable to get the values of the input fields. Here is my jQuery code to create table: $("#linkInstr").click(function() { var arr = new Array(); var cdid = $("#cboinstr option:selected"); var c...

How can I get content of HTML <body>

Hi, when I have html: <html> <head> </head> <body> text <div> text2 <div> text3 </div> </div> </body> </html> how can I get with DOM parser in JAVA content of body: text <div> text2 <div> text3 </div> </div> becasuse method getTextContent return:text text2 text3. - so without tags. It is possible ...

jQuery wrap() not working

HTML: <input type="text" class="text text-1" /> jQuery $('input.text-1').wrap('<span class="textfield-1"></span>'); CSS: .textfield-1 { border: 1px solid #d00; display: none; } wrap() doesn't seem to work. I don't see 's wrapped around input in firebug. If they were wrapped, inputs would be hidden with display:none, but ...

Addthis javascript button/widget adding space to top of webpage

If you view this page http://www.herkimer.edu/news/view/community_members_complete_jointly_offered_machine_operator_training_progra/ You'll notice a green bar (screen-shot: http://grab.by/1msh) at the very top. It has something to do w/ the addthis widget you'll see underneath the h1 title. If you reload the page a couple times, the ba...

Is their any asp net server control which could render <label> tag?

I want to render a <label> tag. But want to set some of it's properties while it's rendering like for and text value. Actually my real problem is I want to associate a label with a radio button and this is the code so far I have: <asp:RadioButton ID="Option4" GroupName="A" runat="server" /> <label for='<%=Option4.ClientID %>' id="lbl...

Query HTML file with LINQ

Does anyone know if there's a library that will allow you to Query the HTML DOM with LINQ? Something like LINQtoHTML. Would it be useful to create such a thing if it does not exist yet? ...

Is 'action' a keyword in jQuery?!

I was having this issue with jQuery not being able to find a <form> element in my HTML for the past day and a half. I ran my HTML through validators multiple times, validated my JS and CSS, and even removed unnecessary JS and CSS files, which is now reduced to this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/T...

Get html output from python code

Guys, I have dictionary and would like to produce html page where will be drawn simple html table with keys and values. How it can be done from python code? ...

Ask the help for regular expressions in Android

Hi, all. I am a beginner on developing Android's application. I have some problems about using regular expressions in Android. In my application, I had write some code for get back the source code of a html page which I had turn it in String datatype. And now I want to use regular expressions to retrieve some details in the html tags ...

Using numerous tables in a single page, is it a problem ?

If i use multiple tables on a page say 15 tables in a single page then will it affect page performance? ...

How to get 19KB Minified version of jquery file?

Jquery.com shows Minified and Gzipped version as 19KB? Production (19KB, Minified and Gzipped) Development (120KB, Uncompressed Code) but when we click on download for Production version. it goes to this link http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.min.js&amp;downloadBtn= and the file which is on thi...

Any suggestions on how to trouble shoot internal server error for an almost identical script?

On my site I have a contactUser.php that sends mail and a replyMail.php. I have put PHPMail on my contact user to send email notifications which is working great. When I put the same code chunk on my replyMail (which mail goes to the same place as the contact user mail,the inbox) that shares the same variables its giving me a internal se...

In Internet Explorer 7, text-align: right is not taking effect

Is there any way to make the header align towards right? Tested in Internet Explorer 7 only. <html> <style type="text/css"> th { text-align: left; } </style> <body> <table width="100%" border="1"> <thead> <tr> <th style="width: 250px;">Tag <th st...

Browser-populated form input text gets styled differently, makes input fields unreadable.

I'm working on the my site which is done with a black background. I've changed the coloring on the form input fields. However, when I return to a page with saved text in a field, the background color becomes white, and the text color stays a light color (grey) and thus becomes somewhat unreadable. e.g. input{ background-color:blac...