html

How do I add a confirmation popup on a button (GET POST action in MVC)?

I have a get/post/JSON function on an aspx page. This page adds data entered in a textbox to a table populated by javascript. When the user select the submit button. If the textbox is not empty, have a popup button telling the user the data in the textbox is not saved in the table. How do I have a confirm "ok/cancel" popup display on ...

Can I define which characters are allowed to 'break' a word?

Hey guys, I'm showing up veeeery long URLs in my Safari extension. Obviously, they can't fit on a single line. Currently, word breaking rules make it so most URLs are on two lines: the first one is rather short and ends with the ? symbol, and the other is ridiculously long and contains all the rest of the GET parameters. I'd like to ma...

File browser control to replace <input type="file">

I'm working on an ASP.NET web application for our corporate intranet users. I have a form where a user should provide a path to the file on the local network (something like "\localServer\someFolder\someFile.ext") without uploading the actual file. The issue is that users don't want to type the whole file path and want to use some kind ...

Populate <html:text> field from a <bean:write> tag.

I want to populate a field from a session bean. I attempted this: `<html:text property="docId" value="<bean:write name="queryResponseBean" property="queryResults" />" />` but to no avail. thanks. ...

Colspan in IE7/8 not respected

The DOM looks like this: <table> <tr> <td>a</td>...<td>g</td> </tr> <tr> <td colspan="3"> <table> ... </table> </td> </tr> <tr> <td></td>...<td></td> </tr> </table> Any idea why this wouldn't work in IE? I tried setting width:auto on the TD holding the inner table, and table-layout:fixed...

Regex BBCode to HTML

I writing BBcode converter to html. Converter should skip unclosed tags. I thought about 2 options to do it: 1) match all tags in once using one regex call, like: Regex re2 = new Regex(@"\[(\ /?(?:b|i|u|quote|strike))\]"); MatchCollection mc = re2.Matches(sourcestring); and then, loop over MatchCollection using 2 pointers to find s...

/regexp?/ on HTML, but not in form

Possible Duplicate: RegEx match open tags except XHTML self-contained tags I need to do some regex replacement on HTML input, but I need to exclude some parts from filtering by other regexp. (e.g. remove all <a> tags with specific href="example.com…, except the ones that are inside the <form> tag) Is there any smart regex te...

codeigniter fatal error, trying to read database

Fatal error: Call to a member function result() on a non-object in C:\wamp\www\system\application\models\users_model.php on line 8 <?php class Users_model extends Model { function get_records() { $query = $this->db->get('users'); return $query->result(); } } ?> ...

How to overlay a div (or any element) over a table row (tr)?

I'd like to overlay a div (or any element that'll work) over a table row (tr tag) that happens to have more than one column. I have tried a few methods, which don't seem to work. I've posted my current code below. I do get an overlay, but not directly over just the row. I tried setting the overlay top to $divBottom.css('top'), but th...

JQuery, Hierarchical Table pagination.

Hierarchical Table and table pagination is asked several times. But I am looking for both of them together. Am already using JQuery in my application so plugin using same will be useful, but I am open for any suggestion. At present I managed to display Hierarchical data by using some jQuery plugin and added my own pagination method, but ...

Is there a difference between placing JavaScript calls in $(document).ready(function(){ and placing them in HTML?

Is there a difference, performance or efficiency wise, between placing javascript calls such as blur, onclick etc. in $(document).ready(function(){ as opposed to placing them in HTML? Thanks! ...

HTML where will the focus go next if I press tab?

Hi all, Is there some way of knowing where will the focus jump to when the tab key key will be pressed and certain element has the focus? I am thinking on something to be used this way: var nextElement = whereWillFocusJumpTo(currentElement); Thanks! ...

Is there a unified way to know if a node is visible or not?

Hello guys, I'd like to be able to know if a node is visible and rendered on screen. As far as I know, there are at least 3 standard and easy ways of making HTML nodes not visible: Setting opacity: 0; Setting display: none; Setting visibility: hidden. I could check for just these three, but I'm afraid people can get creative when it...

HTML Option Tag with Value set as an Anchor

Hello, I am updating some super legacy code and I am unsure how to make this HTML5 compatible. <option value='<a href='http://localhost:8080/dm?id=&amp;#037;&amp;#037;SUBSCRIBER_ID_TAG&amp;#037;&amp;#037;'&gt;View in a browser window</a>'>Display Message(HTML Version)</option> I personally have never run across something like that so...

New line (in the code) after <li> element breaking layout

Weirdly, I've never come across this issue before, but I've just started making a site and the top navigation isn't playing nicely. I want a small amount of white space between each menu item, but when I have new lines between my <li> elements and my <a> elements in my IDE (Netbeans), the white space disappears, yet it looks fine if I h...

css anchor div to foot of page

I may bounce my head off the wall shortly, I can't believe that something as stupid as this has utterly defeated me ... therefore I turn to you, Stack Overflow ... for guidance and enlightenment. Problem: Sit div at foot of page, 100% width, outside of any sort of wrapper. Proposed Solution: http://ryanfait.com/sticky-footer/ Implem...

How to have hidden link actions on PNG image ?

http://www.ika-world.com/search.php?view=weltkarte See link for example. Image is a PHP created PNG image. When viewing just the image, then no link actions are present. I cant figure out how the link actions are added. Please help. ...

Resizable background on website

Is it possible to resize the background image of a webpage as the browser window is resized? ...

Why image button dont work with forms in IExplorer 7+ ??? (Html)

Hello guys, i have a web form who send post variables like: <form action="teacher.php" method="post"> <input name="pass" type="password"> <input name="quiere" type="image" value="submit" src="IMG/unlock-32.png" /> </from> In the same page i check for a submit acction with php doing a simple isset check like: "if (isset($_POST['qu...

How does refer(r)er work technically?

I don't understand: how are webserver and trackers like Google Analytics able to track referrals? Is it part of HTTP? Is it some (un)specified behavior of the browsers? Apparently every time you click on a link on a web page, the original web page is passed along the request. What is the exact mechanism behind that? Is it specified b...