100million 1 Posted December 14, 2010 Report Share Posted December 14, 2010 Help...help! How do I run this Javascript in order to get the webpage to respond? I somehow need to get the "jumpmenu" function to work so that onchange="jumpmenu('parent',this)" can get the next drop-down box to appear. Any help is appreciated. Source code is as below:______________________________________________________________ function jumpmenu(target,obj,restore){ eval(target+".location='"+obj.options[obj.selectedIndex].value+"'"); obj.options[obj.selectedIndex].innerHTML="Please Wait ..."; } //--> </script> <select class='adsmanager_required' name='category_choose' onchange="jumpmenu('parent',this)"> <option value="http://www.12zsingapore.com/ads/products/write-ad?Itemid=0" selected='selected'> Products </option> <option value="http://www.12zsingapore.com/ads/others/write-ad?Itemid=0" > Others </option> <option value="http://www.12zsingapore.com/ads/announcements/write-ad?Itemid=0" > Announcements </option> <option value="http://www.12zsingapore.com/ads/services/write-ad?Itemid=0" > Services </option> </select> Quote Link to post Share on other sites
Gogetta 263 Posted December 14, 2010 Report Share Posted December 14, 2010 Problem solved! I didn't need to use javascript for this site. Choose by Attribute (category_choose) --> Send Keys File Chosen (Value)12zsingapore.ubot Quote Link to post Share on other sites
100million 1 Posted December 17, 2010 Author Report Share Posted December 17, 2010 Problem solved! I didn't need to use javascript for this site. Choose by Attribute (category_choose) --> Send Keys File Chosen (Value) Works like a charm, Gogetta. But even after reading, I still don't understand the difference b/w "send keys file chosen" & "send keys field chosen". Anybody can enlighten me? =) From the glossary: send keys file chosen:This command is used specifically for filling text into file input fields, as a means of getting around the lack of direct access to them. This command will not steal focus, and runs entirely in the background. To simulate typing on elements other than file fields, use send keys chosen field. This command no longer works if you have internet explorer 8 installed. send keys field chosen:This command will simulate keystrokes to input fields other than file fields. This is useful in cases where the field reacts to keystrokes with javascript, and change chosen attribute does not trigger the javascript associated with the element. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.