html

call a c# .net aspx script from regular html

how can i do a form POST from a regular html file. and call a .net file that ends with .aspx what would my html file require? ...

How to get this element using jQuery selectors?

I use jQuery to get values of presaved elements from some websites, using paths like this: HTML BODY #bodyContainer #mainContentContainer #mainContent #productContentRight #swatchContent #colorSwatchContent SPAN The problem i faced when the websites page contains tables and there are same element in another similar path such as: ...

How to figure out which option is chosen from a select field

Does anyone know how to retrieve the option chosen from a drop-down select box? I'm using document.getElementById("mySelect").value and it doesn't seem to be working... ...

Cutting HTML strings without breaking HTML tags

How to write a function that can cut a string with HTML tags to an N-length string without breaking HTML tags while doing it. The returned string doesn't need to be exactly N characters long. It can cut it before or after tag that is on the edge of N-long string. Visit <a href="www.htz.hr">Croatia</a> this summer. CutIt(9) should re...

need help with IE 6

so i've been working on a website now for like a couple months and i test it on chrome mainly. but before i release anything big i always check it on firefox 3.something and IE7. Now i've received some complaints that that it doesn't look very good in IE6 and when i do check it... well ya it doesn't look like its supposed to. Is there an...

height property in IE 6 acting weird

Hi,...simple problem ( I hope) I have a div: with css: .break{position:relative;height:1px;background-color:#555555;margin:5px 10px 10px 10px;} This div shows up as a line about 10-20px thick in IE 6??? ...works fine in any other browser any tips would be appreciated,..thanks.. Andrew ...

How can I use javascript to convert relative href attributes into absolute paths?

I have a template that gets screenscraped from an outside vendor and need to include absolute paths in the navigation so the externally hosted content will properly link back to our site. Right now the page/template is driven by a global menu app written by our back end development staff... so anyone who updates our site goes in and cha...

How do I disable dictionary lookup in web browser input field?

When the user enters a date, it is underlined in red (because it's not in a dictionary somewhere). This is certainly an issue in FF, probably most browsers. Is there a way to flag an input field as "don't expect English words here?" ...

insert html after

Hello, my question is the following what would be the best way to insert a div container and the next one after the last inserted one <div class="pane"> <div class="inhoud"> <h3>Sample heading</h3> <p>Testbericht. </p></div> <form id="noteform" class="frm"> <input type="image" src="images/kn_verwijder.gif" alt="delete" cl...

How do you deal with the "special" characters that MS Word adds?

I'm wondering how you clean the special characters that MS Word as, such as m- and n-dashes and curly quotes? I often find myself copying content from clients from Word and pasting into a static HTML page, but the content ends up with weird characters because the special characters are not converted to their correct ACSII codes and ther...

Stripping HTML tags in Java

Is there an existing Java library which provides a method to strip all HTML tags from a String? I'm looking for something equivalent to the 'strip_tags' function in PHP. I know that I can use a regex as described in this Stackoverflow question, however I was curious if there may already be a 'stripTags()' method floating around somewh...

[JavaScript] How to check if Google Maps is fully loaded ?

I've embedding Google Maps on my web site. Once Google Maps is loaded, I need to kick off a few JavaScript processes. Is there a way to auto-detect when Google Maps has fully loaded ... including tile downloads and all? A tilesloaded() method exists that is suppose to accomplish exactly this task but it does not work. Thanks in advanc...

load html page with jquery and select element from it

Hello, I am having a problem with selecting an element from a previously loaded html page if I use this code, the one before last is designated too be the last in the dom-tree instead of the one that I just inserted $("div.wrapper:last").after('<div class="wrapper"></div>'); $('.wrapper:last').load('tbnote.html .pane'); $(".pa...

How to avoid a th element from inheriting properties from a tr element in IE6/7

I've got a table which has a repeating background image on the header: thead tr { border-collapse:collapse; background: #D3D2D2 url(images/background-table-header.gif) repeat-x top; } And this works across in both Firefox and Internet explorer, but if we want certain column headers to show the sorting direction we decorate the t...

Multiple select option rtl alignment problem

I have a multiple select element when i tried to aligned the options to the right i can't , and i searched the web for many articles but i failed to find the solution at last ...

Custom dropdown box using javascript and css

hi everyone, Is it possible to create a custom dropdown box using javascriit and css. for which i need to place a background-image for dropdown box using javascript If yes or no ? if yes . give any suggestion ? without using JQuery Thanks & Regards Ravi ...

How can I make a background clickable

I've been asked to make a sponsored background (site takeover) for one of our sites and the question arose of whether I can make the logos in the tiled background clickable. My initial thought was 'no', but the more I think about it, the more I think it'd be possible if I either used JavaScript to make the body element clickable, or fak...

I want to trigger an event every single time data changes in an HTML text input field regardless of focus

How do you catch the client-side event when a browser changes an input text field using the browser's autocomplete feature for a plain HTML input field? (This is the small dropdown on input fields that is supplied by the browser, I know that you can disable it with "autocomplete=off" in some browsers per input field.) I'm already bindi...

Showing HTML reports in CruiseControl dashboard

I have been looking into CruiseControl configuration recently (I'm a complete CC noob) and so far I understand that various XML reports generated by your build process (eg mbunit.xml, ncover.xml, fxcop.xml) can be shown in the dashboard by adding a reference to the xml to the following part of the ccnet.config: <publishers> <merge> <...

Can I use perltidy's HTML formatter in my automated Perl build?

I'm using Module::Build to perform build, test, testpod, html, & install actions on my Perl module that I'm developing. The HTML files that are generated are okay, but I'd be much happier if I could somehow configure Module::Build to use the perltidy -html formatting utility instead of its own HTML formatter. Anyone know of a way I c...