HTML DOM: How to call a SELECT box's update method? -


I am writing a VB application that contacts HTML DOM.

If I go to this page:

And then select "I like the content" SELECT box on the right "Yahoo! Asia ", the default option is selected, I can do this by using this command:

Document.Forms.regFormBody.preferredent.selectedIndex = 10

But the problem is that it is not the same behavior as you have manually changed that option to Yahoo! using your mouse, Asia

if you manually do this without using the DOM If you try to do this, then after changing it, the page refreshes

I'm assuming that this is a JavaScript call or something that refreshes the page that has been chosen, but I have tried to revise that behavior and I It can not be understood.

Can anyone help? Thanks in advance.

Your On Change is looking for the event. Of course it is a possibility that the form is being submitted by another event, The following additional questions have been updated

apparently from the following line:

/ P>

  YAHOO.util.Event.on ("preferredcontent", "change", ymem_reg.switchPrefContent); The following calls:  
  ymem_reg.switchPrefContent = function (e) {var Dom = YAHOO.util.Dom || false; If (dome) {var oForm = Dom.get ("regFormBody"); Var sToIntl = this.options [this.selectedIndex] .value; Var yregFormValidator = (type yregFormValidator! == "undefined")? YregFormValidator: Wrong; Var field variations = Dom.get (("first name", "second name", "dd", "yay"]); var clearVal = function (L) {if (el! == null & ymem_reg.fieldHasDefaultVal El)} {elForm = " OInput.setAttribute ("Type", "Hidden"); OInput.setAttribute ("Name", "IntlSwapBtn"); OInput.setAttribute ("id", "IntlSwapBtn"); oForm.appendChild (oInput) ; Dome.batch (field expansion, clear wall); oForm.submit ();}}}  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -