?
Solved

Spring: is it possible to get this value in javaScript?

Posted on 2011-03-07
2
Medium Priority
?
902 Views
Last Modified: 2012-06-21
Hello experts,

On my webpage there is a "submit" button. If I click the button, then controller module is invoked. The controller passes value ("ModelAndView") back to the webpage.

In the webpage there is a javaScript section. Is it possible to catch the "ModelAndView" object value in the javaScript section?

Thanks.
0
Comment
Question by:davidw88
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
Brook Braswell earned 1000 total points
ID: 35070203
When you say it passes the value back...are you receiving this as a parameter?
in PHP the $_GET would handle that...
if ModelAndView is and actual object in your page
pagename in this example would be the document form name


<script>

var iVal = document.pagename.ModelAndView.value;
// OR
var iVal2 = document.getElementById["ModelAndView"];

</script>

Open in new window

0
 

Author Comment

by:davidw88
ID: 35070865
Thanks Brook for your reply. I am quite busy today however I will test it tomorrow.

0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question