I want to let the user download the current content of a textarea into a text file on their computer. In the past I would create an iframe pointing to a URL with the data, which would trigger a file download dialog. However this time the data is client side.
So, is it possible to let the user download data without sending it server sid...
<span class="stbuttontext" st_page="home">ShareThis</span>
I want to change "Share This" to "Share",
please let me know the solution.
thanksl,
...
My form works in firefox but not ie. I've tried using a hidden text field (fail)... I tried using an image instead of a submit button (fail)... are there any other solutions? Here is my form:
<?php
print "<table width='522' cellpadding='2' cellspacing='0' border='0'>
<tr><td valign='top' width='128'><img src='logo.gif' border='0'></td>...
page contents:
aa<b>1;2'3</b>hh<b>aaa</b>..
.<b>bbb</b>
blabla..
i want to get result:
1;2'3aaabbb
match tag is <b> and </b>
how to write this regex using javascript?
thanks!
...
ok simple question about including large mostly static html and asp.net code I am using as of right now #include and I was wondering if iframes would be a better way of handling what I wish to do or is there a better way to do it. here is the current way i'm handling the includes
default.aspx
<%@ Page Language="C#" AutoEventWireup=...
How do i go about inserting a cell into a table?
For example, i retrieve data from a database using MySql and PHP, how do i then go about inserting a cell into an already scripted table?
In my case, how would i insert a cell into a row 150 pixels from the start of the row?
example:
___________________________________________
| <--15...
Hello,
I've looked at jTidy for converting a snipped of malformed/real-world HTML into well-formed HTML/XHTML. However, there's a bug in the latest version due to which I'm not able to use it. I'm looking at Jericho since it has a lot of positive reviews around the net.
However, its not immediately obvious to me how one would go about ...
Much like how the video tag can provide multiple source attributes so an mp4 video can fall back to an ogg video, I would like to get an svg image to fall back to an png image.
...
I am trying to send an HTML email using Perl.
open(MAIL,"|/usr/sbin/sendmail -t");
## Mail Header
print MAIL "To: $to\n";
print MAIL "From: $from\n";
print MAIL "Subject: $subject\n\n";
## Mail Body
print MAIL "Content-Type: text/html; charset=ISO-8859-1\n\n"
. "<html><head></head><body>@emailBody";
cl...
Hi, what's wrong with this code?
The background disappears behind the divs when I add float: left to #text and #text2. But when I remove the float: left, everything looks good.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
#fir...
Hello,
Recently, a client asked that his site be percent-based rather than pixel-based. The percent was to be set to 80%. As you guys know, it is very easy to center the container if it is pixel-based but how do you center a percent-based main container?
#container
{
width:80%;
margin:0px auto;
}
That does not center the containe...
i coded a random quote generator in php using mysql but also jquery. however when i try to integrate it with facebook, since i opted to use fbml, i could not use jquery.
how do i get the quote to display randomly in php at say, 30 mins, without using jquery or javascript?
...
Giving an Error Object Expected Line 48 Char 1------What did I do wrong???
*Note Line # are for reference only not on Original Web page******
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="Leslie Peer" name=author>
<META content="Created with Trellian WebPage" name=descripti...
Ok, here's the thing.
I've done a webpage which contains forms and so I added buttons as elements and this works great. I created their own css classes and use graphics as background images for each of them. All working great (these are submit buttons btw)
Anyway, I've also got a jQuery script from before that takes all a href hyperli...
I would like to create an application in swing in the style of web 2.0 but have the power and functionality of a thick client. I know substance and some other look and feels help with this some, but I was wondering if there is a way I can actually use some kind of html panel / canvas to create the content in html, embedding swing control...
I have an application where an HTML page first loads, then an applet with lots of data loads. It takes some time for the applet to load and while the applet is loading the customer would like an hour glass to be the shape of the wait cursor (even though the Sun Java display is doing its usual thing). I know the javascript command f...
I am trying to get jquery to pick up variable that I am defining and I'm having issues doing it.
$.ajax({
url: "sitemap.php",
cache: false,
success: function(html){
$("#results").append(html);
var $seriestitle = $("#define-title").text();
$('#results a:contains("$seriestitle")').addClass('current-series');
$('a:not("...
Hello,
For the HTML table column below, the $count++ displays in the middle of the row. How can I get it to display at the top of the row?
Thanks in advance,
John
Code:
echo '<td class="commentnamecount">'.$count++.'.</td>';
CSS:
.commentnamecount { width: 20px;
overflow:hidden !important;
color: #00000...
What's the best way to pass in the value held in a javascript variable into an iframe call on the same html page? I'm trying to improve my site's page response times by moving ad serving javascript code (the typical document.write('<script type="text/javascript" src="..") into a separate iframe. (Based on this posting)
The request to ...
My goal is to be able to get the highlighted text within a document, but only if that text is within a given section, and then apply a certain style to that selected text after clicking a div tag. I'll explain what I mean:
So, having looked at window.getSelection() and document.selection.createRange().text, I attempted to use elmnt.get...