I want to add the button of screenshot of my customer's page and then want it to save in a database and show it in a another page as dashboard [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 6 years ago.
Improve this question
I tried using java script but it didn't work. I also tried php imagegrabscreen() but it demands URL whereas I have a customer's page URL different for everyone ex: /member.php?email=shady#gmail.com&code=A101_123 .
Basically I want to store user's screenshot so he can be able to see those images of his activity. So any solution?

I would recomment to take a look at html2canvas. It is a JavaScript solution that works on the client side. Only problem: It takes the current DOM from the user and builds a picture with the browser engine. So it is not 100% accurate, but pretty close.

Related

Save draft after page reload without registration via js or php [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
In my site, user can write a text. I want to make that, when the user reloads the page, the draft will appear. Without any registration.
I think, using ip as id is bad idea, because it can be library wifi network, for example, and as far as I understand, all connected devices would have the same ip.
What is the best way to unify client for that purposes?
You should use cookies if you want it to be saved for a long time
PHP:
setcookie('text_cookie', 'My text', time() + 3600);//To save for an hour
echo $_COOKIE['text_cookie'];//To show
use javascript keyevent and localstorage

Image processing on browser [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 4 years ago.
Improve this question
I need to do some image processing on a browser where I upload images and with my python script, it manipulates the images. In the end, I just want to open an HTML page where I can simply use buttons there to process my python script. Please tell me how can I do it? I don't know much about web development. I don't need to host a website. I just want to do it locally so that if I give my files to anyone they can access it by just opening the HTML document.
If you want to practice and you need to upload an image and processing in your web app you need to use Phyton(with Django should be more fast to create what you want) and MySQL(or another database) to save the data.

How to make different pages using Javascript and HTML? [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 6 years ago.
Improve this question
I'm making a (web) app for a school project, using Phonegap. I'm writing IT in Javascript, HTML and CSS, and I am very new to coding.
My question seems to me to be pretty straightforward, but I can't seem to find any solution on the internet.
I have finished my homepage, but now I need a button which directs you to another page (the menu), from where you can go to other pages within the app. But I just can't find out how to make different pages, and how to direct users to those pages.
There are two ways I see you can do this. Either make a new program (new HTML file) and make the button redirect you to that or completely clear the page using document.write("") and rebuild it.

Is there any possibility to insert my own javascript code into any website? [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
Imagine a website - for example YouTube. In every video I'd like to insert a link next to the title that will point to my website, and if I click it, it grabs the url and sends it to my site's database.
I've seen somewhere such a possibility (I don't remember where), consisted of the fact that you dragged a *.js file onto your browser window and it worked locally just for you in the browser like an extension to existing site or sth.
Can you point me to articles or other resources if this is possible?
You have a couple options:
You can use a browser extension such as Greasemonkey for Firefox, or Tampermonkey for Chrome.
Write a Bookmarklet.

How to get access to cross domain content? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Two webpages, http://website.com/home.php and another one is on my dropbox http://dropbox.com/myId/public/myfile.html.
I want to run a user script (which will be given out to other people) on home.php with some values, basically some 9-10 numbers. These values are already defined in the script. But they have to get updated on a regular interval, this is done by the user clicking a link or something. These updated values will be on myfile.html. I have full control over this file.
I have tried using localStorage in the script but that doesn't allow to share content over different domains. iframe also doesn't work due to cross domain. But is there a way that these values can be released by a function() on need.html when the iframe loads on home.php?
I'm pretty new to javascript, so I don't know everything.
What you need is JSONP. Here is more on that
I found out how to do it:
I created a script element using the userscript in home.php which links to need.js instead of need.html.
need.js contains code to add the "values" to localStorage.

Categories

Resources