Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 20th, 2004, 11:26 PM
Registered User
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help, any javascript experts!

I need to return the entry no to another page, which has a list of records(upd_entry_no),the value is to return to one of the row only. eg. 5

if i do this, it will works:
  opener.document.receipt.upd_entry_no(5).value =entry_no;

But if i do this, it can't recognise the record_no, which is the row id...

<script language="javascript">
function pickEntry(entry_no, record_no)
  opener.document.receipt.upd_entry_no(record_no).va lue =entry_no;


regards, Angie

Old January 21st, 2004, 04:59 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

Try making sure it's an integer. As an aside entry fields other than radio buttons shouldn't have the same name.
function pickEntry(entry_no, record_no)
  var iRecordNo = parseInt(record_no, 10);
  //alert("Record no: " + iRecordNo);  //For testing purposes.
  opener.document.receipt.upd_entry_no(iRecordNo).value =entry_no;


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thank you wroxP2P forum and its Experts Yasho VB.NET 2002/2003 Basics 2 June 15th, 2007 05:31 PM
job for experts g_tufat Need help with your homework? 0 July 3rd, 2006 05:49 PM
Any xlink experts out there? mountainbiker XML 3 February 29th, 2004 01:49 PM
Experts asked this question phpsharma Pro PHP 2 November 11th, 2003 05:09 AM
How do I.....? One for the Experts!? ziwez0 Access VBA 13 October 20th, 2003 05:44 AM

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