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


ADVERTISEMENT

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 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

JQuery :: Using .getscript To Load In A Div

Apr 6, 2010

I'm trying to use getscript to load a js file, and place it in a div id. I've seen alot of examples online of doing so via a onlick, but I'm really looking to do this during page load. Is it possible to place the executed js via getscript in a particular div?

View 2 Replies View Related

JQuery :: GetScript - Site Does Not Finish Loading?

Jan 12, 2010

As i understand the getScript function should be asyncronous, but when i use it the website won't finish loading in firefox.

My code:

Calls itself so the counter this script is used for is updated - all works well, just the page keeps loading...so whats the problem here? why does the website not finish loading?

View 2 Replies View Related

JQuery :: Remove Script As Opposite To GetScript()?

Feb 7, 2011

I am using Jquery ajax in JSP and I am populating divs using the callback method of jquery ajax. To enable jquery/js for the populated divs I am using getScript() function so that the jquery methods get bind to the newly generated divs/html tags. Now when I am doing this multiple times the js file is getting loaded multiple times and the next time when I perform an event lick onclick or onchange, two ajax calls are going to the server which is causing lot of inconvenience. Now, my question is that is there any way to unbind the old js file either in the head tag or the one cached by using getScript function.

View 1 Replies View Related

JQuery :: GetScript Loading External Facebook Script?

Jan 4, 2011

Im tryingdynamically loading external facebook script, but doesn't work. i cant see Like buttons.

[Code]...

View 2 Replies View Related

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 :: Rollover Point For A Map?

Feb 2, 2010

I want to have a world map where you can hover over icons on a few countries and a popup text box will show where that place is.

View 4 Replies View Related

JQuery :: Finding Non-Predetermined DOM Insertion Point?

May 12, 2010

How can jQuery locate a non-predetermined DOM insertion point? My application relies on custom code to "bootstrap" itself. I'm wondering if similar functionality is available in jQuery?

My app works in the following fashion:
- user places a script tag in their web page.
- my script fires and performs the following routines:
- scriptLocation = whereAmI()? (find scripts in document, length -1)
- insertBefore(DIV, scriptLocation);
- use DIV as canvas, DOM target for all that follows
- install application in DIV

Note that my custom app does not wait for any kind of "ready" state. It has no dependencies on the surrounding document. It fires inline. My impression is that jQuery's approach ("Find something, do something") is incompatible, because it relies on a known DOM insertion point. It would seem straightforward to "query" the DOM, and find an element of known ID. That would conflict with my business constraint; I have no control over the destination page. Are my assumptions about jQuery true? Or is there a way for a jQuery script to wake up, find its location, and the install elements there?

View 5 Replies View Related

JQuery :: Loading Google Map Js On A Certain Point Of Action

May 26, 2009

on my contact page, I have some hidden divs. One is for a google map. This div is only shown when the user has clicked to open the div. As I am working with smarty my template looks like this: <span id="gmap"> literal}

[Code]....

View 3 Replies View Related

JQuery :: Select Next Class From The Point Of Click?

Sep 19, 2010

in FCK-Editor I would like to do the following:On one page there should be severalHeaderText under the header, which is hidden, when the text is loaded and slides up and down after click on headerHtml, which is easy to edit with FCK could look like this:

<p><a href=""><span class="click">Header</span></a></p>
<p><span class="text">Text under the header, which is hidden, when the text is loaded.</span></p>

[code]....

View 7 Replies View Related

JQuery :: Create A Stop Point In Image Slider?

Jun 30, 2011

I have a client request I need a little advise on with an image slider.Client says;"There will be 4 photos that roll over two times each then stop on the Home Page photo then opens a text box over the left of the image"The part I'm not sure how to do is how to set the slider to stop on the Home Page image after the 4 images go through the animation two times.

View 2 Replies View Related

JQuery :: Point Of Loading The Google Maps Api File?

Apr 28, 2009

Point of loading the google maps api file?

[Code]...

View 1 Replies View Related

JQuery :: Dynamically Get All Files Name From A Directory?

Nov 2, 2011

How can I dynamically get all files name from a directory?I need to have a directory with pictures, and when I copy new ones, on my website to have them listed inside of a div. If jQuery can't do this, there is otherpossibility

View 1 Replies View Related

JQuery :: Pulling Images From A Directory?

Apr 27, 2011

I've created a jquery slideshow what I wanna do is to pull files from a directory and add them to the slideshow like open file dialog or any other technique.

View 12 Replies View Related

JQuery :: Element Overflows Containing Block When Parent Border/padding Change - Not When Parent's Margin Changes

Sep 24, 2011

Demonstration page: [url]

Adjust the CSS margins of the BODY element with the first slider. The yellow P (paragraph) element resizes to fit its smaller containing block, as I would expect.

Then, adjust the CSS border or padding of the BODY element with the second and third sliders. The P element does not resize, though its origin changes. Instead, it overflows its containing block.

Finally, adjust the margins again. The P element snaps back into its containing block.

As you can see from the source, this is jQuery 1.6.4 and jQueryUI 1.8 pulled from googleapis.com.

Edit: Client is Google Chrome16.0.889.0 dev-m.

View 2 Replies View Related

JQuery :: DOM Tag Not Found When Select String Includes A Decimal Point / Fix It?

Aug 30, 2010

I am doing some maintenance work on a classic asp web page that displays product information. I am changing how the page looks up the available quantities for the various sizes. The old method used several SQL queries to determine the number of sizes and available quantities and then used those results to build a table on the fly on the page.

My modification consists of a web service that consolidates product size availability from three different sources and delivers the data via an XML formatted return. I have also added DOM tags in the table that is built on the fly that identify each entry with the product id and size. So, for a product that has an ID of "P12345" and a size of "XXL," that corresponding cell in the table gets an id tag of "P12345_XXL."

My jQuery update statements worked just fine using this approach until the sizes included decimal numbers. My example for this is shoe sizes. A size represented by an integer (6,7,8,...,15,16,17, etc.) works fine. A half-size represented by a decimal (6.5, 7.5, 8.5,...) does not. Even though the period is contained within a string value, jQuery doesn't seem to be able to match the value with an id tag - and yes, I have verified that the two (the string that I am giving to the jquery select and the actual tag) do indeed match.

So far, the only work-around that I have come up with is to multiply numeric sizes by 10 and parse as integer values. Is this a "known issue" and is there a more elegant solution topursue?

View 2 Replies View Related

JQuery :: Modifying ExpCollGroup Function In Share Point 2003

Nov 10, 2010

I am trying to modify the ExpCollGroup function within Share Point (2003) and don't have access to server or ows.js file where the function lives. I want the ExpCollGroup function to run (I'm using it to expand/collapse documents in a document library), and then when finished, want to be able to run my own function like DoSomething(). The below code works but fires before the ExpCollGroup code executes. What can I do to make the ExpCollGroup function execute, and then perform my DoSomething function?
$('[id^="img_"]').click(function() {
alert(The Expand/Collapse button was pressed but the loading of documents has not yet begun');})

View 4 Replies View Related

JQuery :: TreeView Cookie Persistence - JSP Directory

Jun 30, 2009

I'm having some issues using the cookie persistence, it appears that as long as the link is in the jsp directory the menu renders properly, however if the link is not in the jsp directory the cookie is set to null and when the page loads all of the trees are expanded.

Here is the abridged version of the file that I'm using, this is included on all pages of my application.
<div id="main"><a href=".">Main Demo</a>
<div id="sidetree">
<div class="treeheader"> </div>
<div id="sidetreecontrol"><a href="?#">Collapse All</a> | <a href="?
#">Expand All</a></div>
<ul id="tree">
<li><span>Customer Accounts</span> .....

View 1 Replies View Related

JQuery :: Select A Random Image From A Directory?

Feb 25, 2011

I'd like to know if there's a possibility to select a random image .. but .. from a directory.

I've seen many posts regarding this subject, but all of them show the procedure once you have the image names inside an array.

I need to know how to select a random image from a directory that's filled with them, like let's say /public/images

View 2 Replies View Related

JQuery :: Point And Click Style Walkthrough And Interactivty Using Static Images?

Mar 14, 2011

I understand that the very essence of the web is point and click however what I'm trying to achieve is anavigationsystem using a series of static 3D Render images have them seamlessly stitch together creating apseudowalk througheffect. For example if a user clicks on a hot spot e.g. a drawer it will fetch the same image but with the drawer open. or if a user wishes to go 'deeper into the scene e.g. a walk-through style effect then they would click on the hotspot and the image presently loaded would zoom out and and fade out loading the next thus giving you forward motion

mentally speakingIunderstand this to be perfectly simple to do technically speaking not so much this at the moment is acompletelyconceptual idea with no coding as I'm still attempting to get my bearings with jquery i was curious to what peoples thoughts were on the idea whether or not it is possible to do?

View 2 Replies View Related

JQuery :: Looking For Expand / Collapse Tree Directory Navigation?

Jul 25, 2009

I'm looking for an expanding/collapsing tree directory type of navigation and was wondering if someone knows of a good one that's out there and available.

What I'm specifically looking for is one that is triggered on the click of a *graphic* that toggles the show/hide. Each text nav item should be hyperlinkable to it's own link/page. So for example (the + and - are the collapse/expand graphics, the dot leader is for some formatting) [code]...

View 3 Replies View Related

Jquery :: Image Fetcher - Setup Directory Full Of Photos

Oct 29, 2010

I am working on a script which will get images (.jpg & .png) from a directory in my server.
HTML Code:
jQuery.getJSON(url, function(data) {
var images = jQuery.map(data.photos.photo, function (item){
return '/images/';
});
callback(images);
});
}
At, /image/ , I want to get all of the images in a from a set up directory full of images, named as 1.png, 2.png, 3.png ,etc. Lets say that the directory of the images are in /images/, How do I set it up so that this script gets the images?

View 1 Replies View Related

Point

Jul 23, 2005

Is there a method to get the x and the y coordinates where a user click in
the screen?

View 1 Replies View Related







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