Sorry try h.url_for
Jose

On 7/11/07, Dogen <[EMAIL PROTECTED]> wrote:
>
>
> Hi Jose,
> It's me again
> I did as you said so now it looks like this:
> var req = new Ajax.Request("<% url_for(controller='discuss_material',
> action='rate_material', var='')); %>"+starNbr,
>                          {asynchronous:true, evalScripts:true});
>
> but when I runnig site I'v got error:
> Error: Error(SyntaxError): invalid syntax (templates/obj/templates//
> blocks/rating.myt.py, line 36)
> File: D:\NeoHuman\trunk\src\neohuman.ru/data\templates/obj/templates//
> blocks/rating.myt.py line 36
> Context: 33:         var widgetId = tmp.substr(0, tmp.indexOf(\'_\'));
> 34:         var starNbr = tmp.substr(tmp.indexOf(\'_\')+1);
> 35:         var req = new Ajax.Request("''')
> 36:               m.write( url_for(controller='discuss_material',
> action='rate_material', var='')); )
> 37:               # SOURCE LINE 24
> 38:               m.write(u'''"+starNbr,
> 39:                          {asynchronous:true, evalScripts:true});
>
> It looks like url_for() is unkonwn function.... What's wrong?
>
> Thank you
>
> Samuel
>
>
> On Jul 11, 7:53 pm, "Jose Galvez" <[EMAIL PROTECTED]> wrote:
> > yep that looks correct
> > Jose
> >
> > On 7/11/07, Dogen <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> > > Hi Jose,
> > > Thank you for help. Just to clear things - in order to access my
> > > controller "dscuss_material.py"  function "rate_material()", would be
> > > the following text correct: ...url_for(controller =
> > > "disscuss_material" action = "rate_material" ...etc)?
> >
> > > Samuel- Hide quoted text -
> >
> > - Show quoted text -
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to