html

How to get the "Text" of a html page ? (Webbrowser - Delphi)

Hi , I'm using WebBrowser to get source of html pages . Our page source have some text and some html tags . like this : FONT></P><P align=center><FONT color=#ccffcc size=3>**Hello There , This is a text in our html page** </FONT></P><P align=center> </P> Html tags are random and we can not ...

How to deal with different kinds of encoding in the javascript

I recognized that based on a context in which I want to use some parameters, there are at least 4 kinds of encoding that are necessary to avoid corrupted code being executed : Javascript encoding when constructing a javascript code, e.g. var a = "what's up ?" var b = "alert('" + a + "');" eval(b); // or anything else that executes b ...

How to restrict '♥♣' characters in text box.

Hi All, How can i restrict '♥♣' like characters from saving into database. If these characters appear in name text field, a error message should be thrown. I am using ruby on rails. Thanks, Anubhaw ...

How can I catch the back button event?

Is it possible to catch the JavaScript event when a user hits the back button in the browser or if history.back() is triggered? Best solution would be with mootools. I know there is window.onbeforeunload but this is triggered also when a form is submitted or a link is clicked... ...

REGEX for only data and end tag

I am looking for REGEX which will give me data along with the end tag e.g. input: ----------------- <p>ABC<p> ----------------- Output would be ----------------- ABC<p> ----------------- it will only remove the first para para tag,Not for the second para tag and all text in between would be same. I want to mention here that i am ...

HTML: caching problem with textarea+firefox

hi, i have a textarea which contains some encoded html and i'm experiencing weird caching problems with firefox. for the first time i displayed it anything was fine, then i cleared the textarea's content manually. i refreshed that page and since then the textarea remains empty. i already added this to the header: <meta http-equiv="Pr...

Getting an irregular area in a web page (much like a Java GeneralPath or Polygon)

Is it possible to create an arbitrary shape on a web page so we can detect mouse overs/outs on it? It's much like an area map for an image but corresponds to a page (or a div etc) rather than an image. This might be a non starter altogether as I haven't found any information in this area. Thought I'll just ask here to see if there is a...

How to calculate color shadows codes ?

I would like to know / calculate color codes of N red shadows (N can be 5, 20, or 50, for example). How could I do this ? I noticed, for example, that the following gives some red shadows: R = 255, G = B = 0..255 R = 0..255, G = B = 0 Is there any known method to calculate shadows ? ...

jQuery: How-to toggle display on hover

I have 2 spans. First one: <span class="body"> Second one: <span class="desc"> My CSS: .desc {display: none;} What I want to do, is show the second span, when hovering the first. No fancy effects or anything, just show the span. I know there is a simple jQuery solution out there, but I'm new to jQuery so I'd appreciate some help fin...

Absolute Positioned DIV within another Absolute positioned DIV does not show on IE

Please refer to http://stonepay.sonikastudios.com/css/style.css as well as http://stonepay.sonikastudios.com/ for the actual page reference if you like. I have a dropdown menu that shows up on click. This works on the "Our Services" and "Our Projects" menu items, and the fade-in and all works just fine. Being dropdown menus that cannot...

CSS Positioning - IE problem

hi, I have a problem for my layout... it should be simple but I just can't get it right. It works on Firefox but not on IE. Problem: the div rightBar should be resizing to the content. If there is a lot of text, it should have the same height (therefore, I used top and bottom on an absolute positioning) the content is all right and it w...

How to make CSS - angles-image + background? And height - 100% or auto?

Hello everybody! I have already made CSS a lot of times, but did not work and a lot of glitches ... I will show picture - glitch: See picture - http://beta.areku-developstudio.org.ua/new.png See picture (this is necessary, as better quality): See picture2 - http://beta.areku-developstudio.org.ua/new2.png How to make CSS - angles-image...

why does setting attribute "disabled" on a input text box stop that field from posting to the server when you submit a form??

if you set "disabled" on a input and submit a form, that field doesn't seem to be in the Request.Form when you post to the server. What is the logic behind the design decision to not post this field solely based on some presentation layer decision? This makes no sense to me . .. ...

how to insert image in html.actionlink - asp.net mvc

how to insert image in html.actionlink - asp.net mvc? i did it so, but it doesnt works. <a href="<%= Html.ActionLink("search", "Search", new { searchText = "txtSearch" }, null); %>"> <img alt="searchPage" style="vertical-align: middle;" height="17px" src="../../Stylesheets/search.PNG" title="search" /> ...

html images - two adjacent images

I have two images that I want adjacent but they appear one above the other. here is the code: <div style="float:left;"> <div style="float:left;"> <img src="/logo.png" style="float:left;" /></div> <div style="float:left;"> <img src="/logo2.png" width="55" style="float:left;" height="50"/</div> </div> Note that both divs containing the...

"Share this link" HTML Widget

Are you aware of any HTML Widget (Jquery?) that can be integrated in a dynamic web page allowing users to share the visited link to well known social networks like "Delicious, Facebook, Twitter..etc etc."? It would be cool a customizable solution that can be tuned to match the graphic layout (colors, font) of the site. I would like to ...

HTML CSS hover button navigation

Hello everyone. I am using an image button for navigation, because I want hover effects. I mean, I used button image instead of <ul> tag or <div> tag because I want hover effects, meaning when I hover on that image the image changes. That's why I use image button. But, I do not want to use images. I want to use <ul> tag and <div> tag bu...

What is the right way to use more than 1 CSS class on an element?

I can imagine it can get complicated fast trying to debug style issues when there are multiple classes associated with elements. Currently I'm using multiple classes but in a way that one type of class is for jQuery manipulation and the other is for style. So I can have an element <div id='myDiv' class'ActionControl SearchBox'></div> w...

Proper way for links to execute javascript code

So there are 4 main methods I'm aware of to execute javascript code from a link. For my requirements, I need to do so without moving the screen anywhere (linking to # and not returning false is bad). SEO for the executed javascript code, if possible, is important too. So what's the right way to do this? method 1 (need to make sure my...

What is the fastest way to open an excel file from a web page?

Backstory: In the past users have complained about how long it takes to generate an excel file export. I fixed the speed problem. In fact, exports are so fast that I can afford to create a temporary xls file during every page load with along with a corresponding link. (The files are cleaned after two hours - the load is light enough for...