html

[Javascript + HTML] Dropdown selector, change to target="_blank"

I have a dropdown selector in place and I need to change it so that the target="_blank" so it opens up a new tab. Here is the current code: <SCRIPT TYPE="text/javascript"> <!-- function dropdown(mySel) { var myWin, myVal; myVal = mySel.options[mySel.selectedIndex].value; if(myVal) { if(mySel.form.target)myWin = parent[mySel.form....

Annoying Problem of Aligning CSS Drop Down

Hello all, View Here: http://174.132.101.73/~ree/header/ I have a drop down box. I am trying to get the text "Link 1", "Link 2" and "Link 3" to align left under the products link when you hover over it. But I can not get that to work for the life of me. I am sure its something simple. You will find the CSS code in question at the botto...

Placing jQuery Refernce at the bottom of HTML Document breaks User Control

Walter Rumsby provided a great answer to Where to place JavaScript in an HTML file. He references the work done by the Yahoo Exceptional Performance team and their recommendation to place scripts at the bottom of the page. Which is a hard and fast rule that I've been following for quite sometime now. In the same thread Levi Rosol pointed...

Remove Spacing Between Drop Down Menu

One final question with my CSS drop down box! I can not seem to remove the space in between the links "Link 1", "Link 2" and "Link 3". Under the Products drop down. Here is a demo: http://174.132.101.73/~ree/header/ How can I do this? I appreciate any more help. Thanks all ...

Is there a way to attatch a css file to a jEditorPane?

Simple enough question: I have a string containing HTML that is being handed off to a JEditorPane for user consumption. Can I attach a CSS file (or string containing CSS rules) to allow for more specific styling of the text? ...

state of HTML after onload javascript

hi there, many webpages use onload JavaScript to manipulate their DOM. Is there a way I can automate accessing the state of the HTML after these JavaScript operations? A took like wget is not useful here because it just downloads the original source. Is there perhaps a way to use a web browser rendering engine? Ideally I am after a s...

Add absolute hyperlink URL

I have the part of the jquery code success: function(results) { if (results.d.Product.length > 1) { var html = '<h3>' + results.d.Product+ '<h3>' + '<div>' + results.d.ProductDescription + '</div>' + '**<a href="#">' + results.d.Url + '</a>';** $(test).html(html); ...

Why doesn't HTML have a "slogan" tag?

It seems really obvious to me that there should be a "slogan" tag in addition to the "title" tag. Many, perhaps most, websites use their business name with a slogan in their title. Unfortunately, it means that every time I bookmark a site I seem to have to edit the properties to remove the stupid slogan from the bookmark name. The behav...

Best Rich Text Editor for web application having dynamic form

Best Rich Text Editor for web application having dynamic form with many text editor. 1)text editor can easily trnsform textarea 2)Light weight ...

Zend farme work Doubt2

Hai I put this in to php.ini include_path = ".;c:\php\includes;C:\wamp\zend\library" C:\wamp\: here i put the zend frame work when i run the wamp sever , i seen a pge as usual How i check whether it's install or not , How i start my work in the frame work ...

Is it possible to retrieve the contents of a html textarea with XPath?

I've looked all over but I can't find any leads. Is it possible to do something like: //textarea/<some kind of function?> or <function>(//textarea) I know I can do this using JS, or any number of other techniques, but I'm asking because I'm using WebDriver and Firefox to test a TinyMCE textarea input, and because of JS execution de...

parsing xml with jquery problem with output

Hey guys, i want to parse an xml file with jquery. This works so far, only the output confuses me:) probably you can help me. $(function(){ $.get("images.xml",{},function(xml){ var output = "<ul>"; $(xml).each(function() { smallImage = $(this).find("small").text(); //bigImage = $(this).find("big").text(); ...

Python HTML Minimizer

I have a cherrypy web server that uses larges amounts of HTML data. Is there anyway in Python to minimize the HTML so that all comments, spaces, ext, are removed? ...

Relative access to table cells using jQuery

I have a nested table 3x3 <table> <tr> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td id='myCell'></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> </table> So, i need to get cells closed to my '#myCell' - on the left, on the right, top, bottom. var myCell = $('#myC...

HTMl text area

If we type something in the text area and press submit button, the values should be displayed on the same page under that. How to do that? And make stay permanently on the page ...

Trouble with the jQuery animate function?

I needed a simple three slides slider, so instead of using a jQ plugin I hand coded it myself. The code works but the animation occurs in 2-3 frames instead of happening in over 20 frames, except when in IE6 & IE7 where it animates perfectly in 20-30 frames. In all the other browsers(IE8, Firefox, Chrome, Safari, Opera) it animates in a ...

jQuery: Why use document.ready if external JS at bottom of page?

I am including all of my JS as external files that are loaded at the very bottom of the page. Within these files, I have several methods defined like so, which I call from the ready event: var SomeNamepsace = {}; SomeNamepsace.firstMethod = function () { // do something }; SomeNamepsace.secondMethod = function () { // do somet...

do search engines crawl the source or destination page when using 301,302 redirect?

What search do when they found different status code? 302 301 404 etc... I knew they would ignore the pages with 404 status code but what about the other statuses do search engines crawl the source or destination page? ...

How to get the destination URL using cURL?

Hello How to get the destination URL using cURL? when the http status code is 302? <?PHP $url = "http://www.ecs.soton.ac.uk/news/"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $html = curl_exec($ch); $status_code = curl_getinfo($ch,...

IE doesn't show .ico icons in HTML if not served as "image/x-icon"

I'm showing favicons of websites in a list, as <img /> elements. some websites serve them as: <link rel="icon" type="image/x-icon" href="favicon.ico" /> and some serve them as: <link rel="shortcut icon" href="favicon.ico" /> IE doesn't show the favicons images of those of don't have type="image/x-icon". I cannot control how webs...