?
Solved

Embarrassing Question with URL and .load jquery

Posted on 2011-02-17
3
Medium Priority
?
1,001 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to dynamically set the form action using jQuery.
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…
Suggested Courses

800 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