JQuery :: Limit Drag To A Zone?
Apr 27, 2009
I was wondering if there was a way to limit a drag from a zone :for example I have a div zone with elements inside :<div> <my dragable element/> </div> and I don't want to be able to drag the element out from the div.I read the doc but didn't see anything...
View 2 Replies
ADVERTISEMENT
Jun 21, 2009
how I can limit the "dragability" of an sortable item, to ex. a element inside the item. Meaning, I only want the item to sort when the header of the item is draged. Is there a simple way to do this, or do I have to modify core code/ create a helper to accomplish this functionallity? Have read the docs, but haven't found anything that mentions this..
View 1 Replies
View Related
Jan 10, 2012
I don't know if the question is already postedI build a mini site for mobile for funny storyHow to delete the zone after footer ?I build a mini site on Samsung BadaThank for you Framework, it work very goodBut, I knwo if I can delete the zone after the footerI try with the codestyle="min-height: 677px; " in data-role="page"but it don't work.
View 1 Replies
View Related
Jul 27, 2009
how to clone a draggable item into center of the droppable zone?
try this...try to drag 3 images...are always append!!!
[URL]
View 2 Replies
View Related
Aug 16, 2009
I have this code everytime I add a new time zone it doesn't appear
[Code]....
View 1 Replies
View Related
Dec 9, 2010
I'm testing out a script that should display date and time by time zone through use of the innerHTML method. Something is off, neither day or time is being displayed on screen.
function initTime(){
var allTags=document.getElementsByTagName("*");
for (var i=0;i<allTags.length;i++){
if(allTags[i].className.indexOf("tz")==0){
[Code]....
View 14 Replies
View Related
Feb 1, 2011
I'm trying to create a plain-text clock to add to a webpage. I need the clock to display the current UTC+4 time. How do I do this and what code do I need to use?
View 1 Replies
View Related
May 15, 2007
I am using jsCalendar and I would like to know how I can get Client Time Zone related to the TIME that have been selected.
View 1 Replies
View Related
May 23, 2010
I am trying to pull the time zone from the Client. I have the code below, but my computer is set to Central Stanard Timezone (-6) and its pulling (GMT -5) Eastern Timezone from my web hosting server. How can I correct this?
Code:
var timezone1;
var time2 = new Date();
timezone1 = (time2.getTimezoneOffset() / 60) * -1;
View 4 Replies
View Related
Oct 28, 2009
modify this script be set to a specific Time Zone rather than picking up the time from the local machine? I want it to countdown to 6:00 am EST.
[URL]
what to add where if it is possible?
View 2 Replies
View Related
Oct 18, 2011
I am facing issue in below code for Brisilia time zone.(GMT-3). Issue comes in October month only. It is going tobig loop. I am not getting how Date object is behaving here.
[Code]...
View 1 Replies
View Related
Jul 20, 2005
Let's say you provide an online service from 7:00AM to 6:00PM Eastern
Time (daylight time in the summer). Is there way of showing these
hours of availability on a web page in the user's local time?
View 8 Replies
View Related
Sep 20, 2009
Internet Explorer (in particular IE6) has some limit on maximum URL length. This is very hard to debugging if you don't know what to search for. Maybe jQuery could throw some self-explaining exception when URL is too long?
View 1 Replies
View Related
Jul 2, 2010
Im working on a store locator and I was wondering if its possible for jquery to limit the results show in the sidebar and add a "more results" option. Right now the sidebar is one large div with overflow hidden so it doesnt show too many results.
View 42 Replies
View Related
Feb 15, 2011
[URL]
Example for FirstName data input: Characters a-z,A-Z, hyphen, space are permitted. 0-1, !@#$%^&*()- etc are not permitted.
The plugin looks great but I am not able to figure-out how to limit which characters an end-user is allowed to input. Not just which characters are permitted but also which characters are not permitted.
View 1 Replies
View Related
Feb 27, 2010
I'm experiencing a weird problem when trying to do a $.ajax call. When I pass 5 variables, with either GET or POST, the script runs as I would like. However, when I use 6 or more variables, the script does not run. Does anyone know why this is?
Relevant code (stops1-5 are defined as JS variables earlier in my script, and the alerts are for testing)
$(".barcrawl-stop-id").each(function(){
alert("running ajax function");
$.ajax({
url: "/handlers/ajax/barcrawl_reorder.php",
[Code]....
So, the way it is now, it works fine (I get the first alert for each instance of .barcrawl-stop-id, and get an alert at the end with the returned data). However, when I add another variable to the data, like stop4: stop4, the script does not run (all I see is one alert with "running ajax function").
View 1 Replies
View Related
Jan 27, 2011
Is there a way via the jQuery options to limit the display of menus below a certain level using superfish? I realize it is an odd request, but I am using parts of the main nav menu in a variety of places to reduce updating issues. I have 3rd/4th levels which appear within sections of a site, but I do not want them to drop down from the main nav. So, can I set a limit?
View 5 Replies
View Related
Jul 22, 2010
I would like to restrict Character limit on TEXTAREA box.I am able to get char limit using Jquery if it it is one textArea. limit chars for Multiple TEXTAREA in same page using jQuery Code.
<script type="text/javascript">
$(document).ready(function() {
// ---- How can I do on keyup
$('textarea
[Code].....
View 5 Replies
View Related
Jul 12, 2011
I'm using Ajax to load some HTML data from an external file. How could you limit the word count to 20 words?
View 1 Replies
View Related
Dec 25, 2011
I'm use jquery in my project. When I use ajax method, for add a "dropbox" zone in window, and drop in this zone some file, this code dosn't work:
View 6 Replies
View Related
Jun 7, 2009
I have scoured the net and found nearly what I'm looking for, but not exactly, and I don't really know javascript, so trying to piece together bits of code hasn't worked. What I need is the script for a live clock with date and time format exactly as follows: Sunday, 07 June 2009, 24:00:00 (GMT+1).I have two separate files with the following code, which gets me close to what I need: Sun Jun 07 19:05:48 2009 Obviously the time is in the wrong place and it doesn't show GMT+1. These are the scripts:
Code:
function update() {
time = Date();[code]....
View 1 Replies
View Related
Jan 9, 2012
I am trying to make a sort of scrollable area, using a div that you are supposed to be able to drag, and an area that reacts to it. The problem is, it only reacts to click events. When I drag, it does not respond.
Here is the jquery code:
jQuery(document).ready(function(){
var numImg = $('.image').length;
$('#imageContainer').width(numImg*206+40);
[Code]....
View 5 Replies
View Related
Mar 8, 2011
I'm not really a Java writer, so I don't know how to do this myself, though I imagine it would be pretty simple. I am looking to add a script to a webpage that allows users to input a time manually, and have it converted to GMT/Zulu time and display the converted time. I have seen a lot of time zone conversion scripts online, but they all just convert whatever the current system time is to another time zone. I am looking for a script that allows users to convert a time and show the zulu time, for times other than the current time. The time zone the inputed local time would be in is +4:30 (Kabul). I don't really care about style or aestehtics, just a simple script I can insert into a web page to have a time input field. The converted output time can appear in another field, a popup bubble, etc, again style isn't really an issue. It's really just to help people in my job who need to know what the GMT/Zulu time was for certain local times after the fact. One would think it shouldn't be that hard to just subtract 4:30 in your head, but apparently it is.
View 3 Replies
View Related
May 5, 2010
Im having the exact same problem as posted here:[URL]
When I drag my link to my droppable area, an ajax request is supposed to triggred, but it seems like the whole page is beeing reloaded. This works fine with Chrome and Firefox. It works in IE if I have insert an alert in the drop function.
Im including the drop code I have:
$('.droppable').droppable({
drop: function(ev, ui) {
var intSourceObjectType = ui.draggable.attr('objecttype');
var intSourceObjectId = ui.draggable.attr('objectid');
[Code]....
View 1 Replies
View Related
Dec 7, 2007
Please the link to see what I have done so far...[URL]... It is a day planner, where various places can be dragged on to the day planner. It works, but it seems very slow. Running firebug profile when dragging a simle place into a single slot tells me that over 35,000 calls were made.
View 7 Replies
View Related
Jun 11, 2009
I've got a page that uses the draggable and droppable feature - [URL]
It also uses jQuery to call a web service via Ajax - this also works fine.
However, I want to call the web service only when an item is dropped onto the objeect but when I try to add the Ajax function inside the $("#droppable").droppable({ drop: function(event, ui) {.... it doesn't seem to work.
You can see my code at [URL]
View 1 Replies
View Related