I m having this in the content so it looks little different.
How do i get the rectangular buttons.
Issue 2:
Also, when I used Buttons , the rendering of button labels gets a blur text overlap (in Opera Mini where i tested this), but not if i replace this by <a data-role="button"> the look and feel is good (Opera mini renders good as in other browsers). So wherever i used buttons i m replacing with <a data-role="button">. This is also in content div.
Please advise on these two where i am failing to understand.
in my Detail page I show collapisble=false attached for Fruit Details something like this
- Fruit Details
This is my collapsible content show by default for Fruit.
+ Juice Details
+ Salads Details
I want to expand when i traverse to the respective details based on Food page menu selection. Say if I click Juice my landing page should show Juice Details like this
+ Fruit Details
- Juice Details
This is my collapsible content show by default for Juice.
At the least, I have this two scenarios but I do not know how to achieve this with Navbars.
Experts can vet if it qualifies as an idea.
There could be workarounds with JQ plugins but I would be comfortable as suggested below to work with mainstream JQM, I am not so techie to write without guidance in the current Jqm.
I would prefer to have
1) like sliders , a timer based sequential switch to subsequent navbars (say data-timer=myTime, data-slide="left", data-slidestop="true" )
2) certain Form input val() meeting 'my' condition, should trigger switch to subsequent or named navbars (say navdivtarget.trigger("switch") )
$('ftrctrgrp').trigger('create'); // enclosed div i trigger, assuming it is rightway to get jqm feel factor
but some improvement, but not good, so finally,
I go again and inspect in Chrome copying all the class-span-etc, and put in newlink.
Some breather here, it works, but still not perfect.
I expected that since the new insertion is within div of controlgroup, it will remove 1st link ui-btn-right-corner and add to 2nd link.
So if i keep doing manually everything this is taking me nowhere, something wrong i m doing.
please advise what is basic thing that i should put in addClass and a proper trigger so that my ui controls are even. This was just a case of <a></a> but may apply to other controls as well, i guess.
Just like data-attribute reference in docs, if you have something like class-attribute it would be great for a learner like me.
As on the learning curve, finding difficult to presume the reason when recommended live(click ) fails to work but live(change) would work, this happens to be my case..
please guide what i m doing wrong which is making click event not getting fired...
// js
$(document).ready(function() {
$("input[name='usractsuschkbox']").live('change', function() { // replacing change to click fails
var n = $("input[name^='usractsus']:checked").length;
if ( parseInt(n) == 1) {
singleuserselect();// say $("div#hidenseek").css("color","amber");
}
else if ( parseInt(n) > 1) { // say $("div#hidenseek").css("color","green");
groupuserselect();
}
else{
nouserselect(); // say $("div#hidenseek").css("color","red");
}
})
})
The checkbox is dynamically generated and within div container of li which holds it.
My thanks to the team who are patient enough answering jqm-newbies doubts.
Please let me know where i m creating problem. It is giving the following error in console for dynamic page content (list view content) injections. The page shows data correctly but i doubt on the JQM ui construct/elements. Kindly have a look at the following...
// Uncaught cannot call methods on checkboxradio prior to initialization; attempted to call method 'refresh'
Basically it is about dynamically creating listviews and apply a toggle button to select/deselect these list items.
//toggle code ...This toggle fires (but with above error for dynamic list)
1) an error - as underlined earlier (...attempt on refresh prior initialization )
2) the list view when inspected does not have any of the JQM class UI inheritance (as in static page e.g. theme etc)...it is just a plain listmarkup what i have injected and displayed. i sense this is the reason of problem..
3) it makes me doubtful if have to avoid ready and in place use bind / live and why?
please help me to solve 1 , clarify 2 and 3 JQM concept...
I have the following, code that displays a data in one of the collapsible divs. The data is shown in the div correctly but i a bit of aesthetics is missing on my side; thought silentScroll should help the user indicate some data is rendered. There are some div that happens to be at the bottom of visual screen.
What should i do so that my data is scrolled up for the user and manual scrolling can be avoided ( let us say i use $.mobile.silentScroll(-100)) as below.
$('.mycollapsible').click(function(){
$.mobile.silentScroll(-100);
})
but unfortunately, this does not work . I m not sure on this!
When integrating JQM with Jqplot , if I run outside data-role="collapsible" it works including inside data-role="collapsible-set" . Please see the skeleton-code-comments
I recently marked keep me signed in Chrome browser, but now if i use Chrome to login, it is refreshing endlessly showing "Loading Please Wait " and not allowing to login. (Login widget trying to connect and delegating page refresh). I m not sure if this (keep me signed in) is the reason, I guess so because it is not giving opportunity to type user/pwd.
So I used another browser (Opera browser to login) and send you this message.
Kindly advise what I should do to continue using Chrome in case with normal login.
My congrats and thanks to the team on implementing Filter Topic Text , it has come out very well. I used it and then posting this query..
In JQM,
I want to have a combination of two powers
1. data-filter="true" (of list)
2. multiple="multiple" (of select)
Scenario:
I want to send mail to those people whose income category is "low , high" or etc...
problem now is having only search helps only to see not select, and
with multiple selects if candidate items are many it is difficult to scroll.
(say my DB values may have any combo of names under any category as it is all dynamically updated and i am constraint by only 1 UI to display to the user)
Please see the attachment picture of my problem (multiple, search) and my need (search-multiple.png) ...
I need to implement this, I have no clue how to do it in JQM app logic, any suggestions or guidance would help me out..
So i thought, if JQM features can help me...
say... a Filter combined with Select, new attribute like data-filter-multiple="true" (by default false) in multi-select only will be great.
I have a popme.php which works well with swipe events when tested individually(it is multiple page single doc), but when i call through caller.php this does not work, it shows me only the first page content of popme.php and does not allow swiping?
Is it restricted because of ajax changepage call /dialog relation? I am terribly struck!. Correct my understanding and help me solve it.
Is there a possibility for ajax search (or as t9 dictionary) in the topic title text/search item, so that i can learn related post in the forum and then post it. The nearest that comes to this "related post" - i suppose based on tag it greps ..that too.. either on posted forum that i am currently reading or after i have submitted the post.
My problem (i think some may agree) with forum posting(beyond this as well) is that for a newbie like me there are too many postings out there. These are quite useful topics out there, however, the search is difficult and I am biased most of the time by moderator postings or just reading the topic title that attracts, for couple of pages and skip the useful rest because of constraint like time, preparation to write/ask a query etc.
I m sure i could be even more a organized person! ... but what to do..my manager wants in jiffy...money money money ...time is money...hey! that was just out of topic...