Make whole page draggable [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am not sure where to start with this or even what keywords to search for, so I am asking for someone to point me in the right direction. Here is what I am wanting.
I am wanting to make a webpage that can be dragged in all directions with different HTML elements in all directions and load new elements as you get close to the edges via AJAX. I am hoping to achieve this via Bootstrap or JQuery.
Any ideas on how to get the page draggable like that?

jQuery UI has a draggable method that would work for you, as long as you target the viewable area as the element to initiallize the plugin on. If you prefer a more lightweight approach you can use this plugin created by Chris Coyier.: https://css-tricks.com/snippets/jquery/draggable-without-jquery-ui/.
An example of it working in just 2 directions would be found in this SO thread as well: Scroll the page on drag with jQuery however the actual plugin being used in the demo supports all direction dragging - see the authors site: http://davetayls.me/jquery.kinetic/

Related

How to develop a java script image editor [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'd like to create a java-script image editor.
We have an ability to drag and drop multiple images to our editor and then with following properties,
Undo
Redo
Move upward position
Move backward position
Drag and Drop
Change background color
Finally create and save a single image with all our modifications.
I'd like to go with jquery/ prototype library to develop the same. But I'm not sure about my selection and want to know is there any other library to complete my requirement. Please suggest a better one if I'm wrong.
I think that the choice of a library to do your coding is not the case here. Use any you are comfortable with. I would only wonder how such editor should be made. If the requirements about the app will not change, you can easily create your editor using html and css or svg (raphael js, adobe snap js). If you consider adding further image processing in the future than canvas rendering is your way to go (example)
Also if you plan to add image resizing and rotating but need to support older browsers (like IE8 or IE7) you should use raphael with svg.

Selection area with click and drag [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Could someone explain me how to make a click and drag feature with jquery/javascript/css/html? It should work just like the desktop does when you click and drag, forming that "rectangle" area. Any idea on how should I do this?
This is a fairly easy feature to implement using jQuery UI. They have a sortable, draggable and droppable feature already built. You simply include jQuery and jQueryUI and then instantiate the feature using selector targeting. jQueryUI also has pretty decent documentation and good examples on each feature. Hope this helps!

Should I use a jQuery dialog or not? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have a list of user posts on a page and there is an icon in the top right of each post. When the user hovers over the icon I want to display additional info about the post, e.g. date, time, author, etc.
I want to display the additional information in an overlay of some kind, and I'm wondering if I should use a jQuery dialog widget or just some javascript. I don't think jQuery tooltips will do the trick, because some of the details are quite long.
Some specifics:
The details should show on hover and disappear when the pointer moves away
The overlay does not need to be modal. It does not require a title bar.
It should appear at the current location of the pointer and should automatically size to fit the content
So, should I be looking at the jQuery dialog widget? Or simply a javascript solution?
Thanks..!
A temporal, non-modal dialog positioned next to the user's cursor is effectively a tooltip. I'd check out one of the more advanced jQuery tooltip plugins like qTip2. It can accomodate many different types of content (images, paragraphs, videos) and is great at scaling to fit large content.
The AJAX example on the demo page should be of particular interest to you.
Good luck!

Need to Find A JQuery solution similar to app for Ipad [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I had a meeting with our president this morning who was wanting to have our team page function similar to the following app for her Ipad:
http://itunes.apple.com/us/app/appstream-for-ipad/id375288393?mt=8
There is a lot of movement and I am not sure where to really begin. In our case the thumbnails would be pictures of our people and when you clicked the photo a pop up box with description and contact information would be available for the user. I am wondering if anyone has seen a JQuery plugin I could use to simulate this affect or something else I could build on.
Any help would be greatly appreciated.
For anyone that is interested, here is what I wound up doing.
I used a JQuery plugin called "quicksand" for the animation part of it, then set up some an AJAX request on a timer to call a php page with a list of all employees in random order. Give a similar effect to what we were looking for, thanks for all the help.
One way i could think is to just have the thubnail images and then load the appropriate profiles in a fancy box
http://fancybox.net/
Or do it all manually, by having a hidden, absolute positioned Overlay and then present it on click

Drag and drop Javascript in iPad [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I need to develop drag and drop functionality in iPad. As I am new to Javascript, I tried to get some solution to get this thing done. I could find the way to move the element on the screen.
Here the the url
http://popdevelop.com/2010/08/touching-the-web/
Now what I want to know is, when I drag any element, I need to put it in a predefined area, like drag from x container and putting into y container.
I need help to create drop-able container, so that I could drag and drop into the container.
Some thing similar to the below functionality I need to create in iPad.
http://html5demos.com/drag
Please help.
Firstly, use jquery UI http://jqueryui.com/demos/ for drag and drop functionality and then add this script https://github.com/furf/jquery-ui-touch-punch for playing it in Ipad or Iphone.
OR
Try this :
jquery.event.drag - v 2.2
Three Dub Media - http://threedubmedia.com
Hope it helps.

Categories

Resources