[jQuery] Re: Is it possible to show a specific div on a distant page (same domain) ?

2008-01-07 Thread dme69

Hi,

Thanks for all your answers. I'm going to look at this solutions.
I'm not sure I will be able to modify each page ...

Thanks again.
It will help me.
Dominique.

On 7 jan, 14:39, aldur <[EMAIL PROTECTED]> wrote:
> So what you want is that you have a site map structure and when you
> mouse over a link it runs off and gets a specific DIV from that page?
>
> it should be possible to use ajax to retrieve the page html source and
> parse it for a specific div.  large memory hog.
>
> would it be possible for you to add a bit of code to each page that
> would render just the div that you want as you could pass that as a
> parameter when calling the ajax function
>
> ie
>
> http://mysite/mystructure/mypage.php?showID=myID
>
> this way would be quicker as you would not be loading all the page
> content.


[jQuery] Re: Is it possible to show a specific div on a distant page (same domain) ?

2008-01-07 Thread aldur

So what you want is that you have a site map structure and when you
mouse over a link it runs off and gets a specific DIV from that page?

it should be possible to use ajax to retrieve the page html source and
parse it for a specific div.  large memory hog.

would it be possible for you to add a bit of code to each page that
would render just the div that you want as you could pass that as a
parameter when calling the ajax function

ie

http://mysite/mystructure/mypage.php?showID=myID


this way would be quicker as you would not be loading all the page
content.




[jQuery] Re: Is it possible to show a specific div on a distant page (same domain) ?

2008-01-07 Thread Andy Matthews

Karl...

I'm thinking he wants to show/hide a div on another page. Not pull content
into the current page from another. 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Karl Swedberg
Sent: Monday, January 07, 2008 7:42 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Is it possible to show a specific div on a distant
page (same domain) ?


Hi Dominique,

Check out this page in the documentation:

http://docs.jquery.com/Ajax/load#urldatacallback

It includes a nice example of doing just what you're attempting:

$("#links").load("/Main_Page #p-Getting-Started li");


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jan 7, 2008, at 5:14 AM, dme69 wrote:

>
> Hello all,
>
> First i want to say Happy new year to everybody.
> I'm from france so don't take too much attention on my english ;-)
>
> I think all is the title ...
>
> The ID is to make a kind of sitemap with preview mode.
>
> Dominique.




[jQuery] Re: Is it possible to show a specific div on a distant page (same domain) ?

2008-01-07 Thread Karl Swedberg


Hi Dominique,

Check out this page in the documentation:

http://docs.jquery.com/Ajax/load#urldatacallback

It includes a nice example of doing just what you're attempting:

$("#links").load("/Main_Page #p-Getting-Started li");


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jan 7, 2008, at 5:14 AM, dme69 wrote:



Hello all,

First i want to say Happy new year to everybody.
I'm from france so don't take too much attention on my english ;-)

I think all is the title ...

The ID is to make a kind of sitemap with preview mode.

Dominique.