html

How to change html part of a tag with jquery ?

I have , `<span class="icon">&#9658;</span>` in Jquery I did, $(this).html('&#9660;'); and tried $(this).replaceWith('&#9660;'); too. but it displays '&#9660;' instead of converting it to a html icon like ▼. thanks ...

How do you get an XmlWriter to write an HTML tag with xmlns and xml:lang?

I am using an XmlWriter to render HTML. How can I get an XmlWriter to emit a proper tag that looks like this? <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> here is what I have so far var xml = XmlWriter.Create(HtmlFileName, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true}); xml.WriteDocType("html...

How do you convert a Word Document into very simple html in Python?

Every now and then I receive a Word Document that I have to display as a web page. I'm currently using Django's flatpages to achieve this by grabbing the html content generated by MS Word. The generated html is quite messy. Is there a better way that can generate very simple html to solve this issue using Python? ...

Best way to read data from another website

Here's the situation: I have a web application (Java servlets) at "mycompany.com". A business partner is going to supply me with data from his application at "yourcompany.com". His application is driven by a web form (POST). I know nothing about his application other than the results will always be returned via a web page. For example...

Excel and IE7 - Prevent IE from opening Excel files

I have a intranet webpage that is used to hyperlink to various files on a file server. The problem with the local-file linking is that Microsoft Excel files are opened in IE7 instead of Excel. This results in the Excel files VBA code and other features from working correctly. Is there a way using HTML/Javascript to force the file to be ...

swf submenu display problem in asp.net

I have swf menu with submenu, but when i put it in aspx page then i cannot see submenu items. because they have to get out from swf frame. how can i solve this problem? ...

How do I make a textbox and button so it will fire a javascript method and not post?

How do I create a textbox and button in HTML so that when I click it, it will fire a javascript method with the value and output the result below the textbox/button? And if you click again, it will continue to add new lines of output below the textbox/button? Say I have the following function: function double(number) { return numb...

Set System.Windows.Controls.WebBrowser's content to a static HTML literal?

Hello! I want to set up inline content of a WPF WebBrowser control: <WebBrowser> <html> <body><b>Inline content.</b></body> </html> </WebBrowser> Or alternatively: Dim wb As New WebBrowser wb.Content = "<html><body><b>Programmatic content</b></body></html>" ...

How can I remove external links from HTML using Perl?

I am trying to remove external links from an HTML document but keep the anchors but I'm not having much luck. The following regex $html =~ s/<a href=".+?\.htm">(.+?)<\/a>/$1/sig; will match the beginning of an anchor tag and the end of an external link tag e.g. <a HREF="#FN1" name="01">1</a> some other html <a href="155.htm">No. 155 ...

HTML input control maximum available width?

I have a row in a web page. which has three controls SomeText Input Button It is like this <div> SomeText <Input/> <img> </div> In above img is floating right Right now i have Input size 30, but in small resolution 30 is too big for the row and it splits in two. I want input width to be maximum available inste...

EmailMultiAlternatives adding a 3D when sending mail with image in django

Hi, I'm using the EmailMultiAlternatives class to send text and html mails with django. While testing with some dummy code, I wanted to add an image with some text. msg = EmailMultiAlternatives('My subject','some text here', '[email protected]', ['to@my_domain.com']) msg.attach_alternative('<p>here is what I was talking about</p> <img src...

Mysterious url in our html website

Dear Community members, The home-page of our static html website http://www.iffort.com is transferring data from a mysterious website rawalrohi.com. You can check this by going to iffort.com and noticing the footer there. It says transferring data from rawalrohi.com. From our side we did the following things to rectify the issue a.)...

Why people use <object classid=""> to show PDF instead of src="1.pdf"

What's the difference? ...

What's the best tool on Windows to rename CSS elements in both a CSS file as well as in multiple HTML files?

I need to rename a large number of CSS elements in both the CSS file in which they are defined as well as in multiple HTML files in which they are used. What's the best way to do this on Windows? ...

Position Fixed in CSS within a bounding box?

I have a comment box like so... <div id="comments"> ... </div> Now, inside this comments div I have another div called box... <div id="comments"> <div id="box"> ... </div> </div> The box div is position: fixed and it works mostly fine, but... What I would like is, instead of the box div "floating" above all the con...

How to Create a Dropdown List Hyperlink without the GO button ?

I just want to create a dropdown list whenever I choose a new value inside it will take me to a new webpage. I don't want to let user to click "GO" button to go to the page. Just on select and call the action. How can I do such ? <form> <p align="center"><b>Select a Site </b> <select id="setit" style="color: #0000FF" size="1" name="test...

jQuery val() on HTML Select Text takes precedence over Value

Take the below HTML select for an example: <select name="selValues" id="selValues"> <option value="1">One</option> <option value="2">Two</option> <option value="3">5</option> <option value="4">3</option> </select> If we write the following jQuery statement: $('#selValues').val('2'); // Two will get selected $('#selV...

Styling the selection color of an input type=text, possible?

Having an input <input type="text" id="myTest" value="bla bla bla"/> and doing this (using jQuery) $('#myTest').select(); causes "bla bla bla" to be selected with default dark blue selection color. Now, is there any way I can change this color using css? css3 can change selection using for instance ::-moz-selection { backgroun...

Which HTML elements can receive focus?

I'm looking for a definitive list of HTML elements which are allowed to take focus, i.e. which elements will be put into focus when focus() is called on them? ...

Get text from HTML

Hi, I need a way to get all text from my aspx files. They may contain javascrip also but I only need this for the HTML code. Basically I need to extract everything on Text or Value attributes, text within code, whatever... Is there any parser API available? Cheers! Alex ...