• 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: Trying to create a dynamic url with the components action?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to create a dynamic url with the components action?


  • Subject: Re: Trying to create a dynamic url with the components action?
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 7 May 2007 08:43:36 -0700


On May 7, 2007, at 6:50 AM, Jean-François Veillette wrote:


Le 07-05-07 à 09:32, James Cicenia a écrit :
So after refactoring my code, I figured out how to use that component, get the url from it, and embed
it in my javascript YUI Treeview. Everything seems to work great except for one big confusing problem.
My link's action binding isn't being fired.

When you say the action is not fired, do you mean that the browser send a request, the application respond, but somehow the action is not fired ?



Here is the scenario:

Page
	DocumentTree Component
		Node Component
			NXDowloadComponent
				NXHyperlink

So it all renders correctly and even the href that is generated sure looks correct. However, when I
click the hyperlink, it just won't fire its action method.


I doubled checked all the bindings. Is it because it is being rendered dynamically via javascript
at the browser level?

How do you dynamically render the hyperlink at the javascript level ?

Its context / element id numbers must match an objet on the server side.
It's probably that the hyperlink component doesn't recognize the context id as itself, and so doesn't invoke it's action binding.


Please, explain in more details what you have done in the nxhyperlink component and how you play with the url on the javascript side.

I think that Jean-François has identified your problem here. WO won't fire an action that _it_ did not generate a component for. Like he said, more information please.


Chuck

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects





_______________________________________________
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


  • Follow-Ups:
    • Re: Trying to create a dynamic url with the components action?
      • From: James Cicenia <email@hidden>
References: 
 >Trying to create a dynamic url with the components action? (From: James Cicenia <email@hidden>)
 >Re: Trying to create a dynamic url with the components action? (From: Lachlan Deck <email@hidden>)
 >Re: Trying to create a dynamic url with the components action? (From: James Cicenia <email@hidden>)
 >Re: Trying to create a dynamic url with the components action? (From: Chuck Hill <email@hidden>)
 >Re: Trying to create a dynamic url with the components action? (From: Jean-François Veillette <email@hidden>)
 >Re: Trying to create a dynamic url with the components action? (From: James Cicenia <email@hidden>)
 >Re: Trying to create a dynamic url with the components action? (From: Jean-François Veillette <email@hidden>)

  • Prev by Date: Re: Trying to create a dynamic url with the components action?
  • Next by Date: Re: Apple's Support of WebObjects
  • Previous by thread: Re: Trying to create a dynamic url with the components action?
  • Next by thread: Re: Trying to create a dynamic url with the components action?
  • Index(es):
    • Date
    • Thread