Ask questions and get good answers on jQuery

Maybe im missing something.

Ajax content. Ok i can get a page to show up within the container using the ajax method in the example demo file.

Though if a link is within the page and you click on it it will open a new window rather then reload the container with the new page request. This is a local page not a external page on the net.

So ajax should load the new page in the same container if it is a true ajax call for the container.

Is the container actually a ajax container or is it some sort of modal?

EG:

OPen ajax icon Page loads fine Links in the loaded content show up fine but when clicked they open in new window rather then the existing ajax container This is how its working now.

Is there some parameter that needs to be changed or is the container not truly a ajax container?

asked Feb 24 '10 at 00:33

Bob1's gravatar image

Bob1
111


  1. You can not load pages out of your domain via Ajax (cross domain security violation);

  2. to load content via Ajax into mb.containerPlus there are two ways:

    A. set the url via metadata: "class={..., content:'yourAjaxUrl'}" and the content will be loaded once the container is initialized.

    B. You can change the container content via Ajax whenever you invoke:

    $(yourContainer selector).mb_changeContainerContent('yourAjaxUrl');

Anyway I don't understand what are you trying to do and what do you mean by "truly ajax container"...

answered Feb 24 '10 at 09:09

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

Hello Matteo

I posted a question like this one - I think. Can you explain how this is used? $(yourContainer selector).mb_changeContainerContent('yourAjaxUrl'); I have a mbContainer loaded by Ajax in the content there is a link like this a href="../contacts/view_contacts.cfm?ContactID=#ContactID#" when it is clicked it opens in the parent window. I want it to load inside of the mbContainer.

Thank you, -Randy

answered Nov 02 '10 at 08:21

Randy's gravatar image

Randy
112

edited Nov 02 '10 at 08:22

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

Asked: Feb 24 '10 at 00:33

Seen: 710 times

Last updated: Nov 02 '10 at 08:22

Related questions

jQuery main site - Matteo Bicocchi