Solved

Embarrassing Question with URL and .load jquery

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to implement server side field validation and display customized error messages to the client.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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 …

726 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