Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help! Why doesn't this work?



Notify is misspelled in your trigger:

>     DataStore.Notifiy("DATA.action.refresh");

__________________________________________________________________
Riley Howard



On Monday, December 23, 2002, at 4:57AM, Dominik Wagner wrote:

> In my channel i do have a refresh XQuery trigger, which works  
> absolutely fine, when invoked the first time in the  
> "Internet.didInstall" trigger. Sadly it doesn't work in my trigger for  
> my reload button. Can anybody tell me why?
>
> Thanks,
>    Dom
>
>  <trigger language="JavaScript" path="Internet.reload.action">
>     debug("----- Reload Button pressed -----");
>     DataStore.Set("Internet.NetworkArrows.animating", true);
>     DataStore.Notifiy("DATA.action.refresh");
>
>  </trigger>
>
> <trigger path="DATA.action.refresh" language="XQuery" task="true">
>     let $log := msg("----- DATA.action.refresh -----")
>
>     let $DerTag :=  
> http-request("http://www.spiegel.de/dertag/pda/avantgo/ 
> 0,1958,r20=1@r21=1@r23=1@r10=1@r22=1@r24=1@r273=1@r19=1@r139=1@r140=1,0 
> 0.html")
>     let $DerTagHTML := http-request-value($DerTag,"DATA")
>
>     let $Date :=  
> string-combine($DerTagHTML/html/BODY/center//text()/> convert-html(.),"")
>
>     let $TableContent := for $Category in  
> ($DerTagHTML/html/BODY/p/html/BODY)
> 	let $CategoryTitle := $Category/b/text()/convert-html()
>         let $CategoryURL :=  
> url-with-base(string-combine((lower-case($CategoryTitle),"/"),"")  
> ,"http://www.spiegel.de/";)
>         let $CategoryURL :=  
> replace($CategoryURL,"http://www.spiegel.de/topthemen/","http:// 
> www.spiegel.de/")
>         let $log := msg($CategoryURL)
> 	let $Items := for $Item in ($Category//a)
> 		let $description :=string-combine($Item//text()/convert-html(.), "")
> 		let $href := $Item/@href
> 		let $url := url-with-base($href, "http://www.spiegel.de/";)
> 		return dictionary(
> 			("description", string-combine(("  ",$description),"")),
> 			("doubleClickURL", $url))
>
> 	return (dictionary(("description",$CategoryTitle),
>                             ("doubleClickURL",$CategoryURL),
>                             ("Category","true")),$Items)
>
>     let $log := msg("----- DATA.action.refresh end-----")
>
>     return  
> dictionary(("Internet.SubjectsTable.dataValue",$TableContent),
>                       ("Internet.Date.objectValue",$Date),
> 		      ("Internet.NetworkArrows.animating", false()))
> </trigger>
>
>
>
> -- http://www.DasGenie.com/ --
> AIM/iChat: DasGenieDotCom
>
> "Gl|ck ist eine Verpflichtung. Wir sollten uns f|r das Gl|ck  
> entscheiden.
> Wir sollten daran arbeiten. Und dabei sollten wir denen, die uns am
> ndchsten stehen, und auch jenen, die nur zufdllig unseren Pfad kreuzen,
> eine Hilfe sein, damit auch sie ihr Gl|ck finden." - Richard Koch
> _______________________________________________
> sherlock-channel-development mailing list |  
> email@hidden
> Help/Unsubscribe/Archives:  
> http://www.lists.apple.com/mailman/listinfo/ 
> sherlock-channel-development
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
sherlock-channel-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/sherlock-channel-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Help! Why doesn't this work? (From: Dominik Wagner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.