Jump to content

makata

Members
  • Content Count

    16
  • Joined

  • Last visited

Community Reputation

0 Neutral

About makata

  • Rank
    Newbie
  1. The following line does not work. $("label[for=pick] .ui-btn-text").html("new label"); JS Bin - Collaborative JavaScript Debugging How to correct this?
  2. I have tested it. Does not work at all on my windows 7 machine.
  3. Hi I need a tool to generate flow chart from the code I write in html5 + javascript + jquerymobile. Do you know of a reliable tool?
  4. I want to replace $('#topspeed').change(function(){with a condition, something like if($("[id=topspeed]").....How to do it? Here's the HTML <select id="topspeed" ><option data-icon="arrow-u" data-iconpos="top" >- SELECT -</option ></select>
  5. The meaning of this.id is self explanatory: element with currently focused on ID, but due to the abundance of the word "this", it is very difficult to find it in online js references, like w3schools. could someone post a link to the explanation of this id somewhere on the net? ** It will help me deal with a specific problem. The problem is how to replace "this.id" with specific id reference. To narrow down my question, what does this.id refer to in the particular instances below and how could reference to it be made more directly, something like replacethisses="#particularID"? Copy code var
  6. http://jsfiddle.net/tearex/mXQqP/ I have hit the wall on a trivial as i think problem. I can not replicate assignment of a variable in a different place of the code. Here is how the prototype works: first click one of the randomizers. they populate the select menu. then click the button. it makes the choice of the select menu appear on the diagnostic display. so far so good. now, click the select menu and choose something other than what is chosen the button will update, but upon pressing the button, a few lines of code are missing Here is how I see the problem. when the choice of the selec
  7. I guess you are right. I will.
  8. There are five sets of text data in variables named in the following pattern:var1_1var1_2...var1_5 var2_1......var5_5 depending on which of five radiobuttons is checked, variables chosen1...chosen5 should be assigned the data from one of the five sets. Is there a way to simplify this process, rathen than if radiobu1 checked then chosen1=var1_1 chosen2=var1_2etc ?
  9. When creating alternvative or derivative versions of html+js files, I notice a lack of a consistent strategy for naming the names, classes and ids. the consequence is that when I try to integrate those files which started to live a life of their own, I spend a lot of time unifying the mentioned identifiers. As i do this, I still feel at a loss of a uniform system. do you have any? Ideally, the name should be telling of the function and class of the element, be distinct from the commands and words appearing on the GUI. Any other guidelines?
  10. Hi I have a hunch that something like that shoul already exist, but it is a matter of the right search - so far unsuccessful. I am looking for an e-learning platform, which enables placing html and jquery content online, possibly with a distinction between logged and unlogged users. are there solutions for doing that on your own website, (something like what wordpress enables for websites)?
  11. http://jsfiddle.net/tearex/JjRLf/2/ how to adapt the code to jqm?
  12. not that the problem is advanced, but the fact, that the code probably features a minor error http://jsbin.com/apudev/9/edit what it does is randomly picks a car from one of two lists chosen by the user. the only thing is that the choice does not get reflected in the select field. so the four lines lines var select = document.getElementById('s1');var items = select.getElementsByTagName('option');var index= Math.floor(Math.random() * items.length);select.selectedIndex = index; which elsewhere would work do not fit in the rest. what could be wrong?
  13. http://jsbin.com/azipok/2/edit this piece of code does the trick of clearing up the option list of select menu and adding a "test" message, but this message becomes visible only upon dropping down the select menu. is there a way to make this "test" message display and replace the "no modules..." text upon clicking the button?
  14. what needed changing was the values from 1 vs 2 to on vs off. the proper piece of code is: <form name="BRAND" ><select data-role="slider" name="MODEL" ><option value="off">sedan</option><option value="on"> sportster</option></select> </form> consequently, the js needs to follow. from {for (ll=0;ll<document.BRAND.MODEL.length;ll++){if (document.BRAND.MODEL[ll].checked){MODEL=eval(ll+1)}}if (MODEL==1) {KIND="sedan"}if (MODEL==2) {KIND="sportster"} it should turn into if (document.BRAND.MODEL.value=="off") {KIND="sedan"}if (document.
  15. in jqm, this is a working toggle switch: <form name="BRAND" ><select data-role="slider" name="MODEL" id="test"><option value="off">sedan</option><option value="on"> sportster</option></select> </form> and this is a way of making the switch trigger a function $( ".selector" ).on( 'slidestop', function( event ) { ... }); how to connect them? I have tried using this <script>$( ".selector" ).on( 'slidestop', myFunction()) function myFunction()document.write("works!")</script> and this $( "#testo" ).on( 'slidestop',
×
×
  • Create New...