I want to perform the following vim substitution as a one-liner in the terminal with Perl. I would prefer to allow for any occurences of whitespace or newlines, rather than explicitly catering for them as I am below.
%s/blockDontForget">\n*\s*<p><span><a\(.*\)<\/span>/blockDontForget"><p><a\1/g
I've tried this:
perl -pi -e 's/bl...
I am able to use favicons if I copy one from another site and test. But my own doesn't work in IE8/Chrome. Mine is a 32x32 24bit icon created by Visual Studio. I always seem to have problems getting icons working right, what should I use? I thought I could have images up to 64x64...
...
Basically, I am trying to put a semi-transparent div over an image to serve as a background for text for a slideshow. Unfortunately, the browser seems intent on always rendering the img over the background-image. Is there any way to fix this?
Here is my current CSS for the semi-transparent div:
#slideshow .info
{
height: 80px;
...
in the form action i have the following line\
<form action="{URL}" method="post" target="_self" id="xxx" name="xxx">
when rendered in the browser it becomes
action="/abc/17224_pb/HTTP/index.php"
this is just HTML. I cannot see anywhere the {URL} has been defined and anyway you cannot have variables in HTML (can you?)
i thought it...
I'm deveoping a big project, I have the dev folder (connected to a specific subdomain) then the "real" folder, the live one. When I'm ready to push patches or whole new versions I'm currently copying the files individually, is there a program that can help me do this task?
Keep in mind that some files (the config one and the htacess) an...
I am a little confused on how the new tags should go.
Is this correct:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<section>
<header>
<nav></nav>
</header>
<section>
</section>
<footer>
...
I have a website, and when I tell Firefox to remember my username and password for the website, it is causing the username and password to display in all forms on my website, such as registration form. It is only supposed to do this on the login form. Does anyone know a fix for this?
...
I have a Asp.net web application running with the following config setting.
<xhtmlConformance mode="Legacy"/>
This limits use of AJAX and compatibility with multiple browser.
If my understanding is correct, the HTML code of the aspx pages need to be fixed to comply with XHTML 1.0 Transitional.
There are alot of HTML pages, ~1000, i...
Hello,
I would like to have a text input field containing the "$" sign in the very beginning, and no matter what editing occurs to the field, for the sign to be persistent.
I would be good if only numbers were accepted for input but that's just a fancy addition.
Thank you very much in advance!
...
I want to be able to upload a file and while the file is being transferred have something like a progress bar giving feedback to the user.
When the server start to receive the file it will immediately start to output html and when the file has finished to upload the server starts to output the real page.
The thing is that I don't know...
I need to know, whether a vertical scrollbar has appeared or not in browser window. Is it possible using jQuery or any other way?
...
I have a form with text input + gradient-shaded button with onclick='this.form.submit()' (plus some hidden inputs).
In all browsers, clicking on the button works.
In Firefox, if I click Enter while in text input, it submits the form.
In IE, it does nothing.
How can I make it work with IE?
...
I have looked up solutions on stackflow, but none of them seem to work for me. Here is my question. Lets say I have the following text :
Source:
<greatgrandparent>
<grandparent>
<parent>
<sibling>
Hey, im the sibling .
</sibling>
<description>
$300$ <br/> $250 <br/> $200! <br/> <p> Y...
is it possible , in twitter ,
my html snippet will or not,
How to post html msg in twitter
Thanks
...
Hi,
I have paypal sandbox test account. I want to create a 'buy Now' button. I am trying it with GWT.
But its even not working with simple HTML form. It displays a 'Buy Now' button on HTML page and after clicking on it redirects to PayPal site. Where it ask to login to buy product but after that it goes on displaying message: The email...
Hi
I have paypal sandbox test account. I am trying it with HTML form. It displays a 'Buy Now' button on HTML page and after clicking on it redirects to PayPal site. Where it ask to login to buy product but after that it is asking me the credit card information. I think as it is sand-box account it shouldn't ask me credit card as it is...
Hey everyone,
I need a regular expression to find out whether or not a h1 tag is followed by a h2 tag, without any paragraph elements in between. I tried to use a negative lookahead but it doesn't work:
<h1(.+?)</h1>(\s|(?!<p))*<h2(.+?)</h2>
...
Good day,
I've got a simple CSS question.
I'm trying to change a table into a CSS box, but aligning the table content is difficult to me right now.
Below there's an example of what's inside of the css box i created. How can I align these three elements (calendar and icon to the left , a text link to the center, and the other date fie...
i have an tiny editor web page where my users can use this editor and i am saving the html into my database.
i am having issues saving this html to my database. for example if there is a name with a "'" or if there are other html character "<,",">" etc, my code seems to blow up on the insert.
Is there any best practices about taking an...
I'm trying to convert a dictionery into a json object, so that I can work with it in my front end.
sortFields = <%= SchrodersHtmlHelper.ToJson(ViewData["SortInfo"])%>;
However, I keep on getting "Expected expression" for this all the time and I'm clueless why. Could anyone explain to me what I'm doing wrong?
Edit: The conversion wor...