html

disable/enable right click on a particular part of the html body

i want to disable right click on the webpage but i want enable right click on textarea. Hey wat is this provide answers dont post lot of comments on right click (lol). i dont care if people would see my source code, thats nt the point ... i just want to know how one can enable right click only in the textarea while disabling the rest so...

How can I get tidy to allow my custom attributes?

function myTidy($content) { $tidyConfig = array( 'indent' => false, //don't indent 'doctype' => 'omit', //don't include doctype 'wrap' => 0, // don't line wrap 'show-body-only' => true, //don't include <html><head><tit...

How to italicize a word being displayed by a web.sitemap

I have a company name that always needs to be italicized. I have navigation that is driven by my sitemap and I can not figure out how to italicize the word. The word is always the same, so I thought about some Jscript, but was wondering if I had any other options. Thank You. ...

How to assign a link to a div and have it open in a new window

I have my click function set up to look for the first link in the div and assign that link to the entire div. $('.article-excerpt').click(function() { var newLink = $(this).find('a:first-child').attr("href"); if(newLink != "" && newLink != "#") { window.location.href = newLink; } return false; }); How can I also make that link...

create unique id with javascript

I have a form where a user can add multiple select boxes for multiple cities. The problem is that each newly generated select box needs to have a unique id. Can this be done is JavaScript? UPDATE: here is the part of the form for selecting cities. Also note that i'm using some php to fill in the cities when a specific state is selected....

Scroll to a particular element w/ jQuery

I have a long list of nested divs. I am passing the ID of a particular element (actually a paragraph element) on the querystring and opening its div and parent onload. However, the list is so long, sometimes the element that opens is hidden below the bottom of the window. How do I automatically scroll the user's browser window so th...

How can I provide a confirmation for closing an Internet Explorer window?

My company uses a web-based application that has long forms that the user fills out. Some of these forms save as you go (so that you can close the window and come back to it), but others can only be saved when they're completely filled out. We receive daily calls from users who "accidentally" clicked the close button on their IE window...

How to configure a child div to display scrollbars only when a parent div percentage settings require it.

I am dealing with a pretty standard (or so I thought) page. What I would like to do is allow the page to have it's width determined by the <body> tag and a top level .page style that I've defined in my css. My site has a left navigation pane that is ALWAYS a certain width. The "content" area stretches with the page and should determined ...

IEMobile 7.11 with external Javascript?

I'm trying to work with a windows mobile 6.1 device running IEMobile 7.11 and I'm trying to load external javascript as such: <html> <head> <script type="text/javascript" src="js/alert.js"></script> </head> <body><?php echo('<pre>'); print_r($_SERVER); echo('</pre>'); ?></body> </html> alert.js looks like this: alert('this is include...

Getting meta tag attribute with HTML Agility Pack using XPATH

META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1" /> TITLE>Microsoft Corporation META http-equiv="PICS-Label" content="(PICS-1.1 "http://www.rsac.org/ratingsv01.html&quot; l gen true r (n 0 s 0 v 0 l 0))" /> META NAME="KEYWORDS" CONTENT="products; headlines; downloads; news; Web site; what's new; solutions; services...

Data Grid Table with sliding info - div inside tr positioning

Hello!! I have a table like this below. And there is a div container with information (usualy large text), so I want to position these divs straight under each tr row to make them toggleable (like sliding panel). Can you please advise how to position it with css/javascript? Tho, this html is not semantic so if there is another way to do ...

Javascript & Split Arrays

What I want to accomplish is simple. I want a button's text to change depending on what page your on. I start this by using the following: var loc_array = document.location.href.split('/'); Now that I have the url and split it in an array I can grab certain directories depending on the position, like so: if (loc_array[loc_array.leng...

How to get href from anchor tag with particular class

If I have an HTML document, what is the best way to go through the document and gather the href values from all anchor tags with a particular class using PHP? ...

Arrange images list using css

Hi all, I have fetched the div element from another website, thanks to this group. require_once('E:\wamp\www\in.com\components\simple_html_dom.php'); $html=file_get_html('http://www.behance.net/samerh/frame'); $ret=$html->find("div[id=frame-gallery]"); $ret=array_shift($ret); echo($ret); And the content in that div is all images and...

Can't show/hide table rows like the divs for some reason

Hi guys, I've used animatedcollapse for my div sliders with no flaws. However, I now need to use a table row slider and it isn't performing the same at all. Here is a portion of the table I am using so you get an idea. <table> Reply to post... </div> <script type="text/javascript"> ...

100% horizontal cross-browser menu HTML/CSS?

How to make 100% horizontal cross-browser menu HTML/CSS? 1. with keeping clean HTML, li list 2. no image/javascript, tableless, W3C standards compliance Example for invalid example: /*CSS doesn't make `block` right/left space between `li` items (see attached image)*/ #nav{ text-align:justify; } #nav li{ /*border:1px solid #000; mar...

Best way to code curved shadowed boxes for cross-browser compatibility

I have boxes that have been designed like this imgur.com/vMN0T.gif Basically I need to code them so that they can be any size height-wise and width-wise depending on the content inside. Plus the shadow effect needs to be transparent because the background color can change. Best way to do this so it works in all browsers? (IE6+, FF, Op...

"could not open socket"

Hello, my question is how do I alleviate the "could not open socket error" that is happening on my site. I have trouble shot that it is captcha (I'm using recaptcha) It is only displaying this error on the two pages where I use recpatcha. I have been generating new sets of keys and sometimes it works and sometimes it does not. For e...

Rounded corners in IE with DXImageTransform.Microsoft.Shadow?

I'm trying to get rounded corners and drop shadow working on some div elements. For drop shadow I'm using box-shadow and for rounded corners I'm using border-radius. For the drop shadow in IE I'm using the DXImageTransform.Microsoft.Shadow filter. I need the elements to have rounded corners in IE as well that work with this filter. An...

jquery submit form

I got stuck today, been searching on stack overflow and google, however havnt had much luck in implementing the solutions I've seen. I have a form, Im trying to create, when i click submit when theres no info in the forms, it prompts an error (it didnt validate), however when everything is filled out correctly, the submit button no longe...