just wondering if there is a way to reset the LoadVars() success variable to false or undefined.
i need to do this b/c i’m repeatedly fetching data from a asp file using the same LoadVars() Obj to store the data sent from the asp page.
just wondering if there is a way to reset the LoadVars() success variable to false or undefined.
i need to do this b/c i’m repeatedly fetching data from a asp file using the same LoadVars() Obj to store the data sent from the asp page.
err… heh success is a passed argument in the onload function - it only determines if the file was loaded correctly or not
yeah i know. but if you want to use the loadvars obj again… it neeeds to be reset or something. but nevermind i found out hwo to do it. i just delete the object and reinitialize it everytime i neeed to.
*Originally posted by eron19 *
yeah i know. but if you want to use the loadvars obj again… it neeeds to be reset or something.
I don’t get it, you want to reset the success variable? Why do you want to do so? Well are you saying that you want to use one LoadVars object more than once? (ex: Using myLoadVars Object to Load two files), If so, it can be done.
There is NO success variable in a loadVars object. The only success variable is any variable you make yourself and associate with your loadVars.
loadVars.onLoad(), when called gets send a boolean argument. This argument (with no name associated with it) is true or false depending on whether or not the loaded URL loaded properly. In accessing this variable, it is common, but not necessary to use “success” as the argument name, ie.
loadVarsInstance.onLoad = function(success){ …
Though you can use ANY name in there you want to specify that boolean value. This argument is not saved within the loadVars instance and will not be further referenceable until the onLoad method is called again, though at that point it will be reflective of the last loaded URL.
*Originally posted by senocular *
There is NO success variable in a loadVars object. The only success variable is any variable you make yourself and associate with your loadVars.
Yeah sorry i meant success parameter! Thanks for the information senocular.
*Originally posted by h88 *
**Yeah sorry i meant success parameter! Thanks for the information senocular. **
yeah I know you knew what you meant - I knew… you … meant… you know, that wasnt directed to you h88 its all good
:: Copyright KIRUPA 2024 //--