Best Approach For Download Item
Jul 20, 2005
I have several PDF files that I want folks to read. Should I just write
some text and make a hyperlink to the file. I'm still trying to decide if I
want them to only open the file and read it or force them do download it.
View 1 Replies
ADVERTISEMENT
Oct 2, 2011
I am trying to create a way for my users to download some code dynamically from my web page via a file download. Below is the code that i have written so far. It seems to be dying on the iframe but i'm not sure why.
Here is my jquery trigger which is inside my onreadystate function.
$('#export_txt').click(function(e){
alert(LPAjax.ajaxurl + "/download.php");
$.generateFile({
action: "download_txt",
filename: "exportme.txt",
[Code]...
View 1 Replies
View Related
Sep 12, 2010
Sometimes I wish I had started with javascript instead of php... Really need your help fellow Sitepointers! I stumbled over a script that I am dying to use for my new design, but I need to do two small tweaks to it that my JQuery skills just aren't up to.Demo of the script is here:http://www.seoarticlewritinglab.com/lofslidernews-1/As you can see, it automatically scrolls every X seconds to the right until it gets to the end. Afterwards, it does a huge fastforward back to the first item. What I want it to do, is to automatically scroll to the right every X seconds, but when it gets to the end, simply change scrolling direction, and scroll backwards one item at a time every X seconds... And when it gets to the first item, switch the direction back to normal forward scrolling.Can someone point me in the right direction and help educate me a little bit in javascript? This is probably really easy for you experts, but I am having a really tough time.
Code:
// JavaScript Document
/*! Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
[code]....
View 3 Replies
View Related
Apr 11, 2009
I need to have a submit input button automatically start a download when clicked, but also redirect to an additional "information" page. Since I'm not sure if this can simply be solved with HTML or must use some Javascript.
View 4 Replies
View Related
Aug 20, 2010
I am fairly new in trying to cut up and customize a jQuery plugin, previously I was able to just grab code from various blogs and did not really have to dive into the js but now I am unable to find any good resources with this particular plugin.
The plugin I am working on is jQuery.sheet, [URL]...ionalities that I want, I need the plugin to be able to send a AJAX request as soon as the user edits the cells and then update that input in the mysql table in the back on the fly. currently his plugin works by doing a hard save by invoking a save function.
I have taken a look at the massive code in jquery.sheet.js but I really have no idea where to begin. The developer doesn't reply my emails either so I was wondering if anyone here can point me in the right direction. I figure a seasoned jquery ninja can look at the js file and can see how the code works when users click to edit a cell. I am still trying to figure that part out...let alone trying to add ajax requests.
View 1 Replies
View Related
Feb 16, 2011
I posted earlier but I don't think I was very clear with my question,
I'm trying to emulate this flash menu for a client, and was wondering what the best approach would be..[URL]...
View 7 Replies
View Related
Jun 19, 2009
I'm trying to create a list, to which you can:
1. Add and remove items.
2. According to what's in this list, there should be dynamic content loaded on to the page.
I've accomplished 1 with the code below. I'm not sure about how to accomplish 2.
<script language="javascript">
var listItems = new Array();
var currentList = new String();
function listManager(task, id, name) {
//$("#debug").append(" ##### List manager. ("+listItems.length+"
items) #####
");
if(task == "add") {
refreshList(); // refresh the list .....
View 2 Replies
View Related
Jul 14, 2011
I have a page /download.php.basically on entry this page displays a browser download dialog box for a file.I was wondering if there is a way to use .load() to get the same download dialog box on another page.I tried the code below but it does not work/ what jquery function I can use to get this working
$('body').load('/download.php');
View 1 Replies
View Related
May 11, 2010
$(document).ready(function(index){
$(connectSort).each(function(index, obj){
$("." + this).sortable({
connectWith: ".connectedSortable_" + this,
[Code]....
the first function(start: function ..) displays an attribute (title) of the dragged item once the sorting starts. supposedly, the second function (stop: function ..) would display the same attribute but of the item replaced by the dragged item once the sorting stops.
I have tried a lot of things already, but none seems to work.
View 2 Replies
View Related
Dec 21, 2010
I am trying to get started using JQuery, but I find I can't even get to lesson #1. When I go to jquery.com and click to download the latest version (or any version) it doesn't "download" anything. It opens the file as a webpage in my browser and I see all the JQuery in one big string. Why won't the file just download? Is it the browser I am using? Is it my Mac?
View 2 Replies
View Related
Apr 7, 2010
I have some js code in which a click on a nav arrow causes list to be walked up or down and hilighted. Partial code is below. The problem is that when I get to the end of the list (e.g. there IS no next()), I want to skip this part of the code and actually hide the right arrow. I have no problem with the hiding part - I just want to set a flag when I have traversed the list to the last item.
[Code]...
View 4 Replies
View Related
Jun 16, 2011
i have a Drop down list with 10 choices (skillset). users must choose one skillset and the corresponding level (beginer/intermediate/master). ( they have to do this 10 times for all the sillsets) what i want is :
1 - i need to show up only one record (dropdowanlist) with level then have a button to add new skill and level if required 2- then when they choose the 1st skill from the dropdown , this one will not show up on the 2nd choice dropdown.
View 15 Replies
View Related
Jan 26, 2010
I'm experienceing some problems with jQuery 1.4(.1) with the "new" ajax param serialization. My code does basically this:
[Code]....
so I'm creating an array within the "ajaxparams" object, which I fill with some data. So far so good. Problem here is, the $.post request creates a string like this:
[Code]...
Release Notes Snippet: jQuery 1.4 adds support for nested param serialization in jQuery.param, using the approach popularized by PHP, and supported by Ruby on Rails. For instance, {foo: ["bar", "baz"]} will be serialized as “foo[]=bar&foo[]=baz”. since I'm working with perl and not php, this issue is getting a little bit annoying.
View 6 Replies
View Related
Jul 23, 2005
I'm trying to script a download counter that will display the total
number on the download page without server-side scripting.
Below is my very incomplete beginning. It returns no errors, but does
nothing:
<script language="JavaScript">
function addClicks() {
total = "form1.value";
form1.value = (eval(total.value) + (1));
}
</script>
<form name="form1" method="get">
<p><input type="text" name="total" maxlength="4" size="4"> <br>
<input type="button" name="addition" value="Download"
width="10"></p></form>
View 8 Replies
View Related
Jul 23, 2005
CAn anyone tell me where to get previous versions of internet explorer
(for ecxample version 3 or 4)? I need it to test my javascript code...
View 3 Replies
View Related
Oct 14, 2005
Does anybody have a Download Dialog written in JavaScripts? This is for a website. I've seen it done before.... where you click on what you want and the dialog comes up asking you if you want to save it. From what I can tell, the name of the file is passed as a parameter of the JavaScript.
View 6 Replies
View Related
Aug 17, 2006
I'm using ASP.NET and setting window.location.href in my web page to output an audio file that the user is prompted to download. I would like to provide a link so that the user can download the audio file and an XML file one after the other. I've been experimenting with opening a new
window, but there must be a cleaner way of doing this.
View 1 Replies
View Related
Sep 13, 2006
My objective is to redirect to another web page after download is
complete.
I have an activeX called to download a few dlls using the following
code
document.writeln(' <OBJECT ID="MQC" ');
document.writeln(' CLASSID="CLSID:98c53984-8bf8-4d11-9b1c-c324fca9ca"
');
document.writeln(' CODEBASE="test.ocx#Version=9,1,0,4359"');
document.writeln(' WIDTH=100% ');
document.writeln(' HEIGHT=100% >');
document.writeln(' <PARAM NAME="DomainPassword" value=""');
document.writeln(' <PARAM NAME="RootURL" value="' + getTdRootURL()
+'"');
document.writeln(' </OBJECT>');
I tried redirecting in the onLoad event of the form but doesn't work. I
suppose it redirects as soon as the activeX is loaded and not when it
has finished its download.
View 1 Replies
View Related
Jul 20, 2005
I am trying to allow a user to view a PDF in a new window. I currently have this working using the following:
<a href="./pdf.do?parameter=01121980" target="top"><b>pdf</b></a>
The problem with the above solution is the back/forward buttons and all the other browser options. Because of this, I am trying to get the following solution to work:
<a href="#" onclick="popUp('./pdf.do?parameter=01121980')"><b>pdf</b></a>
function popUp(url)
{
window.open(url, "PDF",
"width=500,height=500,status=no,toolbar=no,menubar= no");
}
When I use this implementation, I get a window asking if I'm sure I want to download the file (which I do not get from the first implemenation). I click yes, and it says it was unable to download the file. Just as an experiment, I have taken the url that ends up in the location bar from the working method and pasted it in a new browser window. That gives me the same error as the popup function method.
View 3 Replies
View Related
May 21, 2010
How to download a pdf link? suppose we have a pdf url [URL] now i have to create a button on click of which it downloads that pdf. i have tried window.open() method in javascript but it opens it in another window. is there a way to download a pdf link using javascript or ajax.
View 3 Replies
View Related
Jul 23, 2005
I would like to design a page that measures the user's download
connection. Does anyone have an example link or script that might aid
me in this task?
View 4 Replies
View Related
Nov 23, 2005
I need to download - randon size - parts of a file, not the whole file.
Says: I have the zip file test.zip, it is 10 mega bytes long. But I
don't want the 10 mega today. Today I want 5 mega bytes. Tomorrow I
could want more 3 mega bytes of the file, but it is not sure, could be
4 mega bytes. I need to part the zip file in chunks at request. No CGI,
no asp, no php. Only client side scripts.
View 5 Replies
View Related
Jul 9, 2007
I am curious to know if any research has been conducted regarding the
efficiency of having a single (large) .js file downloaded for a
webpage compared to several smaller .js files.
For example in my web pages I often include the scripting code
<script language="javascript" type="text/javascript"
src="ascript.js"></script>
which contains all the code for a given function, i.e. the main
function and any subsidiary functions.
I have developed a few library functions (leftString, rightString,
etc.) and these can be invoked by functions in other .js files, so I
would have something like":
<script language="javascript" ... src="libs.js"></script>
<script language="javascript" ... src="ascript.js"></script>
I'm just wondering if there is any difference in download time when
the HTML has to download these separate .js files rather than a single
one.
Even though the use of broadband is spreading I still like to keep my
web pages as efficient as possible, not everyone has broadband after
all, some still use dial-up connections.
View 3 Replies
View Related
Jul 20, 2005
The script below allows me to link to a file and as the user clicks to
download, the 'File Download' windows appears as normal, and the user can
download...
The original page is then redirected to a new page..
This works, but it also opens a blank page..
How can this be chaged to stop the blank page from opening... ?
<script type="text/javascript">
function functionname(thefile){
document.location.href="somepage.html"
newwindow = window.open(thefile)
newwindow.close
}
</script>
<a href="#" onclick="functionname('filename.zip')">wqe</a>
View 3 Replies
View Related
Sep 27, 2010
I want to download BeautyTips. I go to [URL].... and I get to what appears to be an appropriate page.However, I can't find anything to click that seems to result in a download.
View 1 Replies
View Related
May 6, 2011
I do not see a link that would allow me to copy the documentation. I want to have it local so I can work disconnected from the 'net. Spidering the tree off the website seems a bit much. Did I miss it?
View 2 Replies
View Related