Skip to main content
Known Participant
October 1, 2009
Answered

Pass parameter to ColdFusion page

  • October 1, 2009
  • 1 reply
  • 1028 views

I have a cfm page that contains java script function as follows,

Function calendar (i)

   {

      var newWind=window.open('calendar.cfm','remote','width=350,height=230');

      if (newWind.opener == null)

         { newWind.opener = window; }

}

Variable i can be 1 or 2. I want to pass i to the 'calendar.cfm'.

How I can pass that?

I really appreciate your help.

Thanks,

    This topic has been closed for replies.
    Correct answer ilssac

    Function calendar (i)

       {

          var newWind=window.open('calendar.cfm?aVar=' + i ,'remote','width=350,height=230');

          if (newWind.opener == null)

             { newWind.opener = window; }

    }

    Then in the Calendar.cfm page the 'i' value would be accessed as "URL.aVar".

    1 reply

    ilssac
    ilssacCorrect answer
    Inspiring
    October 1, 2009

    Function calendar (i)

       {

          var newWind=window.open('calendar.cfm?aVar=' + i ,'remote','width=350,height=230');

          if (newWind.opener == null)

             { newWind.opener = window; }

    }

    Then in the Calendar.cfm page the 'i' value would be accessed as "URL.aVar".

    nikoo560Author
    Known Participant
    October 1, 2009

    Thanks a lot lan, It worked perfect.