Posts

playframework 2.0 - Using external URL in Play framework script tag -

how can refer external urls script tag in view? have view html file in play framework project , want refer external urls javascript part. here have! <div id=”twitter_update_list”> <script type=”text/javascript” src=”http://twitter.com/javascripts/blogger.js”></script> <script type=”text/javascript” src=”http://twitter.com/statuses/user_timeline/xxxxxx.json?callback=twittercallback2&count=1″></script> </div> this fails when rendered in browser. how refer external sites? there no such thing play framework script tag, that's straight html script tag. anyway, if have copied code is, problem double quotes, unicode right double quotes, ”, see how slanted right? that's not valid html. replace them ascii double quotes: ". emphasise difference, here side side: ” " if that's not problem, describe mean "fails". there error messages displayed? shown in developer console? can see ...

html - Specify dimensions for canvas element in jQuery -

see below code. how specify width , height within these lines? specifying width , height using css not work. wrapper.append( $('<canvas />', { class: 'canvasclass', id: 'celement' }) ); since canvas accepts width , height attribute try use, wrapper.append( $('<canvas />', { class: 'canvasclass', id: 'celement' ,width:200, height:200 }) );

c++ - Why are there two extra calls to destructor as I have created only two objects and using overloaded assignment operator and increment operator -

#include <iostream> using namespace std; class loc{ int ival; public: loc(int i){ cout<<"inside parameter constructor"<<endl; ival = i; } loc(){ ival = 0; cout<<"inside default constructor"<<endl; } loc operator+(loc ob1){ loc temp; temp.ival = ival + ob1.ival; return temp; } void show(){ cout<<ival; } loc operator++(){ cout<<"inside pre increment"<<endl; ++ival; return *this; } loc operator++(int x){ cout<<"inside post increment"<<endl; ival++; return *this; } loc operator=(loc &ob){ cout<<"inside assignment"<<endl; ival = ob.ival; return *this; } ~loc(){ cout<<this->ival<<endl; cout<<"inside loc destructor...

javascript - Replace a button with another on hover not working jQuery -

i have 2 buttons, , want display 1 button displayed @ time on hover, button replaced , first button on mouseout. i came out following piece of code on hover keeps going , forth between 2 buttons, best way ? $(document).ready(function() { $('.price').on('mouseover',function() { $(this).css('display','none'); $(this).next('.buy').css('display','block'); }); $('.price').on('mouseout',function() { $(this).css('display','block'); $(this).next('.buy').css('display','none'); }); }); <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"/> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script...

ruby - How does Twitter Format their Weekly Summary Email and how to format those tweets in email in rails? -

Image
i having twitter application,according application, wanted send tweets user's email address daily using website. problem tweets not formatted in proper twitter format. wanted send them tweets in mail same mail twitter @ end of week(here's what's trending on twitter week.) embedding tweet not working, since javascript not working. see attached image

ebay - FindItemsByKeywordsRequest on Sandbox returns no search items; Finding API -

hi new ebay programming. part of unit testing, running search request on sand box using finditemsbykeywordsrequest. request not return items provides link itemsearchurl. when paste url in browser many items. using same code , same search term able list of items live ebay sites. has came across same issue before?

javascript - Angular js - order by not working on multidimensional array -

i not able sort multi dimensional array using angular js filter, please find code in link below. http://plnkr.co/edit/dpzl1rafhjjog5odf1qc?p=preview <body ng-controller="mycontroller"> <ul> <li ng-repeat="item in items|orderby:items.node_id:1">{{item.node_id}} - {{item.basic.readable_date}}-{{item.node_id}} </li> </ul> </body> orderby works arrays . since you're using object in ng-repeat - i'm quite surprised possible - orderby doesn't anything. have @ this plnkr .