Hi, i'm trying to parse a string of html tag attributes in php. There can be 3 cases:
attribute="value" //inside the quotes there can be everything also other escaped quotes
attribute //without the value
attribute=value //without quotes so there are only alphanumeric characters
can someone help me to find a regex that can...
hie
i have a html form and while posting a request to a url i also want to pass crendtials using basic-auth
can anybody please share a code example on how to do that?
...
I use the latest version of textmate for all my Rails development needs and I feel that I'm under-using the possibilities or this software. I only installed the Ruby on Rails bundle and use little to no snippets / shortcuts.
What do I absolutely HAVE to know / do in order to get the most out of my textmate in a web development environm...
Here is what I'm specifically trying to do:
I have written a HttpModule to do some site specific tracking. Some old .aspx pages on our site are hard coded with no real controls, but they are .aspx files so my module still runs when they are requested.
My module's handler is attached to the PostRequestHandlerExecute, so I believe what ...
Here's my HTML:
<div class="large">
<img src="/images/photos/Interior.jpg" alt="The interior" style="[...]" />
<div class="caption">The interior</div>
</div>
<div class="small">
<img src="/images/photos/Bedroom.jpg" alt="Bedroom" style="[A different ...]" />
<div class="caption">A bedroom</div>
</div>
Upon clicking a d...
I know that with a large site you would want to separate footers, menus, etc so that updating that file would push the update out to every page that contains the item.
Is the same recommended for a small site made purely in HTML/CSS, or is it simpler/easier/standard to code out the menu in each page and update each page when a change is...
Hi,
I was wondering if I could do the following:
load a html page and set the backgroung color of the body element dynamically with javascript, in this case with a jquery script. If the page elements are loaded before the js executes, then the body color will be white for a second, and then it changes the color. If the js would be load...
Just what the title says.
Help greatly appreciated!
...
Hi, I need to extract all the tags from an HTML file, In such a way that I would end up with either an array containing key=value for each of the attributes, or at least the raw text that makes up the tag.
I don't quite get along with regex, much less in PHP, so I would really appreciate some help in this.
PD: Some of the tags may sp...
Hello is there a class that does a pretty conversion? Thanks.
...
I've always heard that margins in CSS will collapse when next to each other, so that settings two elements to have 40px all around will only result in 40px between them.
Is this an old way to render CSS, as in does it not work this way anymore?
This is the HTML and CSS. I can't seem to get the margins to collapse:
Relevant HTML
<div ...
I am trying to do what "float" do, but not selectable for copy. This is an example of how this is used:
<p>
Lorem ipsum dolor sit amet, In a mollis est. Cras vel tortor in purus mattis
venenatis.
<span style="width: 5em; border: 1px solid black; float: right"> What does "venenatis" means? this is a margin notes! </span>
Vivamus aliquam...
Hi, I'm trying to get an html page to display an XML file formatted with an XSL stylesheet. Whatever examples I see are either displaying it in a new page, with the XSL stylesheet taking care of the tags, but no examples where I can clearly see it being displayed as part of an existing webpage...
I'm using a PHP script to generate the ...
First of all, sorry about that title. I'm not the best at writing those things.
I have a container div (let's call it #container) which contains two divs (#a and #b). I am not in control of the content of these two divs.
I want #container to be the height of #a. I also want #b to stretch (or shrink, depending) to 100% of #container, a...
i have a database of links and tags.
what is the easiest way i can display this as a tag cloud?
...
I have several checkboxes and I am trying to take a lazy approach of inserting them into the DB.
So I wanted to know, would the order of the checkbox array (checkboxes[]) in the POST super array be in the order that they are in my html page?
If not, then I will just stop being a lazy developer!
Thanks for any help.
...
I'm editing a CSS style sheet in Eclipse and I constantly have to copy out e.g. #FF9C21 into an HTML page to see what color it is.
What is the best CSS editor (or Eclipse plug-in) that would allow me to:
hover over #FF9C21 to see a little square of that color
right click on #FF9C21 to pick a new color from a visual color selector
...
Im trying to put a link called submit resume in menu using li tag. when i give space between submit and resume it wraps down. How to prevent wrapping. help me
...
Is it possible to convert a PDF document to HTML or text and then edit some text of the html/text file and recreate the PDF, all in a PHP script?
...
I am using a jquery lightbox plugin (http://colorpowered.com/colorbox/) to load content using an iframe. The problem is when users access the page directly or via a search engine the page they are taken to is the iframe content itself and not the parent page which loads the iframe.
How can i redirect users who access the iframe directl...