I need a regex to do the following (unfortunately it has to be a regex, I can't code this because it's working within a purchased product):
I'd like to select all image tags in a chunk of html where either the image tag does not contain a class attribute, or, if it does contain a class attribute, that attribute does not contain a specif...
Couldn't find any good information on how to do this so I thought I'd add it here. How do I grab the selected data from a multiple choice drop down html form using php and submit into a database. I need a seperate row for each choice.
I'd be happy just knowing how to grab the data and put it into an array.
...
I'm trying to duplicate the getsatisfaction tab kind of effect - it works fine in IE7 and Firefox and almost every other browser but its all messed up in Explorer 6 - I hate IE6 but heck its the most commonly used browser - my tab is now instead of being overlayed on the side is sitting at the top corner of my page pushing all the page c...
My company creates web surveys and once in a while I get asked if we can do an exit survey on a website. So when a visitor is about to leave the site a "popup" appears asking if they'd take a quick survey. By "popup" I'm referring to a floating CSS div, not a child window (although sometimes clients don't realise this).
Is it technicall...
Hi,
how can i realize something like this:
<img alt="logo" src="/Content/Images/Logos/<xsl:value-of select="/customer/country"/>.png" />
The XSLT processor throws an error because of the "<" - sign here...
...
This all started when I wanted a way to hide some content unless requested. I had already used the link:hover method for some tooltips, and wanted to take a crack at adapting it for this purpose.
I'm avoiding the use of JS, because the nature of my site lends itself to use on cellphones--and even where JS is supported, it's loading is n...
My HTMLUnit tests are failing, and I've got a feeling it's because I'm entering a password using the setValueAttribute() method and that for some reason doesn't work. Any ideas? Am I supposed to pass HTMLUnit the encrypted form of the password?
EDIT:
The code to set the pass:
loginForm.getInputByName("loginPassword").setValueAttribute...
Hi everybody.
I have an HTML file (encoded in utf-8). I open it with codecs.open(). The file architecture is:
<html>
// header
<body>
// some text
<table>
// some rows with cells here
// some cells contains tables
</table>
// maybe some text here
<table>
// a form and other stuff
</table>
// probably some more...
I'm trying to add a class to the first td inside a tr w/ a specific class. But for some reason it adds this class only to the first td in the first tr -not the first td in each tr
$("#appendTD").find("#gridFormInformation").children(0).children().each(
function() {
if ($("#appendTD").find('tr').filte...
Hi,
I know there is already another post on StackOverflow (here) but it doesn't exactly address my issue.
I would like to use the HTML button element () on ASP.net wherefore I've created a custom server control for rendering such. The reason for using a button is mainly to be able to create an image button. You could now argue to use CS...
Are there any JavaScript libraries or Toolkits that allow me to bind the JSON data to html controls on the client?
So essentially I should be able specify the object property to which a html control should be bound. Hence when the form receives the JSON data, the controls are updated, and when the controls are updated, the data should b...
How would you embed a google sketchup model inside a website as seen HERE?
Click 3d view in the top right corner of the image.
...
I'm trying to show a tree structure in an HTML table. It's basically a list of people you referred to a site, but you can expand each and see the people they referred too (only 2 or 3 levels).
I'm also showing a number of pieces of information on each person, so I'm using a table, with several columns.
I'm wondering what's the best way ...
Hi,
I'm using a javascript function that receives some html code that was included using php.
It is not html in a php string but an html file with .php extension.
As the html code is sent as a parameter to the js function it can't contain carriage returns. The problem is that writing big blocks of html in a single line is terrible, I w...
Hi,
I'm looking for a way to encrypt a HTML form in PHP in a way so I can then decrypt it in the browser using JavaScript. This should work transparently to the user and JavaScript input validation must also work on the form (I know how to do this). When user submits the form, it must be encrypted again and sent to the server using an "...
I know
di<
will delete in an HTML tag itself.
Is there an easy way to delete text in between two tags?
<span>How can I delete this text?</span>
Thanks!
...
When are appropriate situations to use the target="_blank" attribute on your hyperlinks?
edit: To clarify, I know the syntax will open a new browser window. What I am asking is when is it appropriate to do so?
...
This is a question I ran into about expanding on an element's JavaScript onchange event. I have several select elements that conditionally will have one onchange event attached to each of them (when they change to specific values, it hides/unhides certain elements). I want to conditionally add or append to another onchange event so the...
In TextMate there is a feature called "Create HTML from Document", which converts displayed code including syntax coloring to HTML/CSS for easy online publishing.
I wonder if there is such a feature hidden in Emacs or maybe an extension that I could install to do that.
...
Here is a screen shot of the what it looks like in IE6, works fine in everything else: http://i39.tinypic.com/2lcr4uw.png
It is within div class="article odd", which has overflow:auto; set.
Then it has a ul list (w/ clear:both; set), float to the left, w/ the li's split by 50%
Any suggestions would be appreciated.
...