Wrox Programmer Forums
|
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 June 22nd, 2004, 05:35 PM
Registered User
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benibell
Default This should be easy

I am trying to use a hyperlink to set a value on a form in my page and then submit the form.

The function writes the correct value to the field I need but will not submit the form afterwards - see below for function.

    <script language="javascript">
        function letsgo(intPagenum) {
            var pn
            pn = intPagenum
            document.frmsearchfields.pagenum.value=pn;
            document.frmsearchfields.submit();
        }
    </script>


Very strange, the form is named correctly and has an action and a method. The only troubling thing is that the form contains nested tables - not sure if this should make a difference. I have validated the code and the tables are all opened and closed correctly.

I can't figure this out.... I get an Object doesn't support this property or method error!

HELP PLEASE???

Ben
 
Old June 22nd, 2004, 05:50 PM
Registered User
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benibell
Default

Fixed it - had a button on the form named submit so the function was getting confused between the pethod and the ojbect name





Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy One ru1 Access 2 September 15th, 2006 10:36 PM
An easy one for you... pepocles BOOK: Access 2003 VBA Programmer's Reference 0 September 7th, 2006 05:33 PM
Probably easy but... AMP - Max Current BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 December 20th, 2004 02:55 PM
Easy Question - I think gmoney060 Classic ASP Basics 3 November 2nd, 2004 06:54 PM
NOT Easy Enough!!! wilson Forum and Wrox.com Feedback 3 July 16th, 2004 07:14 PM





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