Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Weird problem with a form

Reply
Thread Tools

Weird problem with a form

 
 
Mangler
Guest
Posts: n/a
 
      12-02-2008
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=<%=Reque st("start1")
%>&amp;end=<%=Request("end1")%>','','scrollbars=ye s,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?
 
Reply With Quote
 
 
 
 
Adrienne Boswell
Guest
Posts: n/a
 
      12-02-2008
Gazing into my crystal ball I observed Mangler
<(E-Mail Removed)> writing in news:bb0a868a-e96c-4cdf-98af-
http://www.velocityreviews.com/forums/(E-Mail Removed):

> 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=<%=Reque st("start1")
> %>&amp;end=<%=Request("end1")%>','','scrollbars=ye s,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

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: A Weird Appearance for a Weird Site Beauregard T. Shagnasty HTML 1 01-21-2011 04:17 PM
Re: A Weird Appearance for a Weird Site richard HTML 0 01-21-2011 07:10 AM
Re: A Weird Appearance for a Weird Site dorayme HTML 1 01-21-2011 06:51 AM
Re: A Weird Appearance for a Weird Site richard HTML 0 01-21-2011 06:46 AM
newbie with a weird technical problem (@ least I think it's weird) will Ruby 6 12-27-2006 04:46 PM



Advertisments