html

Matching html input values with regex

I am trying to match a string like the following: <input type="text" value="cbyEOS56RK3lOxtiCrhmWSkDuNWwrFN4" name="iden"> This is my code: $pattern = '~value="(.+?)" name="iden"~'; preg_match($pattern, $page, $match); print_r($match); As you can probably see, I am trying to match the value in this HTML input. By what I know of reg...

Why does the background for some elements extend across the width of the DIV and some don't?

I have a rather colorful background, and to make the text legible, it's set on a semi-transparent background. H1, P both show the background the full width of the divs. spans and as however only show the background for where they are. This latter behavior is what I would prefer, definitely for the Headings, but also possibly for the para...

iPhone Mobile Safari: Portion of content scales by it self.

Really, wondering and don't know why, on the initial load, the "<'p'>" element that holds content is scaled up, the fontsize, if i change orientation of the device it will then adjust scaling and keep it at declared font size that originally was intended, but that initial load. any ideas why? ...

Nesting / layering html links <a>

I have a div that is encased in an html <a> tag, so clicking anywhere on that box will lead the user to a new location. I would like to add one button inside that box that leads somewhere else (a more specific location than the encasing div's link. At the moment, adding that second <a> tag inside my div closes the original <a>, which m...

How do I determine when a series of GET requests finish?

I would like to do a series of get requests, and then preform some action after all of the get requests have finished. Below is a starting point on the code I have, but since the get request is asynchronous, the "do some action after all getJSON requests finish" executes right away. What is the proper/best way of going about this? ... ...

How do I modify the Magento Share Wishlist email template??

I don't know where to find the "Share Wishlist" email template. I want to change the part where it says "Demo Store" to the proper store name. I also want to change it to a variable that points to the store name specified in the store configuration so that it automatically changes whenever the store name changes. ...

Rails How to escape and display the contents of a rendered view

I am trying to show a rails view file in a textarea. the view file contains a bunch of HTML, which I want to escape so that it does not interfere with on page html. here is an example: In this view we are going to display the contents of a partial <textarea> <%= html_escape render('partial') %> </textarea> and in partial.html.erb I ...

How to scroll a table horizontally?

I have a table built from a dataset that is displayed in a partial view. The table is larger than the bowser. How can I get the table to scroll horizontally in my partial view? ...

insert table into <li> when using jsTree & json

Can I somehow insert a table inside <li> when using jsTree (1.0) and json? let's say in this code where I want to insert table for both node and leaf. Why? To display more things than only a name and using nice formatting. "data" : [ { "data" : "A node", ...

Select List with multiple enabled doesn't fire onchange event on iPad

I have a form with a select list that allows users to choose multiple items. I am using $('#my_form select').change(validateInput); to fire an onChange event whenever an item is selected or de-selected in my select list. It works fine on my desktop machine but the validateInput function does not run on iPad. If I change my select list...

A problem with JavaScript size animation

Hi! I am in the middle of writing a JavaScript library and I have hit a problem, I have a function that resizes elements, that all works good but I also have and animated version that resizes them over a specified time frame. The script seems to freeze when ever it is run and it seems to be down to my while loop, here is my code. // Res...

PDF to HTML via API or through ColdFusion?

This has been asked many times, i'm sure, but i was curious if it's possible to upload a PDF to some site, keep it private, and get back HTML/CSS? Or, is there a way with ColdFusion to do this? It needs to be damn near the same as the PDF. I heard through a developer at a hackathon there was a PDF converter that uses the Webkit engine, b...

POST parameters when submitting runtime generated content

Hello, I want to transmit data via POST to a remote script. A set of data is generated with Javascript and I would to know what's the best practice for gathering data before sending it. I tried to use: <ul> <li>Item added at runtime</li> </ul> I included all of these in a form, but I can't access the information on the server. What's...

Can you make a <input type="text"> element have a size shorter than 1?

I have an <input> that I want to be smaller than size="1" but I do not know how to make it smaller. Is it possible to do this? I tried using fractions and decimals but neither worked. ...

Chrome, Safari ignoring max-width in table

I've got HTML code like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <title></title> </head> ...

Print preview and print only prints a portion of my web page.

I have a rather large table data I need to print, but when I go to Print Preview or Print, I only see what's currently visible on the page, and not the entire content of the web page. This happens in all browser. What could be causing this? ...

HTML textarea newline character

I have a text area in HTML where the user can enter text, but when the form is submitted, and its passed to a php script which echo's it, there aren't any newlines. Knowing that HTML does that, I tried doing a preg_replace() before echoing it... echo preg_replace("/\n/", "<br />", $_GET["text"]); but still everything is on one lin...

Good alternate for Jakarta Taglibs?

We use Jakarta Taglibs to ouput some basic HTML form elements like selects. It appears this library has been retired.. are there any good alternates? Looking for something simple that will take a Java Map and output it to HTML. ...

PHP how do I allow users to customize html for their blog design?

A certain blogsite allow its users to fully customize the entire html page of their blogg, change doctype and all, and they use tags for where they want the user to dipslay things like titlename and amount of comments etc. i.e this is code you can edit and submit under blog design settings: <tag:archivelist> <li><a href="${A...

How to get rid the horrible rectangle arround <a> tag

Hello.. I am developing a website and everywhere i have this annoying problem... I wonder how other sites dont have this problem... any suggestion? stackoverflow has this problem as i see... http://inath.gr/ this site for example at the top menu although it has <a> tags there is no rectangle arround it when selected somehow.. ...