Jump to content
UBot Underground

How To Run This Javascript?


Recommended Posts

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>

Link to post
Share on other sites

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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...