Moving objects inside the browser [closed] - javascript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to display in a browser a web page which contains:
a number of objects with predictable shapes (squares, rectangles etc)
the user should have the ability to connect these objects using arrows (please see image link)
http://img850.imageshack.us/img850/6999/o33z.jpg
In addition the user should be able to move the objects, and the connecting arrows need to move with the objects so that the arrows keep point to the same objects.
Are there any current web technologies that can to that or is there one that will be a good fit to start using as a basis. I have not done any web work so even javascript might be your answer but please guide me with some specifics.

Look into Jquery UI. There's plenty of abilities in here to do what you specified above. Or you could do it using Flash/ActionScript, although that seems to be (arguably) a diminishing technology.
You can find info on how to use JueryUI here, http://jqueryui.com/draggable/

Related

How can I edit javascript in a browser [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 2 years ago.
Improve this question
I'm trying to modify a webpage I access that has a table with a bunch of rows. I'd like to loop through and compare a name in that row with a name on another list I have, if it's there make that name in the table red. I don't have any code yet, but I'm lost when it comes to figuring out how to run this code when I run the webpage in my chrome browser. Does anyone have an example or tutorial about how to do this? Most posts on this topic are many years old and it's been hard to find this info. I appreciate your help!
It sounds like what you're trying to do is modify the structure of a webpage you don't own the code to. While you can use the developer tools to run arbitrary JS, that becomes tedious to do every single time.
I think what you want is a browser plugin. Check out the resources below:
Chrome: https://developer.chrome.com/extensions/getstarted
Firefox: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension
There may also be specific browser plugins already that let you run arbitrary JS code on certain pages, but I am not aware of any myself.

how can I disable copying images from browsing my website [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
There is an option for disabling right click on the website on the computer but on the mobile I don't know which javascript code I would need.
Images have to be copied from the web server to the client system in order for the client system to display them.
There is no way to stop people from saving them.
There is an option for disabling right click on the website
Not one that can't be trivially bypassed.
There's no way to actually block an image from being copied. If it's being shown to the user, they can obtain it. The resource is already sent to them for render anyways.

Showing a local RSS Feed on my app? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
So i'm using phonegap build with, html5 jqm and javascript and css obviously.
i have a local rss feed in xml format that has been made and will be updated with new events etc.
i want the RSS feed to show like a list basically at the moment i'm no bothered with anything fancy look as i've not even managed to get it to show up, all my efforts have been futile.
Any answers accepted. For practicality lets call the feed rss.xml.
Thanks!
You may use jfeed, for example
jQuery.getFeed({
url: 'rss.xml',
success: function(feed) {
console,log(feed.title);
}
});
Also, you can use $.get, here is an example for PhoneGap and an article worth reading.

Synchronous changes to webpages useing javascript [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
This is most likely a very simple question but i am new to server-client programming i am used to only a client. I want an action that is taken on one person's browser to effect the state of the screen to all people that are looking at it.
I doubt it is that hard but i have no idea. And after some googling i can't find anything.
Take a look at websockets, which allow you to open up a constant connection between the client and the server.
Basically you will need the "host" to send its screen data to the server via websocket (or possibly AJAX), which can then transfer the data to the "viewers" (which is where the websockets will be superior to AJAX).

Canviz example don't work [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I've downloaded Canviz (it's a Javascript library for drawing graphs). I've unzipped the archive. I open, with Chrome, index.html, which is supposed to be an example. A "loading" message appears... and never disappears.
What am I supposed to do please ?
I worked with this library a few months ago.
You also need to have graphviz installed in order to create the graphs canviz will draw.
When you have installed, you have to use the function load with the url parameters in order to create the graph.
WebBrowsers have an option to enable javascript or not. make sure your browser enable it.
here's an example for Mozilla : Mozilla example

Categories

Resources