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

  • SEARCH
  • Home
  • 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 7730571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:15:32+00:00 2026-06-01T06:15:32+00:00

Here is fragments of my HAML view: %script{:type => text/javascript, :src => assets/application.js} :javascript

  • 0

Here is fragments of my HAML view:

%script{:type => "text/javascript", :src  => "assets/application.js"}

:javascript
      $(document).ready( function() {
        $('#post_action_trigger').click(function(event) {
          $.get('/how?name=some', function(data) {
            $('#answer').html(data);
          });
        });
      } );

%body
   %form 
        %label{:for => 'name'} Name:
        %input{:type => 'text', :name => 'name', :class => 'text'}

        %label{:for => 'notes'} Notes:
        %input{:type => 'text', :name => 'notes', :class => 'text'}

        %div{:id => 'post_action_trigger'}

Now when I’m clicking on ‘post_action_trigger’-div my javascript send ajax request ‘/how?name=some’. How can I pass input-fields values into this ajax request?

  • 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-06-01T06:15:33+00:00Added an answer on June 1, 2026 at 6:15 am
    var serializedData =$('form').serialize();
    $.get('/how?' + serializedData, function(data) {
    

    serialized docs:

    Description: Encode a set of form elements as a string for submission.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello there i got some code here; <script type=text/javascript> $(function(){ var playListURL = 'http://gdata.youtube.com/feeds/api/playlists/8BCDD04DE8F771B2?v=2&alt=json&callback=?';
Here my code: $(document).ready(function() { $('#mid_select').live('click', function(e){ $('#middle').load( $(this).attr('href') + ' #middle'); var page
here is a piece of code in XSL which tokenizes a text into fragments
Here is a screenshot of my tablet application (not using fragments for now): So
here is the scenario 1: user starts to type some word, autocomplete engine shows
I'm building an Android Application (minimum SDK Level 10, Gingerbread 2.3.3) with some Fragments
I wonder whether I can manage fragments like Activity. I implemented tab function with
I have created an eclipse RCP application with .nl1 fragments for some of the
I've searched for answers here and every thread I found were in fact fragments
I recently added Fragments to my applications. For a new application i'll need to

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.