JQuery :: $.post(), Php File In Parent Directory?

Oct 26, 2009

Is it possible to use $.post() with the php file in parent directory or a completely different directory?

View 1 Replies


ADVERTISEMENT

Copy File From One Directory To Another Directory?

Nov 9, 2010

I'm working on a project for work and I'm having some issue trying to distribute to program the smoothes as possible, on idea I had was using Javascript, Im kind of new at this so ill explain to you what Im hoping to do. Basically Im looking for a onload= function when the .hta opens it would get a file from lets say G:\path\path1\path2\file.hta to C:\path\path1\folder So it would take the file and copy past it in another folder from a different directory. If a popup message could popup saying completed

View 6 Replies View Related

JQuery :: Use GetScript To Point To A Parent Directory?

Oct 5, 2011

a simple "../" doesn't seem to work :(

let me know if there's any information I can provide.

View 10 Replies View Related

JQuery :: Using Load() To Get Data From A Parent Directory?

Feb 17, 2010

I'm trying to use the ajax load() method to load a file from a parent directory, e.g.

$("#divTests").load("../tests.htm");

But that doesn't work. I can load a simple html file from the same directory as my html file or a descendant directory, but not an ancestor directory. Nor can I load from an external server.

Is that just the way it is, or is their a way to accomplish what I'm trying to do?

View 2 Replies View Related

JQuery :: .load() Method Won't Get Html From A Parent Directory

Feb 20, 2010

I'm trying to use the ajax load() method to load a file from a parent directory, e.g.

$("#divTests").load("../tests.htm");

But that doesn't work. I can load a simple html file from the same directory as my html file or a descendant directory, but not an ancestor directory. Nor can I load from an external server.

I'm doing my testing on my PC and I'm not running a server (apache or otherwise). Just using it as a simple client. Is that possibly the problem? Or is there something else I'm missing? If that is the problem, is there a workaround?

View 2 Replies View Related

Action To Instantly Post A Visitors Input To A Directory?

Mar 19, 2011

I have some basic HTML knowledge but rely pretty heavily on WYSIWYG editors (dreamweaver). I think this might be more of a PHP question and not necessarily require a js, but here it is. What I am trying to do is learn how to build a directory in a site that allows any visitor to the site to add A) the company's name, B) the site URL, and C) possibly a brief description. Ideally, the site would also have a drop down menu to select the category in which to post it.

View 1 Replies View Related

Input File-multi File, Directory

Jul 23, 2005

For the <input type="file">, can I select directory? Multiple directories?

View 2 Replies View Related

Select Directory Not File..

Jul 23, 2005

I'm looking for a way to select a directory from a local drive through a
form (like input type="file" except I want to get a directory name not just
a file). I've searched every way I could think of (refer to my brain comment
above) and come up with absolutly nothing.

View 2 Replies View Related

Getting Directory Path Not File?

Jul 16, 2009

i have this web application in which the user has to browse and select a folder but not file. i used <input type="file"> , which helps in retrieving only files.

View 3 Replies View Related

Searching A Specific File In A Directory

Aug 21, 2006

I have a webserver setup in my home, with an index file that is an access
comtrol page, that, if the authentication is sucessfull, takes the user to a
specific directory. In this directory I only have image files in .jpg format.

I need to create a page were the user can either browse the entiry
directory, or specify a filename to search for, wildcards enabled, and
beiing able to see a reduced size image in the result page when hovering the
image/file result link. Any Ideas?

View 1 Replies View Related

Image Gallery From File Directory

Aug 14, 2011

I have almost 300 photos that I want to have in a gallery that is easy to use. I would like to avoid making 300 list items (as is necessary with all of the auto rotators and other jquery plug ins that I've found) but to have the images load straight from the folder after the rest of the website has loaded.

It wold be nice if maybe there was a pretty horizontal scroll bar or something and the image in the middle of the page was biggest if possible, but I'm really not picky. I don't know what the best way is to display so many photos! They don't need captions or anything.

View 1 Replies View Related

Search For The Newest File In A Specified Directory?

Mar 2, 2010

how can i let javascript search for the newest file in a specified directory? this must be a picture

View 2 Replies View Related

Invoking A Directory Browse For File(s) Download

Jul 23, 2005

I have a number of image files that have been pre-selected by the user
for downloading. I'd like to be able to have the user click a button
and have a directory browser pop-up window available for the user to
select the directory into which the image files will be downloaded.

I thought that this would be simple to find but...

If this is possible I further need to know:

1) how to access the directory path string (which will be used to
download the files)

2) how to set any available default values for the directory bvrowser.

View 6 Replies View Related

JQuery :: Access Parent Context From $.post?

Oct 26, 2011

Is it possible to access the parent context within $.post to asign the result to the parent selection?

See this code here:
$("a[href='country#']").click(function(event) {
var dieBusinessUnit = 'THIS VAR SHOULD CONTAIN RESULT OF $("businessunit", xml).text())';

[Code].....

View 5 Replies View Related

JQuery :: Post Class Of Parent UL And Clicked LI To PHP

Jan 13, 2011

I have a menu as follows
<ul id="nav">
<li> <a href="#">Golf</a>
<ul class="golf">
<li class="engine"><a href="#">Engine</a></li>
<li class="brakes"><a href="#">Brakes</a></li>
<li class="transmission"><a href="#">Transmission</a></li>
<li class="interior"><a href="#">Interior</a></li>
<li class="running_gear"><a href="#">Running Gear</a></li>
</ul></li>

<li><a href="#">Polo</a>
<ul class="polo">
<li class="engine"><a href="#">Engine</a></li>
<li class="brakes"><a href="#">Brakes</a></li>
<li class="transmission"><a href="#">Transmission</a></li>
<li class="interior"><a href="#">Interior</a></li>
<li class="running_gear"><a href="#">Running Gear</a></li>

</ul></li>
<li><a href="#">Passat</a>
<ul class="passat">
<li class="engine"><a href="#">Engine</a></li>
<li class="brakes"><a href="#">Brakes</a></li>
<li class="transmission"><a href="#">Transmission</a></li>
<li class="interior"><a href="#">Interior</a></li>
<li class="running_gear"><a href="#">Running Gear</a></li>
</ul></li>

<li><a href="#">Jetta</a>
<ul class="jetta">
<li class="engine"><a href="#">Engine</a></li>
<li class="brakes"><a href="#">Brakes</a></li>
<li class="transmission"><a href="#">Transmission</a></li>
<li class="interior"><a href="#">Interior</a></li>
<li class="running_gear"><a href="#">Running Gear</a></li>
</ul></li></ul>
I want to post the class of the parent ul and the clicked li to php when they are clicked say as "model" and "part". I'm sure its simple but i cant seem to quite grasp how to do it.

View 1 Replies View Related

JQuery :: Get Post Data From A Page Loaded In Iframe In Parent?

Sep 24, 2009

How to get post data from a page loaded in iframe in parent page

View 1 Replies View Related

JQuery :: Intro To Serialize - Send To A PHP File With A Post

May 20, 2010

I have two variables that I would like to use jQuery serialize and send to a PHP file with a post. I don’t know how to format the command to serialize them. Here is the start of the code. How do you serialize the day and month variables?

var currentTime = new Date()
var day = currentTime.getDate()
var month = currentTime.getMonth() + 1

View 2 Replies View Related

JQuery :: Send An Ajax Post To An External File

Aug 21, 2009

I've used a few jquery things before, but I haven't a clue when it comes to javascript, so I've mainly just modified variables here and there. This is my first attempt at actually writing something, and well.....its not working

Im trying to send an ajax post to an external file, which simply returns 'Complete' after updating the db. My html gives me an ul, with li elemnts, representing names of comics.

Anyway heres my code:

View 4 Replies View Related

JQuery :: Functions Not Being Defined From Parent File?

Mar 12, 2009

I have 2 custom JQuery files..Now the sequence in the header of the HTML file is as follows1. Jquery Library2. File 13. File 2The problem im facing is that, file two is not recognizing functions created in file one... ex..

Code:
$(function() {
function say_hi() {

[code]....

View 2 Replies View Related

JQuery :: Post - Php-loop To Read An Xml File (id And Comment) - Assign Via A Parameter (or Whatever) In The Header Script?

Jan 28, 2011

I have a php-loop to read an xml file (id and comment). Now to my question, must i write the Script into the loop or can i assign via a parameter (or whatever) in the header Script?

[Code]...

View 1 Replies View Related

Post An Invisible Value To Js File Getelementbyid?

May 9, 2010

I keep getting an object expected error at the start of my <body>I've set a form to value="Accountants" and <body onload="showindex()"> in an attempt to automatically submit this value to a js file whenever the page loads. My aim is to have dozens of html pages all using the same js file to return information based on the contents of that value.

Code is below

index.html
<head>
<script src="AccountantsLoad.js"></script>

[code]...

I'm probably not submitting the form value correctly or the js file 'url' variable isn't being put together right.

View 5 Replies View Related

File Open And POST To Server

May 6, 2009

I'm trying to read a file (will be a firmware update) into a byte array or binary stream or stream of some sort, and then POST it to my server. Any suggestions on opening and reading files from within js? Note, the server is a development server and will not run PHP or CGI scripts for example. I just need to be able to open a file from within a js function.

Also, no ActiveX objects, this needs to be Cross Platform.

View 3 Replies View Related

AJAX :: Post Not Reacting To Php File?

Dec 9, 2010

AJAX :: post not reacting to php file?

View 2 Replies View Related

Ajax :: File Upload - Doesn't Post The Form Data

Aug 19, 2010

The script calls the php file without a problem when the submit key is hit. However, it doesnt post the form data with it. The HTML form

[Code]...

View 2 Replies View Related

How To Open Local File In Parent Window

Mar 23, 2011

How do you open a local html file in the parent window (asp.net)?

View 1 Replies View Related

JQuery :: Specifying Variable In Parent To Match Variable In Ajax File

Oct 21, 2011

Ok, so I've built a member search using ajax to change the results each time a filter is changed. It works great, except one minor issue that I'm struggling with...I just can't specify dynamically in the parent file that linkclass$id opens linkclasscontent$id as I don't know of any way to pass that $id variable back over to the parent.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved