I am facing hard time to achieve this.
Requirement:
Save file from external link into data base column on button click.
File Url:
https://image.shutterstock.com/image-photo/autumn-forest-nature-vivid-morning-600w-766886038.jpg
I need to store this image in table blob column.
Problem:
I have tried using UTL_HTTP but due to ACL privilige and Certificate it is not working on Oracle ATP apex.
Alternatively, I am trying to search to achieve via java script however I am not able to find right links and code. Not sure whetehr it can be achived via java script or not.
I'm afraid you don't need anything else than create the Form page using the wizard.
As an example, I created a form page with a blob column. It creates a File Browser item in the page:
So, when I run the form I can enter the link of your picture:
You don't need to save the picture in advance, just enter the link of your image.
Related
I'm trying to make a website with a sort of survey where the user picks one of 2 buttons with different text values and the website saves what value he picked and reloads the website giving the user 2 new values on the buttons. I already made the system for rolling new button values and reloading when one of them is picked but I cant figure out how to save data.
This is the current code I have:
function b1() {
data = document.getElementById("b1").innerHTML;
alert(data);
location.reload();
}
This function is called when one of the buttons is pressed (there is another one for the other button) and the data variable is what value is on the button.
Instead of alerting the data variable I want to be able to add 1 to a variable in a database which counts how many times this value was picked.
I already tried using the google sheets api but it did not work and just stopped the code from working.
I tried adding a .txt file and use js to edit it but since js is ran client side it cant edit server side files.
You can use google forms for that.
Usually if you want a custom solution you would need PHP.
Using external software like with an API you can get an easy solution without too much effort.
At the end of google forms when you have made your form, you have the option to share, and there you should click the "<>" tab to copy the iframe into your HTML.
I need to download a file from this website: "https://es.investing.com/indices/merv-historical-data", automatically and every single day. To download the file I must click a js button that says "Descargar Datos" (or "Download Data").
I can't find something that works for this, and I would really appreciate it if someone could help me.
If you want the data automatically exported in to Excel Spreadsheets, you can actually pull a table from a website. I found this article about how to do it:
After opening a new sheet in Excel, click "Data" in the navigator bar
All the way to the left, there should be a button that says "From Web"
After clicking it, it will ask for a URL. Just copy-paste "https://es.investing.com/indices/merv-historical-data" (without quotations)
The first time it might ask if you want to establish an anonymous connection, just click ok.
Excel will then try to connect to the website, give it a few minutes.
You will then get a file drop down with a bunch of tables. Table 0 is what you are probably looking for. Select it and then click "Load" in the bottom right corner.
This is basically what that button did on the website. It just compiled the data and then invoked a download.
I have done proper research of many image plugins which upload images to server using php scripts.I just want to know a proper way to upload images to a django-based server.
Here's I think what a approach should be -
On clicking a toolbar button,a dialog will be opened.UI elements of the dialog will include a form with a file type,two fields for height and width and a button (upload to server).On adding a image file and fields and clicking upload button,ajax call will be sent (am i right here? or form submit should handle it.) to the server where a particular view will handle saving image to a specified folder.
On success server will return the full path of the image and dialog will insert in the editor.
Sorry if my question is very naive but I just wanted to know if my assumptions are right before starting off.
Thanks
There is a Django package
https://github.com/django-ckeditor/django-ckeditor
This comes with a demo app. I would advise to look into that, and see how it works.
Basically you will have to configure the media url and there is a setting for ckeditor where to upload the media. Ckeditor will handle the image upload for you.
Uploaded content will be show in an overview page, where you will have the option "use image in text"
I have an application that runs to print documents. there is a tree view and grid control in the page. The treeview is enabled with the check box. there is another checkbox in the grid. based on the selection i create pdf using itextsharp and want print , download email etc.
i did it but when it down loads , I need the controls to be cleared. this is not happening even i wrote the code to clear. i think the issue may be with the usage of memory stream. So what i am doing is create pdf and saved to a location. So how can I do it with javascript (the download function). My ultimate aim is to clear the controls.
Regards,
Sivajith S.
I have a webpage and a F-Share button. On clicking this button, an image uploaded by the user is posted on facebook. I tried to initially use javascript to set the 'picture' property with image data from fileupload and it didn't work. So, my guess is that, Facebook does'nt save the images to its server but instead fetches them and displays them from the url we provide. Is that the case? If not, please guide me how can I use the image from fileupload in the 'picture' property?
If you mean the thumbnail that is posted on the FB wall when sharing a page, you can control what image is used by defining some META tags. Here are some examples from the docs:
http://developers.facebook.com/docs/share/
Look under "Sharing Rich Media"