Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7613037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:04:18+00:00 2026-05-31T02:04:18+00:00

i have the following html in my view <span style=float:right> <label> Pattern :</label> <select>

  • 0

i have the following html in my view

<span style="float:right">  <label> Pattern :</label>
   <select>
     <option value="3*3">3*3</option>
     <option value="6*6">6*6</option>
     <option value="12*12">12*12</option>
  </select>
</span>

what i want to do is that i want to call my action onchange lets say

   if(3*3) call this
    public function 3by3Action(){}

   if(6*6) call this
    public function 6by6Action(){}

   if(12*12) call this
    public function 12by12Action(){}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:04:19+00:00Added an answer on May 31, 2026 at 2:04 am

    In Zend Framework, Actions are methods within a Controller class and are accessible via URL. For example, if your Controller class is called “MathController” and it contains an action called “sixBySixAction”, then you would trigger this action by navigating to a URL that looks something like:

    http://baseUrl/math/six-by-six
    

    Notice that the name of the action method is camel case within the controller class but it is separated by dashes in the URL. This is a formatting requirement for Zend Framework. Also note that the controller class is named “MathController” but you only have to put “math” in the URL.

    So, you could use JavaScript to assign an onChange handler for your select box which simply redirects to a particular URL which handles the change by accessing a particular action method within a particular controller class.

    For more information on this, check out this page in the Zend Framework Programmer’s Reference Guide.

    As for the JavaScript part, here is an example of how to redirect upon a select box being changed. You’ll need to modify this, of course, but it’ll get you started:

    <Script language="JavaScript">
      function goto(form) { var index=form.select.selectedIndex
        if (form.select.options[index].value != "0") {
          location=form.select.options[index].value;}
        }
    </SCRIPT>
    
    <FORM NAME="form1">
      <SELECT NAME="select" ONCHANGE="goto(this.form)">
        <OPTION VALUE="">-------Choose a Selection-------</OPTION>
        <OPTION VALUE="index.htm">Home</OPTION>
        <OPTION VALUE="web_development.htm">Web Development</OPTION>
        <OPTION VALUE="html_codes.htm">HTML Tips</OPTION>
        <OPTION VALUE="html_codes_chart.htm">HTML Code Chart</OPTION>
        <OPTION VALUE="javascript_codes.htm">JavaScript Codes</OPTION>
        <OPTION VALUE="216_color_chart.htm">Color Code Chart</OPTION>
      </SELECT>
    </FORM>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following html: <style type=text/css> .message-view-value-td { vertical-align:bottom; } </style> <table width=600>
I have the following code in a view: <div class=wrap_select> @Html.DropDownList(dateRange, new SelectList(Model.DateRange, Value,Text),
I have the following html.erb code that I'm looking to move to Haml: <span
I have the following HTML (that is repeated many times) and want to get
In my rails view(index.html.erb), i have following structure <div> <%= render :partial => create
In my view I have the following code: @using (Html.BeginForm()) { @Html.TextBox(Date2, Model.Date2) <br/>
I have following view <asp:Content ID=Content2 ContentPlaceHolderID=MainContent runat=server> <h2>Tables <%=ViewData[RetriverName] %></h2> <%using (Html.BeginForm(ResfreshSelectedTables, Home))
I have the following ActionLink in my view <%= Html.ActionLink(LinkText, Action, Controller); %> and
I have the following in my view: <%using (Html.BeginForm()) {%> <% foreach (var item
in a partial view I have the following: <%Html.RenderAction(MVC.User.GetComments(Model.UserGroupName)); %> can I render a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.