If $sField == ''txtStartDate'', then why does this not work: new Insertion.After($($sField), ''<img name="imgCal" src="images/ cal.gif" onClick="'' + $sField + ''.popup()" onMouseOver="this.style.cursor=\''hand\''">''); Or this: new Insertion.After($sField, ''<img name="imgCal" src="images/cal.gif" onClick="'' + $sField + ''.popup()" onMouseOver="this.style.cursor=\''hand\''">''); But this works: new Insertion.After(''txtStartDate'', ''<img name="imgCal" src="images/ cal.gif" onClick="'' + $sField + ''.popup()" onMouseOver="this.style.cursor=\''hand\''">''); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
which language are you talking about? it appears to be prototype without proper syntax... but also could be php... On 9/3/07, Keith <keithdavis-ZSqciin8Y8iqm2yrvHTro1aTQe2KTcn/@public.gmane.org> wrote:> > > If $sField == ''txtStartDate'', then why does this not work: > > new Insertion.After($($sField), ''<img name="imgCal" src="images/ > cal.gif" onClick="'' + $sField + > ''.popup()" onMouseOver="this.style.cursor=\''hand\''">''); > > Or this: > > new Insertion.After($sField, ''<img name="imgCal" src="images/cal.gif" > onClick="'' + $sField + > ''.popup()" onMouseOver="this.style.cursor=\''hand\''">''); > > But this works: > > new Insertion.After(''txtStartDate'', ''<img name="imgCal" src="images/ > cal.gif" onClick="'' + $sField + > ''.popup()" onMouseOver="this.style.cursor=\''hand\''">''); > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
It''s Prototype. What do you mean improper syntax? On Sep 3, 12:17 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> which language are you talking about? > > it appears to be prototype without proper syntax... but also could be php... > > On 9/3/07, Keith <keithda...-ZSqciin8Y8iqm2yrvHTro1aTQe2KTcn/@public.gmane.org> wrote: > > > > > > > If $sField == ''txtStartDate'', then why does this not work: > > > new Insertion.After($($sField), ''<img name="imgCal" src="images/ > > cal.gif" onClick="'' + $sField + > > ''.popup()" onMouseOver="this.style.cursor=\''hand\''">''); > > > Or this: > > > new Insertion.After($sField, ''<img name="imgCal" src="images/cal.gif" > > onClick="'' + $sField + > > ''.popup()" onMouseOver="this.style.cursor=\''hand\''">''); > > > But this works: > > > new Insertion.After(''txtStartDate'', ''<img name="imgCal" src="images/ > > cal.gif" onClick="'' + $sField + > > ''.popup()" onMouseOver="this.style.cursor=\''hand\''">'');- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
my bad, i never knew that $something was valid JS, thats why i asked what language it was. On 9/3/07, Keith <keithdavis-ZSqciin8Y8iqm2yrvHTro1aTQe2KTcn/@public.gmane.org> wrote:> > > It''s Prototype. What do you mean improper syntax? > > > On Sep 3, 12:17 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > which language are you talking about? > > > > it appears to be prototype without proper syntax... but also could be > php... > > > > On 9/3/07, Keith <keithda...-ZSqciin8Y8iqm2yrvHTro1aTQe2KTcn/@public.gmane.org> wrote: > > > > > > > > > > > > > If $sField == ''txtStartDate'', then why does this not work: > > > > > new Insertion.After($($sField), ''<img name="imgCal" src="images/ > > > cal.gif" onClick="'' + $sField + > > > ''.popup()" onMouseOver="this.style.cursor=\''hand\'' > ">''); > > > > > Or this: > > > > > new Insertion.After($sField, ''<img name="imgCal" src="images/cal.gif" > > > onClick="'' + $sField + > > > ''.popup()" onMouseOver="this.style.cursor=\''hand\'' > ">''); > > > > > But this works: > > > > > new Insertion.After(''txtStartDate'', ''<img name="imgCal" src="images/ > > > cal.gif" onClick="'' + $sField + > > > ''.popup()" onMouseOver="this.style.cursor=\''hand\''">'');- > Hide quoted text - > > > > - Show quoted text - > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---