Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Firefox refreshing unexpectedly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Howard Swope - 25 Jul 2007 16:13 GMT
I have an ASP.Net 2.0 web site that I am testing against firefox (Everything
works right in IE).. My site has a navigation framework setup with master
pages and it ues the menu and tree controls. There are buttons on the pages
that when clicked call functions that change the apearance of the navigation
structure by changing styles on certain elements.

When these buttons are pressed when running in firefox, the propper
apearance changes occur, but then the page is immediately reloaded to its
original appearance.

Does anyone have any ideas how to keep this from occurring?

Signature

Howard Swope [hswope.swopeATnavteqDOTcom]
Senior Software Developer
Media Development
Navteq Traffic [http://www.traffic.com]

Göran Andersson - 25 Jul 2007 17:45 GMT
> I have an ASP.Net 2.0 web site that I am testing against firefox (Everything
> works right in IE).. My site has a navigation framework setup with master
[quoted text clipped - 7 lines]
>
> Does anyone have any ideas how to keep this from occurring?

What kind of buttons are you using?

To run Javascript on the page without posting anything back to the
server, you should use an input tag with type="button", not type="submit".

Signature

Göran Andersson
_____
http://www.guffa.com

Howard Swope - 25 Jul 2007 20:25 GMT
My Buttons look like this in the code:

     <div id="buttonBar" class="buttonBar">

           <button id="toggleTreeButton" runat="server"
onclick="ToggleTree()" title="Toggle tree pane">

                 <img src="/images/toggle.gif" alt="Toggle tree pane" />

           </button>

           <button id="moveSplitterLeftButton" runat="server"
onclick="MoveSplitter('left')" title="Move splitter left">

                 <img alt="Move splitter left" src="/images/moveleft.gif"
/>

           </button>

           <button id="moveSplitterRightButton" runat="server"
onclick="MoveSplitter('right')" title="Move splitter right">

                 <img alt="Move splitter right" src="/images/moveright.gif"
/>

           </button>

           <button id="printableButton" onclick="ShowPrintable()"
title="Show printable version">

                 <img alt="Show printable version"
src="/images/printable.gif" />

           </button>

     </div>

>> I have an ASP.Net 2.0 web site that I am testing against firefox
>> (Everything works right in IE).. My site has a navigation framework setup
[quoted text clipped - 13 lines]
> To run Javascript on the page without posting anything back to the server,
> you should use an input tag with type="button", not type="submit".
Howard Swope - 25 Jul 2007 20:34 GMT
You were absolutely right. I changed the type to type="button" and
everything worked well.

Thanks!

>> I have an ASP.Net 2.0 web site that I am testing against firefox
>> (Everything works right in IE).. My site has a navigation framework setup
[quoted text clipped - 13 lines]
> To run Javascript on the page without posting anything back to the server,
> you should use an input tag with type="button", not type="submit".

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.