html

Firefox (only) Dynamic Form Action Not Working

Console is returning blank for the action attr. I've moved the: $('#file_upload').attr('action','io.cfm?action=updateitemfile&item_id='+$('.agenda-modal').attr('data-defaultitemid')); Around in and out of the .live('submit') and no luck. I also tried it without the +$('.agenda-modal').attr('data-defaultitemid') part and it still retur...

I need a tool that allows me to quickly generate html and xquery it

At the moment I have a nice class that generates HTML and allows me to create pages without having to worry about things like closing tags, proper nesting, or clear formatting. The syntax is simple and straight forward, //Create an anchor tag $anchor = new Tag("a", array("name"=>"anchor"); //Create a paragraph $paragraph = Tag::Craft("...

How do I format an iPhone's app email as a 'form' with input fields ?

Hi, Can somebody explain to me how I can present an email to the iPhone-App-User that has input fields that the User should fill in before sending ?? Simple Example: The user should input their name.... Blockquote NSString *emailBody = @"\ <html><head>\ </head><body>\ <form>First name:<input type="text" name="firstname"...

page-break-inside:avoid equivalent for Firefox and/or IE

I understand that the CSS page-break-inside:avoid instruction is supposed to prevent a page break within a div when an HTML document is printed. Searching the internet, I found that it is supported onlz for Opera and IE8. Is there a work around that allows me to prevent page breaks in FireFox (3.6) or IE below 8? ...

targeting all elements in a div

right now i have this $(".container a").css("color","#ffffff"); which styles all links inside ".container" white. then i have a div structured like this <div class="container"> <div class="header"> <a href="> </div> </div> the links inside that second div only turn white in Firefox. Is there a way to fix the line of js with...

HTML table with horizontal scrolling (first column fixed)

I have been trying to think of a way to make a table with a fixed first column (and the rest of the table with a horizontal overflow) I saw a post which had a similar question. but the fixed column bit did not seem to be resolved. Help? ...

Applying CSS through jQuery to a div called by Javascript?

I have the following: <div> <script type="text/javascript" src="someUrl"></script> </div> That script generates a div with some links inside of it so it's like: <div> <div> <a href=""></a> </div> </div> I need to style those links to be a certain color with jQuery because that's the way the page was developed. Right no...

How do I make an image partially scroll, then stay fixed, then scroll when you pass a section?

I don't even know what I want to do would be called Please take a quick look at this page: http://www.philsalesses.com/plasma-pong/ You'll see the title Plasma Pong and an image under it, on the left side. When I scroll the article, I'd like it to stay put while the page scrolls. However, you'll notice when you get the bottom of the...

Get content within a tag using Javascript from HTML

I want a javascript code which will go through all the html file in my root folder and sub-folders and gets the content which are within a particular tag, eg: <div id="content"> !!this content!! </div> It should check for a comment at the top of html and only get the content if it exist. <!--Allowed--> It should only get if thi...

print web page in different print quality width fix element size, mozilla, dot matrix printer

Hi, I am having problems with printing in dot matrix printer. My client printer is Epson LX300+II and Epson LQ-2170. I need to print from a web apps that written in php. with web browser client is Mozilla Firefox But i can't set the fix width for the layout. for example: <div style="width:2in"> content </div> when i print those things...

Playing sound with JavaScript

Doesn't matter what I do, I simply cant get this to play a sound in firefox or IE, of Chrome for that matter. <html> <head> <script type="text/javascript"> function play() { var embed = document.createElement('object'); embed.setAttribute('src', 'c:\\test.wav'); embed.setAttribute('hidden', true); embed.setAt...

Fundraising Thermometer Approach

I need to create a thermometer type widget for a website, where I can feed in a goal and current amount, then generate a graphic that shows the progress. I was thinking something with jQuery/CSS would be the best approach, but then I started thinking maybe just using a vertical slider from the jQuery UI library and skinning it. How wou...

Check for default value upon form submission with JQuery

I'm trying to use JQuery to check upon submission if a field input has the default value, and, if it does, to stop submission and alert the user. What I have works up to a point. But no matter what I put into the input field, submission is stopped and the text is changed to the alert text. Here is the JQuery: $('#submitQuestion').sub...

google chrome submits form even if there is no SUBMIT button

This bug/feature cropped up in one of my pages when viewed in google chrome so i wrote a test page which looks like this <body> <form action="loginhandler.php"> <input type="text" id="name"> <input type="text" id="lastname"> <input type="button" value="Login"> </form> </body> Here you can see, the input type is NOT...

get url from embed code

hey, this question may sound silly but i had to ask this. i am trying to develop an app which will display video from a website. i have the link for the player+video as below: http://player.ooyala.com/player.swf?embedCode=1idm9sMTr6aCXKW3xks00H_JzylBWvxO&amp;version=2 Here, what i want is to get the path from where the player is getti...

Text to HTML in PHP.

Hello, nl2br(); can do for EOL but what about white spaces and/or tabs at the beginning(or not) of line? Is there any function to do this at once? I need well formatted html output of text file. Thx. ...

How to compare two time in PHP

i had two times in the format like 7:30:00 and 22:30:00 stored in the variable $resttimefrom and $resttimeto respectively I want to check whether the current time is between this two values. I am checking this with the code $time =date("G:i:s"); if ($time >$resttimefrom and $time <$resttimeto ) { $stat="open"; ...

Extract snippet out of HTML with Ruby?

I need to show the first 100 characters of an HTML text, which means, I have to pick the first 100 characters that are not tags and then close any open tags leaving a balanced HTML. Is there any library that can do it? Or is there any trivial way to do it that I am missing? The text is originally written in Textile which can and does co...

Need help with HTML Layout's Skeleton please.

I know this is trivial but I can't seem to get it. Could someone show me how the very basic html skeleton of this template should be? I've been able to do it using tables but I know that's a big no-no. Either XHTML strict or HTML5 would be ok. ...

can there be a advertisement container swf?

Here is my problem. My customers can give advertisement on my webpage. Earlier it was just image, a redirecting url, a title. On clicking on the advertisement, I counted the number of clicks and redirected to the given url. Now I want that they can upload images and swf files as advertisement. What I didnt know that you cant catch click ...