javascript - Issues setting a value to a select box on the onload -


While loading the page, I am having trouble determining a value in a select box. On I download I can change the URL I parsed for it and after that I have to set the value from the URL in the specific selection box. The problem occurs when I try to set the value using dijit:

  dijit.byId ("assettypselect"). Set ('value', queryObject.assettypeselect);   

An error occurs because the dijit library is not loaded yet. I have used dojo.addOnLoad and dojo, but none of those works

Thank you for your time!

Based on the limited information provided, a possible solution is to wait for the window load to ignore the event if stills still If the is undefined then take a look at your console and make sure that the external / internal library is being requested properly except if the dijit loads the AMD style Has been, so sure That you have. Set ('value', queryObject.assettypeselect);}, false);

Locks the event load at the end of the document loading process. At this point, all the items in the document are in the DOM, and all images, scripts, links and sub-frames have been loaded.



Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -