AlreadyM / jscrollpane

Automatically exported from code.google.com/p/jscrollpane
0 stars 0 forks source link

Checked Radio-Buttons will be unchecked by reinitialise #233

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Adding Radio Buttons in Content
2. Load scrollpane and check one radio button
3. reinitialise scrollpane

What is the expected output? What do you see instead?
The checked radiobutton will be unchecked

What version of the jScrollPane are you using? On what browser? And operating 
system?
- jScrollPane - v2.0.0beta5 - 2010-10-18
- Firefox 3.6.12
- Windows 7

Please provide any additional information below.
I have wrote some code to reinitialise Code because the autoreinitialise have 
bring my browser down.
Thats the Code to reinitialise:

var scrollPane;
function loadScrollBars(){
   if(scrollPane == null){
      scrollPane = $('.scrollPane').jScrollPane({});
   }
   else{
      if(scrollPane){
         if(scrollPane.length && scrollPane.length > 0){
            for(var i = 0; i < scrollPane.length; i++){
               var temp = $(scrollPane[i]).data('jsp');
           if(temp)     temp.reinitialise();
        }
         }
     else{
        scrollPane.data('jsp').reinitialise();
     }
      }
   }
}

If I want to reinitialise i call this methode.
I have bind the jquery.mouswheel and mqheelIntent module too.

Original issue reported on code.google.com by michaelt...@gmail.com on 5 Nov 2010 at 3:42

GoogleCodeExporter commented 9 years ago
This sounds very similar to a problem reported before:
http://groups.google.com/group/jscrollpane/browse_thread/thread/e353ab781cc51942
/e4ccbf4bf36053a5

In that case, making sure that the radio button was contained within a FORM 
(which it should be to be valid anyway) fixed it. Does that work for you?

Re. autoReinitialising "bring your browser down" - maybe you can clarify a bit?

Please use the google group ( http://groups.google.com/group/jscrollpane/ ) or 
github issues for any further feedback - the issues on googlecode are no longer 
used...

Original comment by kelvin.l...@gmail.com on 5 Nov 2010 at 3:48

GoogleCodeExporter commented 9 years ago
Hello Kelvin,

last Message here, because I won't write a new topic for a closed Topic...
The <form> tag has helped in this case. Thats very stupid - I don't work with 
<form>-tags because we work only with AJAX-Requests and there is a <form>-tag 
not important.
Ok, thanks for that solution. It works and in future I work with this tag.

The autoReinitialising don't Work fine, if we resize and then it is called to 
often. Then the Browser can't handle it an crashes. Of this reason we call the 
reinitialise manual.

If this is a great Problem, I can write a new Topic in google-groups, but I 
think this is something you can work around...

Thanks a lot again.

Bye

Michael

Original comment by michaelt...@gmail.com on 5 Nov 2010 at 4:26

GoogleCodeExporter commented 9 years ago
Hi,

The form tag is not very stupid. Your HTML is invalid without it. The browsers 
have no responsibility to work with invalid HTML (although they often do).

Re. auto-reinitialising crashing your browser, do you have problems on these 
pages:
http://jscrollpane.kelvinluck.com/auto_reinitialise.html
http://jscrollpane.kelvinluck.com/image.html

? If you are reinitalising on resize then you can also check out this example:
http://jscrollpane.kelvinluck.com/dynamic_width.html

Hope it helps...

Original comment by kelvin.l...@gmail.com on 5 Nov 2010 at 4:33