html

Is there a way to force open a new browser window from MOzilla to IE by Onclick function?

Hi all, Iam getting new window pop up by using window.open(), but need When i click button in Mozilla browser, a new pop window should open in Internet Explorer, Is it possible...... ...

PHP XPATH of HTML document omitting all tags. I want to keep them

I am parsing a HTML document with XPATH and I want to keep all the inner html tags. The html in question is a unordered list with many list elements. <ul id="adPoint1"><li>Business</li><li>Contract</li></ul> I am parsing the document using the following PHP code $dom = new DOMDocument(); @$dom->loadHTML($output); $this->xpath = new ...

Why does Disabled = true for html work?

I noticed in our code that there is a disabled = true' i the source code for anchor tag. I was wondering why it works in IE. I also searched the internet and it is also being used in a lot of source code via a search in the net. I have been searching if ture, a wrong spelling of true can also be used by IE. Does anybody have any idea ab...

How do I process the data submitted from HTML Form?

I have written code to create a form to select multiple values. Below are some lines of my code to create a form to select multiple values. my $parser = Text::CSV->new(); open($csv_fh, '<', $csv_file) or die $!; my @headers = $parser->column_names( $parser->getline($csv_fh) ); print <<"EOF"; <FORM ACTION=$ENV{'SCRIPT_NAME'} METHOD=POST>...

Fixed - Liquid - Fixed Layout

I'd like to have a [Fixed][Liquid][Fixed] cross-browser compatible layout. HTML: body div#col-1 div#col-2 div#col-3 CSS: #col-1 { width:150px; float:left; } #col-2 { width:100%; padding:0 150x; } #col-3 { positon:absolute: right:0; width:150px; } Would this work/better way ...

How do I control what images Facebook attaches to the feed story when my website is shared?

When I add a Facebook link to my website, it picks up randomly large images from the site, and not quite attached to the story. How can I control what images are picked up by Facebook? ...

Rendering differences between Firefox 3.0 and 3.5

Hi all, I'm working on a large site and starting on browser compatibility next week. Just had a glance in some different browsers to have so idea of whats ahead of me and i noticed differences in FF3.5 vs FF3. The site has been built in FF3.5/IE8. So I'm wondering if there are know issues between the two FF versions? A quick google sea...

Regular Expression for HTML artifacts

Hi, I some text with HTML artifacts where the < and > of tags got dropped, so now I need something that will match a small p followed by a capital letter, like pThe next day they.... And I also need something that will catch the trailing /p which is easier. These need to be stripped, i.e. replaced with "" in python. What RE would I ...

How can I use a php file's output with Ajax?

I was following this tutorial. I need to use a php file's ouput in my HTML file to dynamically load images into a gallery. I call function setOutput() { if (httpObject.readyState == 4) document.getElementById('main').src = httpObject.responseText; alert("set output: " + httpObject.responseText); } from ...

Hiding div tag when the user clicks outside the div tag.

Hi friends, I have a div tag and I am populating the search results on a custom grid, which is placed inside this divtag. When a user click on the search button, i am displaying the results in the above mentioned div tag. I have a requirement to close the above div tag when the user clicks outside the div tag. It is similar to google ...

HTML WYSIWYG editor for php code

i looking javascript editor for php code, include tab support and php code highlight ...

Img embedding problem in Struts2 jsp page.

I have a page called home.jsp in my struts2 application. I have embedded a html (screencompany.html) page within this home.jsp. I am trying to embed an image within the html page. But the image is not loading. Please help me out. Im very new to struts2 and jsp. Here is the home.jsp code. <iframe id="displayFrame" src="http://localhost:...

how to wrap html tag around image tag?

I want to convert below html image tag <img src="img-1.jpg" width="290" height="420" class="frameImage" /> to following code using jquery. <table class="frame" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="border-top" colspan="3"></td> </tr> <tr> <td class="border-left"></td> <td><div class="image-fra...

What's the best way to remove (or ignore) script and form tags in HTML?

I have text stored in SQL as HTML. I'm not guaranteed that this data is well-formed, as users can copy/paste from anywhere into the editor control I'm using, or manually edit the HTML that's generated. The question is: what's the best way of going about removing or somehow ignoring <script/> and <form/> tags so that, when the user's te...

$content variable in node.tpl.php (Drupal 5)

The print $content statement in node.tpl.php is causing my whole layout to break probably due to incorrect nesting of DIVs. I want to check and fix that but I can't figure out what/where is the source of the $content variable in node.tpl.php file. I'd appreciate any help. Thanks. ...

a way to tell if options do not fit inside of a select - in IE

In IE6, and possibly 7, if you set the width of an to any value other then auto, if the options inside of that select are wider then the select's width, they get cut off. this is bad. Firefox is smart enough to not do this. Question: How can i tell if the options are being cut off with javascript? How have you dealt with this issue ...

lots of text within pre tag is causing a page break

I have a pre tag within my page that contains quite a bit of text. When I preview this page in the browser it looks fine. But when I go to print it, everything within the pre tag is printed on a new page. It is like the pre tag is causing a page break. I am using css to word wrap the text of the pre tag. Below is a sample. If you pre...

automatic mysql query in PHP

How do i write a code that builds a mysql query depending on what values drop lists have? If nothing is chosen in a drop list, then the drop list value is 001 so then the query should not include this drop list in the search! Please help... I have this so far: foreach($_GET as $key => $value) { if ($value != '001') { ...

XSLT wont allow me to use self-closing img and br tags

I have some XSLT that gets rendered in the Sitecore 6 CMS, but I don't think that this issue is specific to the product. If I have a self-closing img or br tag, like so: <br /> <img src="your.example.com" /> The resulting output would be: <br> <img src="your.example.com"> The output method of the XSLT file is HTML. Is it supposed...

Problem using jQuery clone function in form

Those snippes of code that you will check works fine for FF, Chrome, Safari, but seems to be a problem with IE when running jQuery clone function: My template: <form method="post" action="/post/add/"> {{ form.management_form }} <div class='table'> <table class='no_error'> <input id="id_mypost_set-0-title" type="text" ...