• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Ajax Updates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ajax Updates


  • Subject: Re: Ajax Updates
  • From: "Daniele Corti" <email@hidden>
  • Date: Fri, 2 Mar 2007 18:21:15 +0100

Thanks Jake!!

this Drosera seems amazing! And it's really easy to use!

...strange name, however...

It seems strange, but I've no problem with firefox... and FireBug gives no errors

2007/3/2, Jake MacMullin <email@hidden>:
If you're trying to debug Ajax in Safari, I can recommend the 'Drosera' debugger that comes with the WebKit Nightly Builds.

Download a copy of WebKit from:
http://nightly.webkit.org/

Copy both WebKit and Drosera to your Applications folder.

Launch WebKit.

Launch  Drosera and when prompted 'attach' to the WebKit you just launched.

Point WebKit at your application and watch as Drosera loads all the _javascript_ libraries your app uses. You can now put break-points in, step through the _javascript_, inspect variables etc..

Regards,

Jake

On 3/2/07, Daniele Corti < email@hidden > wrote:


2007/3/2, Mike Schrag < email@hidden>:
1) FireBug in FireFox is the way to diagnose anything Ajax related ... Bring it up and see what requests and responses are coming back

I'm using safari ;-P,  but I'll try

2) When you say it "doesn't work", which part?  Is the action not called?  Is the div not refreshed?

is the div not refresh, I mean the action method is called, but the div don't refresh
 

3) Why are you doing an onClick with an Ajax.Updater in it vs just having updateContainerID = "content"?  That looks particularly suspicious to me.

because updateContainerID in AjaxSubmitButton has never worked!  I've found this solution on  the AjaxExample and it works!
 

4) Are you reasonably up-to-date with Wonder (meaning if you're using Wonder 3.0.0, you're in for pain -- Ajax is SUBSTANTIALLY better in more recent builds)?

I'm using the 3.1...

ms

On Mar 2, 2007, at 11:21 AM, Daniele Corti wrote:

Hi all,
there's a problem that I really don't understand: I'm using Ajax to update a div with the content of my site, leaving the wrapper immutate.

sometimes It happens that the update doesn't work, not for errors, but just doesn't work.

Does anyone has some ideas about why this happen?

I'm not sure, but it seems to me this happen only with AjaxSubmitButton, but I'm not sure...

for more information:

tipical Submit:

AjaxSubmit1 : AjaxSubmitButton {
    action = "">    value = searchStr;
    Ajax.Updater('content', $('content').getAttribute('updateUrl'), {});";
    class = "button";
}

"content" is the id of my main div.

tipical UpdateLink:

AjaxPrevLink : AjaxUpdateLink {
    action = "">    updateContainerID = "content";
}

the action are

public WOActionResult search()
{
//do my things
return null;
}

same for "back"

thank you for your help!!!!!
--
Daniele Corti
AIM: S0CR4TE5
Messenger: email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)

 
This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (

and because I have talk about AjaxExample: I've notice that the compiled version is different from the source version, do you know why?


--
Daniele Corti
AIM: S0CR4TE5
Messenger: email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (

This email sent to email@hidden

 



--
Daniele Corti
AIM: S0CR4TE5
Messenger: email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Ajax Updates (From: "Daniele Corti" <email@hidden>)
 >Re: Ajax Updates (From: Mike Schrag <email@hidden>)
 >Re: Ajax Updates (From: "Daniele Corti" <email@hidden>)
 >Re: Ajax Updates (From: "Jake MacMullin" <email@hidden>)

  • Prev by Date: Re: Ajax Updates
  • Next by Date: Re: Ajax Updates
  • Previous by thread: Re: Ajax Updates
  • Next by thread: Re: Ajax Updates
  • Index(es):
    • Date
    • Thread