Weird problem with a form

Discussion in 'ASP General' started by Mangler, Dec 2, 2008.

  1. Mangler

    Mangler Guest

    I have a form on a page that has to hidden fields that simply hold a
    value.
    There is a link in that form that when pressed calls a javascript
    function to open a new window.
    All ok so far.
    The page that opens depends on those 2 hidden fields mentioned before,
    this is where the issue is happening.
    On my local testing server everything works great yet on the
    production server the values of the fields do not get passed to the
    new page like on the testing server.

    Testing server : Vista Home Premium, IIS 7
    Production Server : Windows server 2003 IIS ( the version that comes
    standard on this os )

    Here is the form :

    <form action="" method="post" name="form2" id="form2" >
    <img src="images/print1.png" alt="Printer Friendly" width="53"
    height="53" onclick="MM_openBrWindow
    ('submissionReportPrintFriendly.asp?start=<%=Request("start1")
    %>&amp;end=<%=Request("end1")%>','','scrollbars=yes,resizable=yes')" /
    >

    <input type="hidden" name="start1" id="start1" />
    <input type="hidden" name="end1" id="end1" />
    </form>

    I cannot figure out why this works perfectly on the testing server but
    not the production server. Any Ideas?
    Mangler, Dec 2, 2008
    #1
    1. Advertising

  2. Gazing into my crystal ball I observed Mangler
    <> writing in news:bb0a868a-e96c-4cdf-98af-
    :

    > I have a form on a page that has to hidden fields that simply hold a
    > value.
    > There is a link in that form that when pressed calls a javascript
    > function to open a new window.
    > All ok so far.
    > The page that opens depends on those 2 hidden fields mentioned before,
    > this is where the issue is happening.
    > On my local testing server everything works great yet on the
    > production server the values of the fields do not get passed to the
    > new page like on the testing server.
    >
    > Testing server : Vista Home Premium, IIS 7
    > Production Server : Windows server 2003 IIS ( the version that comes
    > standard on this os )
    >
    > Here is the form :
    >
    ><form action="" method="post" name="form2" id="form2" >
    > <img src="images/print1.png" alt="Printer Friendly" width="53"
    > height="53" onclick="MM_openBrWindow
    > ('submissionReportPrintFriendly.asp?start=<%=Request("start1")
    > %>&amp;end=<%=Request("end1")%>','','scrollbars=yes,resizable=yes')"

    /
    >>

    > <input type="hidden" name="start1" id="start1" />
    > <input type="hidden" name="end1" id="end1" />
    ></form>
    >
    > I cannot figure out why this works perfectly on the testing server but
    > not the production server. Any Ideas?
    >


    There are a few things here:
    1. You do not need to have a "Printer Friendly" page, just a print
    stylesheet, eg:

    <div id="nav">
    <ul><li><a href="index.asp">Home</li></ul>
    </div>
    <div id="content">
    <table>
    ....
    </table>
    </div>
    </div id="footer">
    some stuff
    </div>

    where your print stylesheet has #nav, #footer {display:none}

    2. You have no values in the hidden input elements. What are the
    values? How are you going to pass values when there are none?

    3. There is no need for a form here at all. A link (with javascript to
    open a new window - if you must) to the other page is just fine.

    --
    Adrienne Boswell at Home
    Arbpen Web Site Design Services
    http://www.cavalcade-of-coding.info
    Please respond to the group so others can share
    Adrienne Boswell, Dec 2, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dorayme
    Replies:
    1
    Views:
    602
    richard
    Jan 21, 2011
  2. richard
    Replies:
    0
    Views:
    570
    richard
    Jan 21, 2011
  3. richard
    Replies:
    0
    Views:
    604
    richard
    Jan 21, 2011
  4. Beauregard T. Shagnasty

    Re: A Weird Appearance for a Weird Site

    Beauregard T. Shagnasty, Jan 21, 2011, in forum: HTML
    Replies:
    1
    Views:
    425
    Captain Paralytic
    Jan 21, 2011
  5. will
    Replies:
    6
    Views:
    393
    Phrogz
    Dec 27, 2006
Loading...

Share This Page