Jquery & dataTransfer
Hello! Who can tell me what's the problem with the code? $("div:[draggable=true]").live("dragstart",function(ev){ ev.dataTransfer.setData("text",this.id); return true; }); the browser show me an error :Uncaught TypeError: Cannot call method 'setData' of undefined thanks!
Regarding MIT license
I asked this question in a post initiated by another user, but no one answered :[ Anyway, if I use jQuery under MIT license in a commercial app, I have to include the copyright notice and the permission notice found in the core jquery file. Where will I include this?
Complete white screen on my Jqm phonegap applicaion jqm 1.2.0 Alpha
I am getting a complete white screen when the application starts. If there are any fixed header and footer, they alonw are visible while the content remain hidden behind the white area. Once I touch on the screen, the content behind the white area is displayed. This white screen re-appears on the new page after the transition to another. This white screen problem occurs only when I include the meta tag. <meta name="viewport" content="width=device-width, height=device-height> JQM Applications build
Form submit doesn't work with data-role="listview"
I have a form with various form elements. The form elements are in a ul listview inside the form tag. the problem is when I submit none of the values are submitted with the form. If I remove the data-role="listview" inside the form it works fine but I lose the nested listview and styling. Has anyone seen this or do you have any suggestions. I looks like a bug.
Validation - Remote Failure
I am in the process of using the JQuery Validation Plug-In for one of my sites. I have an initial page up which accepts an Email Address and a Password (and comparison Password). These are bare-bones pages just to test with and will be fleshed out (along with the PHP scripts) once I have the code working. It is at http://www.rarpsl.net/Church1/registration.html with the JQuery script at http://www.rarpsl.net/Church1/scripts/registration.js. I am using JQuery 1.8.0 (when I used 1.7.2 I had the same
problem with a jquery displaying function
Hello all, Hope this is in the correct forum, apologies if its not. I'm fairly new to jQuery and I've been asked to look at some code which has stopped working. The html / jquery code itself should work as follows. When someone clicks on a heading a table should display to the user, but unfortunately it doesnt. You can see the problem at the following link . Select people and then Mentors or members . Here is where the information should display to the user but unfortunately its not. any pointers
facing problen in safari5
Hello, Please check this link. It is working fine in all browser but not in safari5 and below. http://www.ingeniousonline.co.in/wayne/html/slider.html Regds Vishal bansal
Measuring distance b/n 2 points in CAD model imported in javascript
Hello, I am Bala, working as antenna engineer. I have been trying to measure distance 2 points in a CAD file (.stp file to be precise) after importing it in javascript. I am trying to learn javascript now and any suggestions on the commands/syntax to be used for distance measurement will be helpful. Thank you Regards, Bala
hover problems
so i have around 10 of these boxes with pics in them and i also have a X button in the top right corner. heres the code. <div class="editcar_pics"> <img src="/garage/pics/lambo.jpg" width="175" height="175" > <div id="editcar_hoverpic"> <img src="/garage/pics/x.png" id="editcar_imagedelete" width="25" height="25" /> </div> </div> I want when you hover over the picture the X will appear. But the problem is i have when i hover over any of the classes="editcar_pics" the X will appear on all of the
Understanding $.mobile object url methods
I'm trying to understand the usage of link methods. Not used to working with a framework of any kind, a lot is confusing. I realize (or think I do), for instance, that $.mobile.changePage( "searchresults.php", { type: "post", data: $("form#search").serialize() }); will transition to the searchresults.php page, transferring data from the form with an ID of "Search". The question is how do I activate that code from a link? And, by the way, since I used that as an example, the next question would
Creating a horizontal menu
Hi, I am new to jQuery & jQuery Mobile so bear with me. I am trying to create a horizontal menu for a website that will work both on standard device (desktop/laptop) as well mobile. I found the demo by codiqa on the jquerymobile.com site very useful with one exception... The menu I am creating is 7 columns wide. The site only allows you to create a grid that is 5 columns wide. When I looked at the code I saw that it was just using html <div> tags to create the grid so I thought no problem, just
circular sliding menus....
i am trying to implement a circular menu with circular sliding effects for ipad can you guys tell me how to implement it... i am providing the screenshot... https://docs.google.com/open?id=0B3IBJKENGE7RQjZVNXhoN0NtNUE it wouls be great if u guys provide examples... i google searched it but couldn't find anyhing....
Having Problem with hover on multiple divs?
Here is my code I don't know why it isn't working. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Robert Eilers - Interview Test</title> <!-- BEGIN: css --> <link rel="stylesheet" type="text/css" href="assets/css/reset.css" /> <link href="assets/css/bootstrap.css" rel="stylesheet"
Uploading File Size Determination Using Jquery
Hi, I want to find the uploading file size using Jquery (Client side). If the selected file size exceeds the maximum limit (assume 1MB) i want to prompt end user with a message to select file with lesser size. Just the file size validation. The actual upload will be handled by form submit button along with other fields. Please help if anyione has answers or suggesting for my query.
Need help with an OOP problem.
I have the following code, calling a method in my main class: some_func:function(){ $.ajax({ url: '/actions.php', success: function(data) { $('#actions').html(data); $('.add_button').click(function(e){ this.add_something(); }); $('.del_button').click(function(e){ this.del_something(); }); } }); }, add_something: function(){
jquery validate 1.9 plugin not working in IE7 and IE8
I've got the following code to validate a registration form. In Firefox, Chrome or IE9,if the user tries to click the register button on an empty form the error messages show up fine. In IE7 or 8 no error messages appear. Here's the jquery: $('#form_register').validate({ messages: { register_full_name: 'Please enter your name', register_email: { required: 'Please enter your email', email: 'Please enter a valid email address' }, register_username: { required:
jQuery Accordion Help
I'm currently trying to implement this particular accordion into my site http://jsfiddle.net/8MXAu/ I understand the HTML setup, what i'm having difficutly understanding is how to apply the javascript and scss to my website to make this work. Below is my websites css layout. If you can direct me on how to apply the javascript and scss that would help me out so much! /* --------------------------------------- APOLLO --------------------------------------- by Ryan Clark www.ryanvsclark.com ---------------------------------------
How can change the content of the view from the controller?
How can change the content of the view from the controller? I would like to have a preferences painel that knows if the user is logged in, if yes :it shows a tab view, if not: it shows another tab view ->completly diferent, but the user can acess the preferences painel if he is logged in and if he is not.
Can the jQuery validate plugin be used to sanitize fields to prevent SQL injection?
Can the jQuery validate plugin be used to sanitize fields to prevent SQL injection? I got the impression that it does but it's not working with the standard settings and I haven't found any information on how specifically to set it up. These are my current settings: $(document).ready(function() { // validate signup form on keyup and submit var validator = $("#customer_info").validate({ rules: { fname: "required", lname: "required", user_name:
How to move and expand a div?
Hi guys, I was hoping someone could help me, a Jquery beginner, with a problem. I would like to have 4 small "preview" div's on my webpage. Which when you click them will move downward and then expand. I hope to achieve the effect of having small previews on a page which will move to the middle and expand when you click them. Now as I said I'm really quite new to Jquery so I was wondering if anyone could point me in the right direction on how to achieve this? I got asfar as this: <script> $("#div1").click(function(){
html targets
I am trying to Identify the html targets (the input field, and the results container DIV), and make variables for them but I am new to Jquery and having some trouble figuring out how to do this with my code. here is code: http://resourcesonline.us/JAVA/3/index.html Can anyone help me figure this part out? Any help would be greatly appreciated.
FadeTo not working as intended
Hello All, I have 6 buttons. When I click on first button, all the other buttons should fadeto some percent, and When I click on second button, the first button should fade along with other 4 buttons, but the second button should not fade. On the whole except the button I clicked all the others should be faded. I used the following code, it works when I click first button, but when I click on second one nothing changes. That means the first button is not fading and the second one remains faded. $(".class").click(function()
Call function with parameters - problem
Having problems executing the function runupdate (line 26) Example page Jquery code call function <script> $(function() { // Function to read #log div function runupdate(personsIDval) { alert('inside runupdate function'); var events = []; var idRE = /^Event ID : (\d+).*$/; $('#log div').each(function() { events.push(idRE.exec($(this).text())[1]); }); $.get('runupd.php',
SelectMenu and multiple and native menu not working
Hey all, I've tried a select menu like the following: <label for="Desert">Desert</label><select data-close-text="Closetext" data-corners="false" data-native-menu="true" id="Desert" multiple="multiple"><option value="Item1">Item1</option><option value="Item2">Item2</option></select> The box for the value shows up, but clicking it shows not drop down. I assume because in some browsers a multiple select element is sort of always 'expanded' and options are toggle-able? Any way to work around this
Using filter() to hide all divs expect for one which should be shown
I have the following code $("#v_posts").click(function(){ $("#general-div").hide(); $("#styles-div").hide(); $("#feeds-div").hide(); $("#misc-div").hide(); $("#pages-div").hide(); $("#posts-div").show(); // $("#right").filter( $("#posts-div") ); }); which i am using to hide some divs and show one div.This works but i would like to compress my code a bit to make my work easier.All the divs are enclosed by a wrapper div with the id right. Currently i am using this to
Trying to figure out a select box issue
I am trying to create a form in which the child fields are disabled or enabled based on whether you chose one or the other. I was able to do it with a checkbox, but i want it to work with the drop down select value. here is the link and the script below: http://www.rfdesignstudio.com/newsite/paypal.html Here is the select script: <select name="type" class="input" id="type" onchange="type()"> <option value="General">General</option> <option value="Walk-a-thon">Walk-a-thon</option>
Cycle Plugin failing to work...
Well, I'm sorry to be posting. I did a search for both the plugin and that it is not working, but could not find a solution on my own... I have everything installed, to my knowledge, correctly. .js files are in a /js/ folder along with the CSS file. Despite all of this, the images just sit there in a cascade down the page... Any help is appreciated :) Here is what I have; Browser: Firefox JS Files http://www.josieroetman.com/js <HEAD> Tag <link rel="stylesheet" type="text/css" media="screen"
JQM 1.2.0a1: Can't enter text in input fields in Popups
Hi, Using the new popups containing a text field it seems like there is an issue on iOS. The keyboard opens when I select the input field and I can type in 1 character (sometimes 2). Then the keyboard closes. I can reselect the field and type in another character before it closes again. Rinse and repeat. This is tested in the iOS simulator. -Scott
Superfish full width in Drupal
Hello! Is it possible superfish menu to be automatically resized to full width? I have 1000px width region with 5 menu items. I can manually set .sf-menu.sf-style-default width: 100% and .sf-menu.sf-style-default li, .sf-menu.sf-style-default.sf-navbar width: 20%; But it isn't nice because menu items has text with different length.
recommendation for a horizontal scroller
Hi, guys! I don't know if i gave an adequate title for my need. For example, on a website with lots of contents (options) that have fixed width, I need a plugin that takes care of them when browser window size is being changed, by showing horizontal left and right buttons, which, when activated move entire content left/right like regular scrollers. Please recommend plugins adequate for this issue, thank you in advance!
Android zoom
I can´t zoom an image (on Android) in my application. I am desperate Following is in my header: <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> In my script i made this: $(document).bind('mobileinit', function(){ $.mobile.metaViewportContent = 'width=device-width, minimum-scale=1, maximum-scale=2, user-scalable=yes'; $.extend($.mobile.zoom, {locked:false,enabled:true}); }); But it isn´t work (on iOS it works) -
What a format of jquery API description?
What a format of this jquery API description? How to understand this write?
MODX en Jquery Mobile
Hi everyone, I'm trying to make a website with CMS in combination with jQuery Mobile. On this forum I read that MODX would be the best solution to work with. I decided to make a website in MODX and after that trying to make a jQuery Mobile front. This last thing is more difficult than I thought. Where do I have to start? I know how I make a website with jQuery Mobile. But I don't know how to make this in combination with MODX. There is no explanation online. For example, how can I show the menu (which
cleditor plugin - issues
Hello Everyone: I've a cleditor plugin installed on my site. It works great when entering data and INSERTing data into mySQL. Now, I am writing SELECT statements to pickup the data used by cleditor. My goal is to display a table of different "topics" using cleditor data. The user should be able to click on a <tr> checkbox, pickup row values and assign those values to different input fields. Things work great for every field except my cleditor content. With cleditor content I have the following
jquery mobile web app leave empty white space at page bottom
I have a web app (i used JQM) currently customized to iphone. all elements are fitted to the page height, but i'm getting a white space on the page bottom. when viewing the page on pc browser everything is fine, so i guess the problem is related to the iphone screen resolution configuration on some CSS file. Please view the web page on your iPhone to see the white space (scroll down):http://aspspider.org/elimiz/check4/MC_v1.0.htm Help me
jQM 1.2.0a1, Two links to the same page, with different data-transition will always stick to the first used.
Playing with a very simple demo page, I stumbled on an odd behaviour, one that I didn't see in 1.1.1. Normally you wouldn't have two links going to the same page, with different transitions. At least no the slide and pop I'm testing, however the case seems to be that which ever of the links you use first, is the transition that are permanently assigned to the page it links to, other links with different transitions will ignore their own, and use that of the first link. The attached example is pretty
Problems with jquery <ul>
Hi people :D I have a doubt. I have a button, where I have an ID CODE <li class='inline btn_fone'> <a href='java script: void(0)' id='$id' class='botao_f efeito_fade'> </a> </li> When I click on this button, it should get this ID and open an <ul>, that is a telephone list, which is called from a database CODE <div id='exibe_fones'> <ul id= '$id_lista' class='lista_fones'> <li class='fone_n'>9999-9999</li> <li class='fone_n'>9999-9999</li> </ul> </div> My jQuery is like
Autocomplete
Good Morning I need your help urgently. I implemented a jQuery autocomplete functionality. However, it only works for Chrome. I could help with this problem. My code is as follows: $(function() { var availableTags = [ "ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy",
Dynamically added controls not identified by jquery function.
Hi Team, I have a container div within which i have added child controls dynamically during page load. I have a jquery function called on document ready, which does not identify these dynamically added controls. The lenght of children of the container always returns 0. Can anyone please help me with this? Thanks, Goutham
How can I prepare my images for multiplaforme devise
Dear All, I am new in developping web application for mobile and I am trying to devlopping a application to show picture, as a gallery. My problem: I do not know the size of the images, because iPad, iPhone, android and other, do not have the same screen size. And Of course, I would like to have the image displayed in full screen. So, now how can i prepare my images? Do I have to have different image size for each platform? Thank for your explication. Cheers
Next Page