html

Export or save html source including iFrame's html

In FireBug the HTML view displays the full html of the page including the html of the iFrames. Is there a way to save this same html view or using another FF extension to save the full html? Meaning the saved file will have the html, body and the rest of the dom for the iFrames. I know I can view and save the individual iFrames' HTML but...

how to expand content for a TD to cover 100% of its height (IE)

I have a table with one TR and two TDs, one of the TDs has more content (i mean with content: other sub tables) than the other one, this results the following: the TD with the little content stay shrinked (its content stay as is, not expanded) and this happens in case of IE only, firefox and google chrome are fine, both of FF and chrome...

CSS Sprites Repeating Images

Hi, I was wondering if there is any way to use just one image for repeating and non-repeating images using css sprites. So in this case I would like to combine all the images on a page no matter what width and height and if they will be used as repeating or non-repeating images. I know the standard is to create 1 image using all the non...

How do I retrieve HTML dynamically generated from an aspx page?

To be specific, here is what I am doing, and here is what I am trying to do: I'm coding an ASP.NET page, with VB code behind. When the user clicks a button on the page, I send them an email with information and instructions. Rather than sending a plain text email, I send a nice, pretty, HTML-formatted one. Right now, I'm doing this in a...

Preserve line breaks when pasting into textarea

I have a textarea. When I paste text with line breaks into it, the line breaks are automatically removed. But when I manually enter line breaks (hitting carraige return), they are preserved. How do I force the textarea to preserve line breaks with pasted text? ...

problem with passing variables with php

I'm trying to pass variables using "get" in php, but ran into a snag. Here's my PHP file: <?php include '../includes/header.php'; ?> <div id="page"> <div id="content"> <h3><?php $_GET['head']; ?></h3> <div id="screenshots"> <img src="../images/sites/<?php $_GET['img1']; ?>" /> <img src="../images/sites/<?php $_GET['img2']; ?>...

PHP sendmail() formatting not preserved

Hello, I am creating a web application for a client that has the ability to send out emails. I am using TinyMCE for my text editor, which works quite nicely. I am using sendmail() with PHP Swiftmailer to handle the actual sending of the email. Swiftmailer works nicely, as well. The only problem that I am running into is that when I rec...

jQuery Carousel jumping to the wrong item

Hello Stackoverflow, I have a perculiar problem with the :last and .before() method not inserting the code before the last element. [edited] I have come up with a new issue :/ The problem is (now that the <li>'s are in order), that the Carousel will now scroll through 4 items but them quickly jump to the next item. Code bel...

Settimeout and setinterval memory usage

Hi Everyone, Does any body know the memory usage and possible memory leaks with javascript functions settimeout and setinterval? Thank you, Krishna ...

Jquery, activate script if hashtag on end of URL matches a class name

Hey folks. I am using a little bit of jQuery to do a live sort of my portfolio when various categories are selected. Basically, the script matches the content of an <li> tag on click (my menu) with the class names of other <li> tags elsewhere on the page. The result is the portfolio items match the nav clicked will show and hide the rest...

jquery regex .* not working in jquery

Attemping to use jQuery to find a button on a page "id=btn.ar" using . returns no matches even though the button is clearly on the page. Is there something about .* in jquery being different from other Regex's? The buttons exact id is btnClear so its obvious that btn.*ar should match $("id=btn.*ar") ...

Scroll in-page element only, not the whole page

Ever notice that, when you're scrolling an overflowed div with a mousewheel, and you scroll that to the bottom, the whole page starts scrolling? Can that be prevented? I did a quick test of jQuery's scroll() event handler but it seems to fire way too late. Here's the test code if you want to play around. <html> <head> <script src="...

CodeIgniter: How to 'highlight' the link of the page the user is currently on?

Fairly new to CodeIgniter, still grasping the MVC approach. I'm just wondering what's the best way to solve this: I got my navigation bar highlighting the currently active link like so: <a href="index.hml" id="active">Index</a> <a href="blog.hml">Blog</a> Now, when I go to blog.html I want id="active" to shift accordingly. Usually I'...

Transparency of png files in IE

I have it set up in css to have the background an image slightly bigger than the content section so as to have a shadow behind it that repeats in the y direction but in IE it doesn't show the transparency. I have used google to try to solve this problem with no luck having done the image in css. CSS: #shadow{ width:854; margin-left:au...

how to store an Array in localStorage?

If i didn't need localStorage, my code would look like this: var names=new Array(); names[0]=prompt("New member name?"); This works, however I need to store this variable in localStorage and its proving quite stubborn. I've tried: var localStorage[names]=new Array(); localStorage.names[0]=prompt("New member name?"); Where am I goi...

iFrame file upload with IE produces download dialogue

I'm developing a custom module for Drupal dealing with Document Management. At this point, the module loads, you can upload files (via a hidden iframe and some ajax requests), browse directories and set various levels of permissions. And everything works perfectly in Firefox. Issue: In IE however, I run into an issue. For some reason wh...

How can I remove scrollbars from an iframe using jquery?

I have a page that I don't control the source to. It contains an iframe. The iframe has scrollbars and a border. I want to remove both. I tried using Jquery like this: $('iframe').attr('scrolling', 'no'); Nothing I do will affect the iframes attributes at all. Any ideas? (IE8) ...

Triggering a file download without any server request

Greetings, I'm working on a JS-based application that does some complex work and logs some information (actually, up to hundreds of lines) on a <div>. My goal is to have a "Save log" button that triggers the browser's download dialog to save the contents of my logging <div>. More concisely, these are the requirements for this feature:...

How to display the text of an html file in UIAlertView as a message....

Hi....i am new to iPhone programming.. i have an html file..in that 3 lines of text is there. i want to display that text in alertview in the message part. for this we need to read the html and store the data in a string..Den use that sting as a message... am i right..? then hw to read the html and how to store that in a string..? plea...

handling html radio boxes with php

Hi, I have a simple HTML form which consists of radio buttons where user has to select 1 out of three. Now the Objective is to save the responses of the user, so we admin can view them later. I am more interested in their actual response rather than values field. here is the sample code <table border="0"> <tr><td><input type="hidden" ...