Help - Search - Members - Calendar
Full Version: [FIXED in 6.4.1]Javascript error with some Combo Box in Config Wizard
MSFN Forums > Member Contributed Projects > Windows Post-Install Wizard (WPI) > Bug tracker

   
Google Internet Forums Unattended CD/DVD Guide
t4user
EDIT Bug Fixed ! dowload release 6.4.1
Edit sad.gif Sorry a bug : ComboBox are disabled when Clone Button is selected
Bug correction Enable All Gadgets in function Clone Entry

CODE
function CloneEntry()
{
position="configwizard.js";
whatfunc="CloneEntry()";

...
FillInConfig(true,cpos);

ToggleAllGadgets(false);

if (SortWithinCats)
NextEntry();
else
LastEntry();
document.getElementById("prog").focus();
}


Hello,

When you add a new application, most of the options are disabled except "ComboBoxes".

By example, if you select an item in Condition Box the TextBox is updated but this statement :

CODE
document.getElementById(gad).focus();

in the HandleConditionsSelection's function
report
QUOTE
Javascript Error : "Can"t activate control..."


Ok, the TextBox is disabled and can't receive focus. sad.gif

It's same for some other Combos like Command

To avoid this error, I made a patch which calls a function disabling all ComboBox in function ToggleAllGadgets(state)

Code for ToggleAllGadgets(state)
CODE
function ToggleAllGadgets(state)
{
position="configwizard.js";
whatfunc="ToggleAllGadgets()";

ToggleUSSFs(state);
...
TogglePictureGadgets();
ToggleDefaultImages(state);

ToggleComboBox(state) // new function here

}


And the function ToggleComboBox (lines 347 to 362 of attached file)



In hope that this little work can help you
Regards

CODE
    position="configwizard.js";
    whatfunc="ToggleComboBox()";


!Removed Click to view attachment
Kelsenellenelvian
sweet! I like that we got a new kid on the block that can help weed out these tiny bugs and fix them!!

Even if I am not replying to all of your posts I am getting the info!
t4user
Hello,

Thanks for all answers

I work to make an alert box. The purpose is to avoid the lost of work when user go out config and options pages wacko.gif realmad.gif
This work implies a lot of modifications on script and template files.
Also a question : It's in your mind to make a SVN storage of WPI on SourceForge by example ?
I think that :
  • It would be more easy to submit bug correction and improvements with diff files based on up to date version.
  • Testing of "unstable version" by a lot of people is also an advantage.

Which is your opinion ?

Regards


Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.