Posts

Showing posts from April, 2011

java - Why HTMLUnit always shows the HostPage no matter what url I type in (Crawlable GWT APP)? -

here full code public class crawlservlet implements filter{ public static string getfullurl(httpservletrequest request) { stringbuffer requesturl = request.getrequesturl(); string querystring = request.getquerystring(); if (querystring == null) { return requesturl.tostring(); } else { return requesturl.append('?').append(querystring).tostring(); } } @override public void destroy() { // todo auto-generated method stub } @override public void dofilter(servletrequest request, servletresponse response, filterchain chain) throws ioexception, servletexception { httpservletrequest httprequest = (httpservletrequest) request; string fullurlquerystring = getfullurl(httprequest); system.out.println(fullurlquerystring+" wrong"); if ((fullurlquerystring != null) && (fullurlquerystring.contains("_escaped_fragment_"))) { // remember unescape %xx characters fullurlquerystring=urldecoder.decode(f...

sql - script data table content into insert statements using one command -

i have create script insert statement 1 table in database few times day. it looks more or less this: task -> generate scripts -> choose table -> choose data -> choose file name , ok is there way automate this? have example bat file work , updates file newest version of database table. you want dump data in table text file periodically? if so, using ssis package , scheduling job.

javascript - Calculate width for each list item with jquery -

i need new jquery function line of css now: #progressbar li {width: calc(100% / 5); /* divide number of steps */} this jquery code created not work: var count = $("#progressbar").children().length result = parseint(100) / parseint(count); $( "#progressbar > li" ).css( "width", "result%" ); this set width of multi-page form progress bars forms of varying lengths , steps. thanks! edit: thanks all. working now, if have better way let me know. creating several new forms online. have first 2 linked here: http://new-site.autouplinktech.com/forms/form-video360.html http://new-site.autouplinktech.com/forms/form-inteliphoto.html i running lot of issues implementing jquery validation on forms since uses multi-step show each fieldset separately, can topic of post here. $( "#progressbar > li" ).css( "width", "result%" ); should be: $( "#progressbar > li" ).css( "width...

php - correct regex synthax in custom bbcode apllication -

i wish integrated prism synthax highlighter custom built php/mysql cms; having issues regex synthax. wish accomplish: allow users post text alone, or code , text never code alone. code may preceded text or text may included after code. my php code below: function bbcode2html($var) { // [code] $var = preg_replace('/\[code](.+?)\[\/code]/si', '<section class="language-markup"> <pre><code>$1</code></pre> </section>', $var); return $var; } $var = '[code]<!doctype html>[/code] text'; // verify content input if(!preg_match("/(w+?)|\[code](.+?)\[\/code]/si", $var)) { echo 'the code tags can not empty!'; } elseif(!preg_match("/(w+?)|\[code](.+?)\[\/code](w+)/si", $var)) { echo 'your post contains code, please add text'; }else{ echo $var = bbcode2html(htmlentities($var));} with present code above, have observed following: w...

java - Combine elements from ArrayLists -

i know answers have been provided similar questions, none of them seemed suitable issue. i'm making program generate images granny squares, or squares have different color rings on inside. the user able select how many rings there are, , therefore number of colors necessary change. therefore, cannot use nested loops go through each color number of loops have change. there way can create combinations these colors? for example, if used colors white, blue, , green, following combinations white, white, white; white, white, blue; white, white, green; white, blue, white; etc. there way accomplish without nested loops? here algorithm achieves using recursion. public static void combine(list<character> colors, list<character> combination) { if (combination.size() == colors.size()) { system.out.println(combination); } else { (char color : colors) { combination.add(color); combine(colors, combination); co...

devise - A Rails app where the User is also a "something else", not sure how to word this correctly -

i working on rails app data model involves following: companies , have_many restaurants restaurants , have_many reservations customers , mave_many reservations my confusion comes fact there 3 distinct types of users: an employee of company , can see admin dashboard showing data on of restaurants company owns/manages the restaurant (which will, in theory, have dashboard open day, , should able log own dashboard, not able see other restaurant's dashboard) the customer, has ui make reservation @ restaurant should restaurant type of user ? should each restaurant it's own standard user-login access specific restaurant? if case, restaurant have_one user , , can use cancancan restrict users can access restaurant restaurant's id == user.restaurant.id ? this first app addressed atypical user types, i'm @ complete loss on this. guidance/best practices on how address situation appreciated! additionally, use devise user model(s). thanks! i say,...

excel - lessen loading or processing Time in VBA -

i have small code cuts , pastes cell cell if cell has empty adjacent cell. every time run code, takes more minute finish entire column. here's small code. sub movecell() dim range each in range("b10:b1000") if <> "" if a.offset(0,2) = "" a.cut a.offset(0,4) end if end if next end sub is there way around code? setting application.screenupdating = false before loop , application.screenupdating = true after loop should stop screen flashing , may improve time slightly.

actionscript 3 - AS3 External .as Class Cannot Access Stage -

i've looked everywhere , me cannot find answer this, i'm sure it's quite simple... i have file main.fla (download below runner.fla) movie clips floor , runner on stage, , abdomen , legs inside of runner , many more smaller movie clips inside of abdomen , legs. under properties have "core" without quotations typed class field. have file called core.as of source code. every time execute (test build) either file program window opens normal numerous errors how runner , floor undefined. suppose have import them somehow core.as, can't figure out how. edit: download links: runner.fla: https://www.dropbox.com/s/7rencmi801pwfki/runner.fla core.as: https://www.dropbox.com/s/pt0lnuj2b3jolej/core.as note code not functional. know doesn't work , going blow up, need in dealing initial undefined errors, can deal other stuff. there's no code in runner.fla except commented out stuff. , vesper, can clarify mean should put code in timeline? mean in stage in ru...

c# - No Source Available while debugging -

Image
) i copied website 1 computer computer. works fine not able debug it. the description of image says looking in script documents 'd:\projects\golden plaza\asodnsfcore\applogic.cs'' this location not there in computer not 1 copied it. it aspdotnetstorefront website. not sure if typo have directory asodnsf rather aspdnsf in path. the applogic.cs file live in aspdnsfcore files. make sure have copied parent folder on instead of root (web) folder. this, along other source code files, in directory above. if still fails login account @ vortx (aspdotnetstorefront's site) , download full source files , copy them over. source code files live in parent directory reference rebuilding library amend dll files sit within root (web) folder. and make sure bindings within iis on machine copied point correct path.

c# - Can we make a public var variable that is accessible to all functions? -

i want make var variable accessible across functions ? how can make tried public var gives error? if want have variable accessible across methods in call, you'll have move out of method it's in , move class level. can make in private prevent other classes getting it, can't have method variable available outside of method.

c# - Invoke calls involving WPF controls hosted with WinForm forms never return -

i have windows forms program hosts several wpf controls. test execution tool. have come across issue invoke calls never return. happening 1 of tests plans written 1 of our users. the problem happens @ different invokes throughout program. 2 examples: winform.invoke(new action(() => wpfcontrol.datacontext = something)); application.current.dispatcher.invoke(new action(() => result.container.clear())); the thread calling invoke never returns invoke. expected there deadlock gui thread, gui thread executing fine. interestingly, winform controls behaving normally, no wpf controls respond user. none of other worker threads seem blocked. two questions come mind: does have debugging suggestions? why wpf controls blocked winform controls work fine? edit: should have mentioned may race condition of sort. seen infrequently , after application has been working while. i don't know going on, have little information here go on. should either dotpeek or reflecto...

excel - Creating a Timestamp VBA -

need macro: private sub worksheet_change(byval target range) if target.column = 2 application.enableevents = false cells(target.row, 3).value = date + time application.enableevents = true end if end sub sub deletecells() each cell in range("b3:b25") if isblank(cell.value) cell.offset(0, 1).clear end if next end sub the purpose of macro create timestamp. first macro works fine. if row b filled in, timestamp created in row c. however, delete cells function isn't working. want if deletes cell in row b, timestamp deleted. try this: private sub worksheet_change(byval target range) dim rng range, c range 'anything in colb? set rng = application.intersect(me.columns(2), target) if rng nothing exit sub 'nothing process... application.enableevents = false 'could >1 cell, loop on them... each c in rng.cells 'skip cells errors if c.row>=3 , not iserror(c.value) '<...

.net - C# StringBuilder with Quotes (forJSON) -

i have build json string (to posted web service), , used c# stringbuilder class this. problem is, when insert quotes, stringbuilder class escapes them. i building json string such: stringbuilder datajson= new stringbuilder(); datajson.append("{"); datajson.append(" " + convert.tochar(34) + "data" + convert.tochar(34) + ": {"); datajson.append(" " + convert.tochar(34) + "urls" + convert.tochar(34) + ": ["); datajson.append(" {" + convert.tochar(34) + "url" + convert.tochar(34) + ": " + convert.tochar(34) + domain + "/" + path[0] + convert.tochar(34) + "}"); datajson.append(" ,{" + convert.tochar(34) + "url" + convert.tochar(34) + ": " + convert.tochar(34) + domain + "/" + path[1] + convert.tochar(34) + "}"); datajson.append(" ]"); datajson.append(" }"); datajson.append("}"); ...

javascript - Audio shows 'Invalid source' when linking to a file on local machine using FileOpenPicker -

i'm trying write js windows app. have button on first page, , click event handler code follows: function picksingleaudiofile(args) { document.getelementbyid("output").innertext += "\n" + this.id + ": "; // create picker object , set options var openpicker = new windows.storage.pickers.fileopenpicker(); openpicker.viewmode = windows.storage.pickers.pickerviewmode.thumbnail; openpicker.suggestedstartlocation = windows.storage.pickers.pickerlocationid.musiclibrary; openpicker.filetypefilter.replaceall([".mp3"]); // open picker user pick file openpicker.picksinglefileasync().then(function (file) { if (file) { // application has read/write access picked file winjs.log && winjs.log("picked file: " + file.name, "sample", "status"); document.getelementbyid("output").innertext += "you picked " + file.n...

asp.net - Two instances of the same Website on IIS with different web.config (two different databases) -

i want implement kind of configuration of same website ( www.example.com ) on iis want have 2 instances 2 application pools 1 instance located at: c:\site1 and second 1 located at c:\site2 both sites 100% equal exception of database connection string, each 1 pointing different database server. so in dns pointing www.example.com , on iis each instance point www.example.com . i'm doing way because need restore database daily new information in current scenario have stop application, restore database , restart application website goes offline every time this. so thinking way can stop site1 restore database restart site , same site2 rather duplicate websites, can have 2 databases e.g. db1 , db2. if db1 active (configured in web.config), restore db2. then, update web.config point db2. active requests complete using old configuration (pointing db1), new requests use new configuration (pointing db2). update based on heavy startup cost, can instead cre...

ibm mobilefirst - How to retrieve images from existing database using sql/http adapter from worklight application -

i'm having existing database , have show list of images in worklight application user can select , adds cart. the image column in database having path of images @ server. i.e "memory/toppings/nuts/hazelnuts.jpg" "memory/toppings/nuts/macadamia_nuts.jpg" so how these images , show on worklight application. what should concatenate server url , image path after retrieve database. lets in database store this: "/uploads/original/6/63935/1570735-master_chief.jpg", concatenation this: var url = "http://static.comicvine.com" + response.invocationresult.resultset[0].profileimg; $("#img1").attr("src", url); below working example. upon clicking button, sql adapter procedure invoked , returns url stored in database. url inserted pre-existing img tag's src attribute, gets displayed. you need take implementation , alter fit needs. html: <input type="button" value="insert image...

r - Precision: (1-1e-17)==1 -

what's precision of r? can change it? find (1-1e-16)==1 false, (1-1e-17)==1 true. i tried calculate x = 1e-17 q1 = qnorm(x) q2 = qnorm(1-x) theoretically q1==-q2 , output of r > x=1e-17 > qnorm(x) [1] -8.493793 > qnorm(1-x) [1] inf any way avoid such difference? floating point precision depends on system. can relevant information help(".machine") . e.g., double.eps "the smallest positive floating-point number x such 1 + x != 1". .machine$double.eps #[1] 2.220446e-16 and double.neg.eps "a small positive floating-point number x such 1 - x != 1". .machine$double.neg.eps #[1] 1.110223e-16

liferay - Use a web content portlet -

i using web content portlet develop portal. each page has common theme (which includes header , footer) , have many portlets placed on each page. one of portlet on right side menu common on many pages. i have kept part of theme menu can subject change in future , end user handling portal non-developer. if want change data in menu portlet, have change on every page leads duplication of effort. like said, since end user non-developer, cannot make portlet part of theme. so there way 1 web content portlet created once , used on many pages? you can embed web-content in theme per link here articleid in above link, can set in theme-setting, refer link

echo - Putting fetched array into <a href> value in PHP -

i have sql query statement return particular set of result. such id, names, price. have no problem that. however trying add link within echo loop , set id value can post page. possible ? while ($row = mysql_fetch_array($result)) { echo "".$row{'url'}."<br>"; echo "name:".$row{'name'}."<br>"; echo "price: $ ".$row{'price'}."<br>"; echo '<div class = "qwerty" data-countdown= '.$row{'time'}.'></div>'; echo "location:".$row{'location'}."<br>"; echo "description:".$row{'description'}."<br>"; echo ''.$row{'id'}.''; echo '<a href="" onclick="jsscript()">show comments</a> <form id="displaycomments" style="display:none" target="jsscript(...

html - Navigation Bar disappears upon window resizing -

i trying build first website, , using html5/css3, have come across issue i'm sure solved struggling. my homepage working desired apart nav bar, when shrink window down, elements such hgroup, footer, , main sections become scrollable. my nav bar disappears when either: a. zoom in b. make window small enough. is solved? many thanks heres html(please forgiving, i'm real newbie): <!doctype html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/style.css" type="text/css"> <title>worthworks signage</title> </head> <body> <div id="container"> <!--wrap entire document--> <header> <a href="index.html"> <img class="logo" src="images/logos/300pxbluegradient.jpg" alt="worth works signage"> </a> <hgroup...

java - Spring : BeanFactory not initialized or already closed -

when adding cacheclients.xml file in applicationcontext.xml getting below exception java.lang.illegalstateexception: beanfactory not initialized or closed - call 'refresh' before accessing beans via applicationcontext @ org.springframework.context.support.abstractrefreshableapplicationcontext.getbeanfactory(abstractrefreshableapplicationcontext.java:170) @ org.springframework.context.support.abstractapplicationcontext.destroybeans(abstractapplicationcontext.java:921) @ org.springframework.context.support.abstractapplicationcontext.doclose(abstractapplicationcontext.java:895) @ org.springframework.context.support.abstractapplicationcontext.close(abstractapplicationcontext.java:841) @ org.springframework.web.context.contextloader.closewebapplicationcontext(contextloader.java:579) @ org.springframework.web.context.contextloaderlistener.contextdestroyed(contextloaderlistener.java:115) @ org.apache.catalina.core.standardcontext.listenerstop(standa...

java - Extending implementations for GWT JRE emulation -

there couple of cases add/modify 1 method of gwt's implementation of jre class (see class.isinstance or system.arraycopy , example). as gwt improved, other methods in same classes might updated, rather not take current implementation of entire class, modify it, , stick in super-source directory, have check significant changes in these files every time new version of gwt released. i prefer extend existing gwt implementation , override 1 method change. possible somehow? this might help: deferred binding using replacement the first type of deferred binding uses replacement. replacement means overriding implementation of 1 java class determined @ compile time. example, technique used conditionalize implementation of widgets, such popuppanel. use of popuppanel class shown in previous section describing deferred binding rules. actual replacement rules specified in popup.gwt.xml, shown below: http://www.gwtproject.org/doc/latest/devguidecodingbasicsdeferred.html ...

c++ - Template specialization containers -

i open question code sample: template <template <class, class> class container> class schedule { public: schedule& print( std::ostream& os); private: container<course*, std::allocator<course*> > courses; }; // implement funcion print: template <template <class, class> class container> schedule<container>& schedule<container>::print(std::ostream& os){ std::sort(courses.begin(), courses.end(), sor_con()); std::for_each(courses.begin(), courses.end(), printcontainer(os)); return *this; } template<> schedule<std::list>& schedule<std::list>::print(std::ostream& os){ courses.sort(sort_con()); std::for_each(courses.begin(), courses.end(), printcontainer(os)); return *this; } the schedule class contains template classes ( std::list / std::vector ) only. because...

Google API for android crashed and I doing any thing right -

i'm trying develop app google maps api. i'm followed this tutorial step step , app crashed! i tried many tutorials, this one , same error: 05-18 00:53:16.466: e/androidruntime(17073): fatal exception: main 05-18 00:53:16.466: e/androidruntime(17073): java.lang.runtimeexception: unable start activity componentinfo{com.example.googlemaps/com.example.googlemaps.mainactivity}: android.view.inflateexception: binary xml file line #6: error inflating class fragment 05-18 00:53:16.466: e/androidruntime(17073): @ android.app.activitythread.performlaunchactivity(activitythread.java:2295) 05-18 00:53:16.466: e/androidruntime(17073): @ android.app.activitythread.handlelaunchactivity(activitythread.java:2349) 05-18 00:53:16.466: e/androidruntime(17073): @ android.app.activitythread.access$700(activitythread.java:159) 05-18 00:53:16.466: e/androidruntime(17073): @ android.app.activitythread$h.handlemessage(activitythread.java:1316) 05-18 00:53:16.466: e/androidruntime(...

sql - Subquery returns more than 1 row i dont know -

when trying "tytul" field catch error select f.*, (select max(e) seriale s = max(k.s) , id_serialu = f.id) e, max(k.s) s, (select tytul seriale c c.s = s , c.e = e) tytul serial f left join seriale k on f.id=k.id_serialu group f.id order f.id desc limit 25 i think need aliases in subquery. (select tytul seriale c c.s = f.s , c.e = f.e) tytul if don't that, s , e sought in closest scope, c , query interpreted as: (select tytul seriale c c.s = c.s , c.e = c.e) tytul this returns more 1 row, since returns in table. but aliases, of course work, if got @ 1 row per combination of s , e in seriale .

javascript - Is my Facebook canvas app displaying the login dialog? -

is facebook canvas app displaying login dialog automatically upon arrival? want buti have been fighting quite time. have page tab apps feed off of same canvas url , these indeed displaying login dialog app automatically in in pop-up. clear browsers cookies when test. using javascript , facebook sdk build app godaddy website builder; can use php website builder? my app- https://apps.facebook.com/{my_app}/ code in head section <meta property="og:type" content="emoticon_app_x:app"> <meta property="fb:app_id" content="{my app id}"> <meta property="og:title" content="emoticon app. x"> <meta property="og:description" content="easy use copy , paste emoticons facebook."> <meta property="og:url" content="https://apps.facebook.com/{my_app}"> <meta property="og:image" content="https://nebula.wsimg.com/b270c0b24507a5a9018ec56c5495796...

android - Broadcast receiver not unregistering -

i want give user ability unregister/register broadcast receiver click of button. when button pressed first time, broadcast receiver registered , toast comes when device connected. my problem when press button again, broadcast reciever not unregistering specified. can please check if there wrong mylogic, or explain me if there approach detecting when usb unplugged/plugged in? thank you. btn.setonclicklistener(new view.onclicklistener() { broadcastreceiver receiver = new broadcastreceiver() { public void onreceive(context context, intent intent) { int plugged = intent.getintextra( batterymanager.extra_plugged, -1); if (plugged == batterymanager.battery_plugged_usb) { toast.maketext(getapplicationcontext(), "connected usb", toast.length_short).show(); } if (plugged != battery...

java - A JSONObject text must begin with '{' -

i have '{' @ beginning, here json file { "rooms": [ {"x":1}, {"y":1} ] } maybe can't read file? here's code: jsontokener tokener = new jsontokener("res/map.json"); jsonobject test = new jsonobject(tokener); jsontokener tokener = new jsontokener("res/map.json"); this doesn't read file res/map.json . tries tokenize string "res/map.json" json. since string isn't json, doesn't work. if want read file, try passing in java.io.filereader : jsontokener tokener = new jsontokener(new filereader("res/map.json"));

html - Javascript add onclick unsuccessful -

my script : function $(attr){ if(attr.charat(0) == "#"){ return document.getelementbyid(attr.substr(1)); }else{ if(attr.charat(0) == "."){ return document.getelementsbyclassname(attr.substr(1)); }else{ return document.getelementsbytagname(attr); } } } object.prototype.onclick = function(script){ this.onclick = script; } $("#hi").onclick(function(){alert("hi");}); in html it's label id hi . when click button, nothing happened. should do? extending object bad practice, wouldn't recommend it. in modern browsers want easy, can use queryselectorall , , add events addeventlistener : // iife (immediately invoked function expression) var $ = (function() { // constructor function $(selector) { // queryselectorall returns pseudo-array this.el = toarray(document.queryselectorall(selector)); } // elements array or element index $.prototy...

c# - whats wrong with this code??(c1.CommandText = "insert into stu values='" + textBox1 + "','" + textBox2 + "'";) -

hi write simple code in c# insert name on sqldatabase this full code i have error unable connect on server namespace csharpproject { public partial class from2 : form { public from2() { initializecomponent(); } private void button1_click(object sender, eventargs e) { string s1 = "data source=.;initial catalog=test1;integrated security=true"; sqlconnection sc1 = new sqlconnection(s1); sqlcommand c1 = new sqlcommand("",sc1); c1.commandtext = "insert stu values='" + textbox1 + "','" + textbox2 + "'"; try { sc1.open(); if (c1.executenonquery() == 1) { messagebox.show("successes"); textbox1.focus(); } else { messageb...

java - Showing google maps in activity (not MainActivity) -

i'd show google map in android application. found en example tested me putting in main activity. works without problems. improve app i'd outsource map in activity (called displaymapactivity). when button "show map" clicked, map activity called. app crashes , nullpointer exception. my project example.com.lbsapp2 , here code: mainactivity.java: public void openmap(view view) { intent intent = new intent(this, displaymapactivity.class); startactivity(intent); } this called when clicking on button. should open map. activity_main.xml: <framelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.lbsapp2.mainactivity" tools:ignore="mergerootframe" /> fragment_main.xml: <linearlayout xmln...

regex - Regular expression to add 0s to beginning of string -

this question has answer here: adding leading zeros using r 7 answers i'm new regular expressions , i'm have trouble putting them @ moment. i'm working r @ moment, , i'm looking ensure strings in character vector of length 3. so have character vector of following: ['1','23','113'] what regular expression able use ensure length of each string 3 , in cases less, add 0's start? so output looking be: ['001','023','113'] an explanation alongside answer appreciated, thanks. edit: length of strings in character vector greater or equal 1 , less or equal 3. instead of regex, @ sprintf function: x <- c(1, 23, 113) x # [1] 1 23 113 sprintf("%03d", x) # [1] "001" "023" "113" as dealing character vector, need use as.numeric first: x ...

mysql - making strsql from sql with different tables -

so need make strsql 1 : strsql = "select " strsql = strsql & " tblclips.fldclipid, " strsql = strsql & " tblplatenfirma.fldplatenfirmaid, " strsql = strsql & " tblclips.flduitvoerder, " strsql = strsql & " tblclips.fldtitel, " strsql = strsql & " tblplatenfirma.fldnaam" strsql = strsql & " " strsql = strsql & " tblclips " strsql = strsql & " inner join tblplatenfirma " strsql = strsql & " on tblclips.fldplatenfirmaid = tblplatenfirma.fldplatenfirmaid" strwhere = "" but got sql code don't understand result can't make strsql, need school project , got few days left. sql don't understand: select tbluurroosterleerkracht.flduurroosterleerkrachtid uurroosterid, tblklas.fldnaam klas, tbllokaal.fldnummer hoofdlokaal, tblvak.fldvak vak, tbllokaal_1.fldnaam leslokaal, tbllokaal_2.fldbeschikbaar beschikbaar, tblleerkracht....

swing - Java - Custom JTabel show weird text -

i making application show data. won't. show weird string , said jeremy.itemsdata@33f1ca93 , table cell show jeremy.itemsdata@427a9389 . here code. got code somewhere , modify because dont want application that. public class jtables extends jframe { private static final long serialversionuid = 7866940189661427857l; public jscrollpane scroll; public jtable table; private list<itemsdata> items; public jtables(list<itemsdata> i) { items = i; initgui(); } private void initgui() { items.add(new itemsdata("justtesting", null, null, null, null, null, null)); scroll = new jscrollpane(); table = new jtable(new jtablesmodel(items)); setdefaultcloseoperation(jframe.dispose_on_close); table.setdefaultrenderer(itemsdata.class, new jtablescell()); table.setdefaulteditor(itemsdata.class, new jtablescell()); table.setrowheight(292); scroll.setviewpor...

google apps script - get message id/unique id of a mail in gmail contextual gadget -

i trying write gmail contextual gadget. ready building blocks (services , gadgets, manifest.repositories...) basic hello world working fine. to simplify lets say, " i have mark favorite " functionality in widget i needing store (in sql database) object against marked favorite mails. and mails open, widget load , want make ajax call database , check if "this particular mail" favorite mail or not. ques : require unique message id in java-script whenever user marks email favorite. store unique message id in favorite list in database. the manifest <?xml version="1.0" encoding="utf-8" ?> <applicationmanifest xmlns="http://schemas.google.com/applicationmanifest/2009"> <!-- support info show in marketplace & control panel --> <support> <!-- url application setup optional redirect during install --> <link rel="setup" href="https://www.google.com" /> <!-- url a...