can anybody tell me hw to add images in an iframe at runtime. I am making a text editor using iframe and i want the facility for the user to add images to it by clicking a button.
Thanks in advance
You first need to upload your image to your site so you need to create a backend piece of code that manages that, you can send your image to the site via an Ajax call, and have the server respond with the same image.
Try looking here http://css-tricks.com/6522-ajax-image-uploading/
After that you should just display it in your iframe.
Related
I want to return image(s) through asmx webservice and show them in a html page.
I should not images are located in a folder named by numbers (1.jpg, 2.jpg and etc.) on server and also I should note that I don't want to make and use url for each image because it may cause security issues for me.
I have a textbox in my html page with a submit button and I want to see "1.jpg" in my html page when I insert 1 in textbox and press submit button.
Please help me to play out.
I have a textbox in my html page with a submit button and I want to see "1.jpg" in my html page when I insert 1 in textbox and press submit button.
Simply return the image data from your service along with the appropriate Content-Type header, such as image/jpeg. Then, use JavaScript to create an img element that references your service:
<img src="images.asmx?image=1.jpg" />
I don't want to make and use url for each image because it may cause security issues for me.
I don't know what security issues you're referring to, but just because you can access these images via script doesn't make them secure. Anyone can access them this way unless you take steps to prevent it. It's no different than simply changing the URL.
This is an issue regarding, http://www.mccaffreyhautecouture.com/
I am unable to create an external link where the viewer is brought to a specific page within the website. On landing, the viewer must always enter by the landing/main slide page.
This was a purchased template and the entire website is coded in a single index.html file.
My client would like their Pinterest images to link directly to the source or gallery.
Is this at all possible?
I greatly appreciate any assistance.
Thank you,
Stanley Ounarom
It looks like this was written using AJAX to pull in content. The URL doesn't change when nav is clicked, which makes it impossible to link to a specific page w/in the site. The site will need to be further developed to allow for this functionality.
This may help:
jquery ajax history and bookmarking plugin
I would like to view images on my box account natively inside a simple rails app. The goal is to run a slide-show with these images. I looked for the necessary parameters to pass each images relative url into a <img source> tag. It appears that I can only download images, or view them from within the Box application.
Is this accurate, or did I miss something within the Box API documentation?
When you create a shared link for a file, there is a download_url attribute that can be used to link directly to the file.
http://developers.box.com/docs/#files-create-a-shared-link-for-a-file
I am using Servlet to print HTML tag make it a web page.
If i want to highlight some text inside my web page by some background events.
For example if count > 100, then highlight some text.
How can I do that? Any example or tutorial?
Many Thanks
A servlet generates HTML, and sends it to the browser. Once the response has been sent, the HTML code is in the browser, and there is no way for a background task on the server to modify anything in this HTML code.
You'll need some background JavaScript polling in the page (AJAX), that will ask for updates to the server and modify the HTML page accordingly.
Or you can regularly reload the whole page, but it's less efficient and user-friendly.
I am attempting to link from my website to an outside website but the information that relates to the user is in the middle of the outside page. Can I make the link take them to there?
Thank you in advance
If that outside page has an anchor tag in or near the content you wish to link to, yes.
<a name="releventContent">
If the above code (or something like it) is present in the outside page, you can link to it from your site like so:
clicky
I can suggest you a dirty trick that might work or not too. Steps
Open the new link in an IFrame.
Create a javascript function that will accept the string to search as parameter.
On the bodyload call that function that will search for the text in the source file.
Some SO links
Filling an IFRAME with dynamic content from JavaScript
Read IFrame content using JavaScript