Can I create pinterest share without pin it button? I had try using these but it seem fail.
Pin it
Pin it
Is there any way I can create a pinterest share link without pin it button?
Try making your hyperlink url like this, this worked for me
string url = "http://pinterest.com/pin/create/button/" +
"?url=" + "your link" +
"&media=" + "link to youre image" +
"&description=" + "your description";
both media and description can be blank so you could do
string url = "http://pinterest.com/pin/create/button/" +
"?url=" + "" +
"&media=" + "" +
"&description=" + "";
to test it out
in my code im calling a redirect after a button press but i think this should work for you.
Related
I have a whatsapp share button that shares the current URL (using window.location)
waCurrentPage = function() {
return encodeURI("whatsapp://send?text=Lets go here: " + 'http://' + window.location.hostname + window.location.pathname + window.location.search);
}
Button
<a class="btn btn-social-icon btn-whatsapp" href="javascript:window.location=waCurrentPage();">Whatsapp share this list</a>
I can see that from the browser side it's sending the correct URL...
...but when it gets to the whatsapp side it has cut off the second parameter
Anyone have an idea how I could fix it?
I need javascript code to detect play button of video on web-page in web-view and start downloading on click of button in android web-view
I have used javascipt code to solve this issue it download video but didn't play in web-page stuck video play button in website
page.loadUrl("javascript:(function prepareVideo() { "
+ "var el = document.querySelectorAll('div[data-sigil]');"
+ "for(var i=0;i<el.length; i++)"
+ "{"
+ "var sigil = el[i].dataset.sigil;"
+ "if(sigil.indexOf('inlineVideo') > -1){"
+ "delete el[i].dataset.sigil;"
+ "console.log(i);"
+ "var jsonData = JSON.parse(el[i].dataset.store);"
+ "el[i].setAttribute('onclick', 'FBDownloader.processVideo(\"'+jsonData['src']+'\",\"'+jsonData['videoID']+'\");');"
+ "}" + "}" + "})()");
page.loadUrl("javascript:( window.onload=prepareVideo;"
+ ")()");
I need javascript code that when I click on video default button to play so video starts playing and by clicking on other button defined by me to start download file
I've the following code working properly which opens a pdf downoloaded in the same window:
jQuery('<form action="'+ url +'" method="'+ (method||'post') +'">'+inputs+'</form>')
.appendTo('body').submit().remove();
I'd like open the pdf in a new tab or window.. How can I change the appendTo in order to achieve it?
Thanks in advance!!
You can set target="_blank"
jQuery('<form target="_blank" action="' + url + '" method="' + (method || 'post') + '">' + inputs + '</form>')
.appendTo('body').submit().remove();
Add target='_blank' attribute into forms.
target="_blank"
I think you can use $.ajax or $.post to get pdf url and you can use window.open() to open this url in new tab:)
Here is the custom twitter icon code:
HTML:
<i id="twitter_share" class="fa fa-twitter fs20" style="position: relative; bottom: 4px;"></i>
And Jquery:
$('#twitter_share').click(function (e) {
e.preventDefault();
var loc = "<?= base_url(uri_string()); ?>";
var title = "<?= $video->title; ?>";
window.open('http://twitter.com/share?url=' + loc + '&text=' + title + '&', 'twitterwindow', 'height=450, width=550, top=' + ($(window).height() / 2 - 225) + ', left=' + $(window).width() / 2 + ', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0');
});
It works fine with the url and title. The problem is , how can I share one image as well?
Thanks a lot for helping.
Update: reference in facebook
in facebook I can share the content like this, can it be done in twitter as well? Thanks.
!
The image comes from your HTML markup, which is scraped by twitter when someone tweets your url.
Twitter refers to the collection of meta info accompanying a tweet as a card, which they need to approve before it will appear on the network.
Have a good read through the Twitter Cards Developer page
Select an appropriate card (summary_large_image is a good one) and include the appropriate twitter meta tags in the head of your HTML
Validate your card on the Cards Validator page
Once your domain has been whitelisted any tweets with your url will also include your card
I searched a little bit for a solution and one Solution is to use Twitter Cards
Maybe this thread will help you Twitter - share button, but with image
My htaccess file nomenclature creating problem in opening a window in IE
EDITED
I have to open a colour picker which needs t be opened in popup, and I have
window.open('picker.html', null, "help=no,status=no,
scrollbars=no,resizable=no,toolbar=
no" + move + ",width=" + w + ",height=" + h + ",dependent=yes", true);
my base url goes like this:
http://www.mydoamin.com/
and the htaccess file has rewritten the above url from http://www.mydomain.com/30/
but when i wish to open the popup in IE the htaccess doesnt work for it and gives me url as http://www.mydomain.com/30/picker.html
and hence i get msg as broken link or NOT FOUND
there is no such folder called "30" the path has to be like http://www.mydomain.com/picker.html
The rewrite rule of the particular page goes like this:
RewriteRule
^30/order-vinyl-banners.html
order_form.php?id=30 [NC]
why is it happening..
please help me to track it..
If you want to show http://www.example.com/picker.html, you need to tell the open() function so. Right now you're telling it "Open the URL picker.html relative to where I'm currently at", but you want "Open picker.html relative to the root". Try this instead:
window.open('/picker.html', null,
"help=no,status=no,scrollbars=no,resizable=no,toolbar=no"
+ move + ",width=" + w + ",height=" + h + ",dependent=yes", true);