Solved

Embarrassing Question with URL and .load jquery

Posted on 2011-02-17
3
959 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
echo button 13 46
Pass through dll 2 36
PHP Sum Column in Table 3 27
Tracking Bouncebacks in PHPMailer 2 4
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now