I am working on a bookmarklet and very near to finish it.
I got my earlier answer from open pop up after clicking bookmark link. Thanks to Treffynnon.
I have fetched Title, bookmarklet will fetch the current page information. I already fetched the title and passed it to the iframe using query string from js file. But I want to get all the images from the current page and want to show it on my iframe. Is this possible to pass images to the iframe in query string. Will the high size of query string effect it ?
Thanks
You can't pass the images content with JavaScript.
Possible solutions:
You can send all image URLs (but if the website doesn't support hotlinking, you won't see them on your website/iframe).
You can pass the page URL and grab its images by a server script.
Related
i have a problem in php..
i already stored video (arrow.S03E18.mp4) to my directory ex:C:/xampp/htdocs/telorbanget/media/ then i already write the path to mysql ex:http://localhost/telorbanget/media/arrow.S03E18.mp4
so, i have url in mysql now ex:http://localhost/telorbanget/media/arrow.S03E8.mp4
i want to put the url to my browser address bar so i can watch streaming this video through browser
can you guys help me to solve this problem?
thanks for answering..
Instead of showing it in the browser, you can actually embed the video in the same html page wherever you are trying to show this video.
Other way to do it is to write a php redirect whenever user clicks on another page (<a> tag).
I'm new to using the FB share buttons terminology so forgive me if I use the wrong syntax in describing this.
My site is setup to load pages based on the passed parameters in the URL (...?page=somepage&imageid=idnum).
So I have my index file which contains my head, as well as sidebar, etc. Then my main body is generated according to the passed parameter. Simple Enough.
On the homepage, the main body is a gallery of images. When they click on one of those images it takes them to a page that just displays that one image. The page is loaded with parameters of ?page=detail&image_id=1 /*or whatever the id of that image is */
So when they click on the share on FB button on those individual images page, I would like it to populate with the image that is displayed on that page. What I have done is included a php file in my head tag. The php script included gets the page info and passed parameters and then fills out the image url based on the imageid.
echo '<meta property="og:image" content="http://www.chiseledimages.com/clients/vote/'.$imgurl.'"/>';
This works in that when displaying the page source, the meta tag with og:image shows perfectly, also in that when I run it through the FB Object debugger, it gets the correct image and doesn't show me any errors. It even posts the correct image when the users shares on their wall. What is does not do, is show the correct image in the pop window after the uses presses the share button on my site. So even though the result is what I want, the problem with the user not seeing the correct image in the share pop-up, may lead them not to want to share on their wall.
Current location of site: http://www.chiseledimages.com/clients/vote/
Example of a specific pages: http://chiseledimages.com/clients/vote/?page=detail&angel_id=1
Screenshots of pop-up with wrong image, but final posted story having correct image.
How can I make the image in the pop-up match the image that is going to be shared. Thanks.
Edit: I forgot to mention and I'm sure it matters that I'm using Addthis to implement the FB share.
Check https://developers.facebook.com/docs/reference/dialogs/feed/ - look for the 'picture' parameter description
I suggest to you use this http://support.addthis.com/customer/portal/articles/1365475-attribute-based-configuration#.UwPQB6LW6So. just follow their example and you good to go.
I'm using facebook share functionality on my site via the following anchor-
<a href="//www.facebook.com/sharer/sharer.php?u='<URL W/ QUERY STRING>'" target="_blank">
The thumbnail image for the share is set via a value in the query string.
Trouble is, when I share via the above link, facebook pulls the wrong image for the share.
This is in spite of the following:
The correct image is present in the meta og:image tag of the header
The FB debugger pulls the correct image and returns no errors.
When the anchor tag is clicked a SECOND time, the correct image is pulled and is correct from then one for that url
The behaviour can be reproduced here
http://www.z100.com/pages/contest/quiz/match.php?match&key=Taylor+Swift&139f8787897
attempting to share 2x( thus witnessing how the 2nd time works)
and then navigating to a different query string
http://www.z100.com/pages/contest/quiz/match.php?match&key=Demi+Lovato&139f8787897
and witnessing the same issue
Any ideas on why this would be? Thanks
Am working in a wordpress project. It uses many fash images. When right clicking on the flash image, the first option takes the user to another website. How can i remove it?
That would have been set up as a parameter of the swf by the Flash dev.
If you don't have access to the .fla source files you can try setting the menu parameter within your swf embed code to false.
Have a look here: http://kb2.adobe.com/cps/127/tn_12701.html
I need help writing javascript (jquery?) for a web app to save a set of images to an IndexedDB and then load them into an html page.
I have two html pages, img.html that is just a listing of images in this format:
'image-id','base64-image'
and index.html, my main page that includes a series of image tags in this format:
<img name="imglist" id="image-id" img-src="">
I'd like the user to be able to click a button to load all of the images from img.html into IndexedDB and then click another button to read the images from IndexedDB and insert them into the appropriate image tag in index.html (the 'image-id' in img.html corresponds to the appropriate img tag id in index.html).
Also, is it possible to set a cookie (or some other method) that will cause the DB to be erased after a certain time period? I'd like to be able to force the user to re-load the images from the server about once a week.
I'm not great with javascript or indexeddb, so any help or examples would be great.
See the article titled Storing images and files in IndexedDB.
N.B. I just posted a similar question here, though it concerns the particular case of a cross-site request. If your requests are on the same site, the link above should be a perfect example for you to work by.