html

how to use url and jquery

i wanted to know how do you get http://wesitename.com#overall How to make a div show when the link is #overall ? ...

Trying to output HTML from Jquery $.ajax call to web service

I am trying to return an html table from a asp.net web service but can not figure out how to get the string that is returned to be actual html. Here is my jquery call... $.ajax({ type: "POST", url: "UserService.asmx/PersonTable", data: "{}", dataType: "json", ...

Regex for Encoded HTML

I'd like to create a regex that will match an opening <a> tag containing an href attribute only: <a href="doesntmatter.com"> It should match the above, but not match when other attributes are added: <a href="doesntmatter.com" onmouseover="alert('Do something evil with Javascript')"> Normally that would be pretty easy, but the HTML ...

Cufón font security

I've been trying to research a safer way to implement Cufón that would store the actual font data in a MySQL database that could be queried and returned when necessary, without having to store the converted .js file on the server (and break EULA). Is this even possible? I'm still in the beginning stages of testing this out. I've alread...

Width of input type=text element

How come when I do this: <input type="text" style="width: 10px; padding: 2px"/> <div style="width: 10px; border: solid 1px black; padding: 2px">&nbsp;</div> the input ends up 2 px wider than the div in both IE6 and FF3? What am I missing? EDIT: As many people have said, the border is the issue. If I set border: 0px on the input, it w...

How can I hide an HTML table row <tr> so that it takes up no space?

How can I hide an HTML table row <tr> so that it takes up no space? I have several <tr>'s set to style="display:none;", but they still affect the size of the table and the table's border reflects the hidden rows. ...

rendering multiple Calendars bloats html, bogs down page

note: I am using the Infragistics control because this is inherited legacy code, but I am not above rewritting with an ASP.NET control if that is a better solution. I have a Repeater control that uses an Infragistics WebDateChooser to select a date for a record. Let's say each item in the Repeater represents a customer, and I am selecti...

How can I tell if a jQuery node is at the beginning of its parent node?

Given the following HTML: <p><img id="one" alt="at beginning, return true" />Some Text</p> <p>Some <img id="two" alt="in middle, return false" />Text</p> <p>Some Text<img id="three" alt="at end, return false" /></p> How would I be able to tell that $("img#one") is at the beginning of its parent node? Ideally what I'm trying to do is ...

Why does sIFR chop off letters?

What would cause the bottom of characters like p, f, y to be invisible when using sIFR? ...

jQuery smooth change of innerHTML

I have the code below working like a charm: var div = $('#div'); div.html('<div>one line</div><div>another line</div>'); div.slideDown('slow'); But the problem comes when I need to change the content (the number of lines): div.html('<div>one line replacement</div><div>another line replacement</div><div>third line</div>') This trans...

Getting the window size of the opener window (IE)

For FF and other non-IE browsers, window.opener.outerWidth/Height give me the info I need. For IE, I'm still at a loss, from IE6 to 8. I can't use jquery as the opener's page is beyond my control, so I can't do a window.opener.$(window). This requires the opener to have jquery 'attached' (correct me if I'm wrong). I googled quite a bit ...

Dynamically added SELECT element does not fire onchange event in Internet Explorer

As far as I can tell this only is only broken in Internet Explorer. I have a script that creates multiple dynamic <select> elements and adds an onchange event for them. The onchange event fires in Firefox with no problem but in Internet Explorer it never fires. Using Developer Toolbar I see the DOM has the correct event listed, it jus...

CSS cursor customization.

I'm trying to make a CSS code that changes the cursor to a picture file when the cursor is on a webpage. I've seen sites that give you a simple code to do it but they always have ads. Any codes you guys know that can do this? ...

Programming References Anyone?

Since I started working I go to StackOverflow for everything. But as we all know it is good to have many ways to skin a cat. where is your other favorite website to visit for programming Reference? ...

Overflow css attribute browser interpretation differences

Hi, I was just skinning a website and found that overflow:visible renders two completely different things from Firefox to IE. Firefox just displays everything outside of the container... like this: -------------------------------- | div style="overflow:visible" | -------------------------------- //overflow content from the div ab...

Objects on the Same Line without Losing positions?

Hello There, I am trying to put two banners on top of a navigation bar with everything nicely centered. I can get the two banners to nicely sit by one another but when I make the browser window smaller the first banner goes on top of the second! Is there a code where I can prevent this??? If so please let me know. Thank you very much....

Check Radio Button when clicking DIV

I'm writing a quiz application using php / jquery. The answer selections are contained like so: <ul id="answers"> <li> <div> <input type='radio' name='answer_id' value='313'> True </div> </li> <li> <div> <input type='radio' name='answer_id' value='314'> False </div> </li> </ul> After being styled w/ css, these...

Best practice: loading rendered html or json?

Hey folks, I have a question which feels stupid but I can't quite say why. Background: Imagine a webapp with users and tags. Users tag each other. I've got one page in the app which displays details about a single tag in relation to a single user. Let's say user 'bob' and tag 'footag'. On this page, I'm displaying two lists: all the p...

How to get rid of white space between <a hrefs> and <img>

I have a bunch of hrefs that have images inside to make a menu on the upper left corner of the page. After the menu i have an image right next to it that expands to the end of the page. However that image right now is dropped below the menu area. How do I get rid of this white space? .MenuArea { position:relative; width:225...

nested forms (design question)

Hi, I have a list of items displayed on my page. Item A [Edit] Item B [Edit] Item C [Edit] Each item is editable When you click on a edit icon. The edit form is displayed with a ajax call and the controller return a form. Edit form for Item A [Save] Item B [Edit] Item C [Edit] But all the list is bulk editable and so each item h...