Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 7th, 2007, 10:09 PM
Registered User
Join Date: Jul 2007
Location: KUALA LUMPUR, SELANGOR, Malaysia.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to forward some action from javascritp

hi i have to forward to controller with javascritp my script is as below.

function fwd(field){
var val=field.value;
     if(val == 1){
        mypage.do //<----------- this is how i needed
<html:select property="myPage" onchange=fwd(this)>
<html:option value="1">one</html:option>
<html:option value="2">one</html:option>
<html:option value="3">one</html:option>

thx in advance
Reply With Quote
  #2 (permalink)  
Old September 3rd, 2007, 09:08 AM
Friend of Wrox
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919

Hi Ajay!!
I think you are trying to do like as
 function fwd(field){
 var val=field.value;

     if(val == 1){
        //mypage.do //<----------- this is how i needed
<select id="myPage" onchange=fwd(this)>
<option value="1">one1</option>
<option value="2">one2</option>
<option value="3">one3</option>
hope this will help you

Cheers :)

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call DLL Method in Javascritp? URGENT!!!!!! prabhakar123 Javascript 26 November 28th, 2011 07:06 AM
Request action on change and get no action. Help crussell Ajax 0 September 12th, 2007 11:11 AM
using Javascritp with XSLT pure_m23 XSLT 8 September 7th, 2006 04:48 AM
Working with Forms and Popup window in Javascritp danieljava JSP Basics 0 November 20th, 2005 09:57 PM
Forward after Login ~Bean~ ASP.NET 1.0 and 1.1 Basics 1 July 14th, 2005 05:14 PM

All times are GMT -4. The time now is 09:00 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.