Solved

Embarrassing Question with URL and .load jquery

Posted on 2011-02-17
3
972 Views
Last Modified: 2013-12-13
This is embarrassing but I have already wasted enough time trying to figure it out.

when I call .load it takes the file name only and not the rest of the path and it calls it relative to the calling file. I need to call a file residing in another folder within the same domain.

Help

var loadURL = "/aaMain/glossary.php";

$("#result").load(loadURL);

it looks for glossary in relative url, not in aaMain!
0
Comment
Question by:gbeaulac
  • 2
3 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 34921998
what about specifying the full path ?
$("#result").load("http://www.yousamedomainandprotocol.com/path/to/aaMain/glossary.php);

Open in new window

0
 
LVL 82

Accepted Solution

by:
leakim971 earned 125 total points
ID: 34922001
I miss the ending double quote :
$("#result").load("http://www.yousamedomainandprotocol.com/path/to/aaMain/glossary.php");

Open in new window

0
 

Author Comment

by:gbeaulac
ID: 34922115
Thanks ... It was my error, I did not add return false; and the code followed the link href that I thought I had disabled.

thank you for pointing me in the right direction.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question