• 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 in ProjectWonder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ajax in ProjectWonder


  • Subject: Re: Ajax in ProjectWonder
  • From: Mike Schrag <email@hidden>
  • Date: Mon, 14 Apr 2008 13:56:30 -0400


On Apr 14, 2008, at 10:31 AM, Yung-Luen Lan wrote:

Hi,

I leveraged the Ajax support in ProjectWonder into my project recently and have several questions:

1. It will automatically include prototype + scriptaculous in the header of output html. However, my html have jquery included, and they will conflict! The $()
have different semantics in jquery and prototype. Using the AjaxUpdatingArea will render my existing javascript useless. (Say, $ ('#id') no longer find the correct element.) Is re-writing all my javascript with prototype + scriptaculous the only way I can fix that?
I don't use jQuery, but I seem to recall they have a compatibility script for using prototype code. If that doesn't work, though, I'm not sure I have much of a suggestion for you. We use prototype features fairly extensively, so it would be pretty tough to remove those dependencies. I have ideas for a js framework abstraction layer that Ajax framework could use, but it's only ideas, and no real scheduled plans for implementation.

My problem is, using this method, I can't break my css into little part and assign to corresponding page. How will you solve this problem?
You can use the methods that Ajax.framework uses to inject scripts into the <head> after the fact:

ERXWOContext.addScriptResourceInHead(context, response, yourFrameworkName, yourScriptPath);

There are limitations with this relative to Ajax loading (another one that I have a proof-of-concept fix for, but just hasn't been fully tested/committed yet).

ms

_______________________________________________
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 in ProjectWonder (From: "Yung-Luen Lan" <email@hidden>)

  • Prev by Date: Re: Staying with WebObjects
  • Next by Date: Re: Staying with WebObjects
  • Previous by thread: Ajax in ProjectWonder
  • Next by thread: Re: Ajax in ProjectWonder
  • Index(es):
    • Date
    • Thread