Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Embarrassing Question with URL and .load jquery

Posted on 2011-02-17
3
Medium Priority
?
1,006 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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 …
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

618 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