Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile Select Box not Work #95

Closed
ghost opened this issue Jan 14, 2013 · 9 comments
Closed

Mobile Select Box not Work #95

ghost opened this issue Jan 14, 2013 · 9 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Jan 14, 2013

Hello,

I use this plugin for a Wordpress Page and its Work perfect, but when i with my Samsung Galaxie go to the Page and Click on the Select Box, then open it as in Desktop Mode, not like in Mobile Mode.

The Code for the Select Box is:

    echo '<select class="postcount" name="postcount" title="Select one">';

        $html = '';
        foreach ( $postcount_options as $k => $v ) {

        $url = add_query_arg('postcount', $v);

            $html .= '<option value="' . $url. '"' . selected( $v, $postcount, false ) . '>' . $v . '</option>' . "\n";
        }
        echo $html;

echo '</select><!--/postcount-->';

And the Init Code for the Select Box is:

jQuery(function($){
$(document).ready(function(){

$("select").selectBoxIt({

theme: "bootstrap"}"

});

}); // END doc ready

}); // END function

But on your Demo Site its work with my mobile Phone.

@ghost ghost assigned gfranko Jan 14, 2013
@gfranko
Copy link
Owner

gfranko commented Jan 14, 2013

@jamal44 Do you have a public URL I could look at to help debug? Also, if you are using the Twitter Bootstrap theme, then you can just call the plugin like this:

    $("select").selectBoxIt();

@ghost
Copy link
Author

ghost commented Jan 14, 2013

Of Course, here is the URL:

http://hallo.at-tanzil.menkisys.at/category/allgemein/

Thanks for the Help.

gfranko added a commit that referenced this issue Jan 14, 2013
@gfranko
Copy link
Owner

gfranko commented Jan 14, 2013

@jamal44 would you mind updating your blog with this new code?

@ghost
Copy link
Author

ghost commented Jan 14, 2013

Thanks @gfranko, now its work :)

@gfranko
Copy link
Owner

gfranko commented Jan 14, 2013

Awesome! I think #90 was also related to this. Thank you for the issue and let me know if you need anything else!

@gfranko gfranko closed this as completed Jan 14, 2013
@ghost
Copy link
Author

ghost commented Jan 14, 2013

Sry but i have found another Bug, since you Uptade this Bug before. The Bug is in IE7 and IE8:

var self = this,
// Get's all of the properties associated with the select box and turns it into an array
selectBoxProperties = Array.prototype.slice.call(self.selectBox.prop("attributes")),
optionProperties;

SCRIPT5014: Array.prototype.slice: 'this' ist kein JavaScript-Objekt
select.js?ver=3.5, Zeile 1708 Zeichen 17

@gfranko
Copy link
Owner

gfranko commented Jan 14, 2013

Oh no, not an IE bug! I'll look into it out now.

@gfranko
Copy link
Owner

gfranko commented Jan 14, 2013

The bug should now be fixed in IE8 if you grab the latest code. Unfortunately, I have also decided that I will not being supporting IE7 from here on out. Let me know if this helps!

Note: IE7 is still being supported

@gfranko
Copy link
Owner

gfranko commented Jan 21, 2013

@jamal44 With the latest SelectBoxIt release (v2.9.9), I have added back IE 7 support and refactored this logic! Let me know if this helps =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant