Jump to content
UBot Underground

Drop-down list problems


Recommended Posts

Hello All,

 

I have come up against a drop-down list that contains only [option]description fields. I have checked the html and the list has <option value ="blahblah">blahblah<?option> etc. For each of the description fields only.

 

Only clicking on the chosen description in the list will activate the page to display the next form field.

 

I have looked through all tutorials and exhausted all the options including send chosen keys > send chosen field keys. I can get the field to blank and fill from a list but then the thing won't activate. I can get it to change field and activate for blahblah but if I choose to input blahhiccup it will only display blahblah.

 

Any suggestions would be greatly appreciated.

Link to post
Share on other sites

if you type into a dropdown box, you're still limited to whatever's in the drop down box

 

Yeah, I created a UI containing all 31 item descriptions duplicated from the said dropdown box - I can get Ubot to clear the dropdown field and insert the correct item description but then I cannot get Ubot to activate the field. Or another way round I got the field to activate but Ubot can only get the first letter to enter. e.g. If list contains Bags,Balls,Books then only Bags will be entered by Ubot even if you select Balls.

 

The desired option/field/description is only selectable from within the dropdown and with a single click.

 

Is there a solution to this?

Link to post
Share on other sites

I'm sorry, but I don't understand what the issue is. can you either do a screencast video that details your problem, or give us your script, so that we can see the issue ourselves?

Link to post
Share on other sites

The javascript dropdown box is coded as follows:-

 

<select onchange="mainCategorySelector(this.value)">

<option value="- - -">- - -</option>

<option value="accessories">accessories</option>

<option value="art supplies">art supplies</option>

<option value="assorted things">assorted things</option>

etc

etc

<option value="wallpaper">wallpaper</option>

<option value="wood">wood</option>

 

 

I have used Action Command / Run Javascript which will activate the mainCategorySelector(this.value)script with the default - - - entry.

 

I have created a Ubot UI list which contains all of the category option values to select from.

 

I cannot get the various category option values to input, only the first letter of any value is recognised which then activates the incorrect second dropdown box.

 

and tried Crazyflx's solution.

 

Is this any clearer?

Link to post
Share on other sites

given the example you gave us, here is how you can use this sort of drop down box.

 

http://screencast.com/t/NWU5OTI4Y

 

if this does not demonstrate your issue, then please give us something with which we can reproduce your issue. or, send us your bot. we can't fix the issue without actually seeing it.

Link to post
Share on other sites

given the example you gave us, here is how you can use this sort of drop down box.

 

http://screencast.com/t/NWU5OTI4Y

 

if this does not demonstrate your issue, then please give us something with which we can reproduce your issue. or, send us your bot. we can't fix the issue without actually seeing it.

 

 

That works if there is only one item in the list beginning with the same letter...

 

I have PM'd you with a screencast.

Link to post
Share on other sites

have you tried using send keys field chosen instead of send keys chosen? send keys chosen is intended to be used only with file fields. I realize its a little confusing.

 

Crazyflx has already posted on this forum about this and so has alcr indirectly when he talks about stealing focus. I have tried Crazyflx's solution which uses send keys field chosen and a bit of blanking - that does not work.

 

What the OnChange does is it activates by where you click within the dropdown list - so no matter what you change or how you send it - whatever combination of field sends or key changes or key clicks are used the first box never activates the way you want it to using UBot - unless you click in the box on the screen manually.

 

Sorry If I have confused you.

Link to post
Share on other sites

Like you can't choose united states on http://www.tagged.com/ ?

 

Edit: And I haven't said that it will steal focus sending keys chosen? I think you have confused something here.

 

The example on tagged.com is not using OnChange script - so send keys field chosen works. I have sent Seth a PM with a screencast of the site I am having difficulty with.

 

@aclr

I thought your comments here applied to what I am on about...

http://ubotstudio.com/forum/index.php?/topic/3138-simulate-enter-key-press/page__hl__steal%20focus__fromsearch__1

 

There seems to have been some recent traffic on the above post - could be someone has a solution!?

Link to post
Share on other sites

Can you not just run javascript:

 

mainCategorySelector("accessories")

 

if you want to select accessories? Or have I misunderstood the problem?

 

this.value simply refers to the value attribute of whichever menu item the user selects.

Link to post
Share on other sites

Can you not just run javascript:

 

mainCategorySelector("accessories")

 

if you want to select accessories? Or have I misunderstood the problem?

 

this.value simply refers to the value attribute of whichever menu item the user selects.

 

Hi greencat,

 

I just spotted your example on another post - that was not there a few days ago! The problem I have is that I want to be able to send a description that is pre-selected from a Ubot UI list box. So in the example you have given I would need accessories to be called from a UI list selection.

 

I have just done a screencast so will PM you when I have a URL for it.

Link to post
Share on other sites

What about this:

 

if evaluate #listbox = blablabla then run javascript: mainCategorySelector("accessories")

 

?

 

Edit: Just saw your screencast, don't use the send keys chosen for things like that. Use change chosen attribute. :)

Link to post
Share on other sites

OK - I think I understand this.

 

You have a UI list which corresponds to variable #catandtag1.

 

And you want this variable to be used to select the corresponding pull down menu 1. on the website.

 

All you need to is:

 

run javascript:

 

mainCategorySelector("#catandtag1")

 

I'll try and put together a quick example.

 

Updated: Check the attached bot. Note this won't actually change the pulldown menu on the screen - but as far as Esty is concerned it has.

etsy.ubot

  • Like 1
Link to post
Share on other sites

OK - I think I understand this.

 

You have a UI list which corresponds to variable #catandtag1.

 

And you want this variable to be used to select the corresponding pull down menu 1. on the website.

 

All you need to is:

 

run javascript:

 

mainCategorySelector("#catandtag1")

 

I'll try and put together a quick example.

 

Updated: Check the attached bot. Note this won't actually change the pulldown menu on the screen - but as far as Esty is concerned it has.

 

 

Cheers greencat,

 

I would love to come back here and say thank you so much that did the trick...

 

@alcr that did not work either and with regard to send keys... that was a suggestion from Seth. :P

Link to post
Share on other sites

Cheers greencat,

 

I would love to come back here and say thank you so much that did the trick...

 

@alcr that did not work either and with regard to send keys... that was a suggestion from Seth. :P

 

Correction fom me.

 

Big thanks to greencat! Altering the UI list, for example to[books_and_zines] instead of what I had [books and zines]has done the trick using the runjavascript method.

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...