Posts

Showing posts from June, 2015

wordpress - Get custom field value but hide first 19 and last 2 characters -

geeks , code gods, i having issue wordpress code. have added 3 columns dashboard's pages screen. one of displays custom field 'scode' . scode custom field holds cart66 shortcode adds 'add cart' button page assigned to. the shortcode looks this: [add_to_cart item="hd-nl-7010"] each page has different shortcode. every shortcode same length, 31 characters long. however id prefer not show whole shortcode in column, product code *hd-nl-7010* section of code. is possible hide first 19 , last 2 characters. removing [add_to_cart item=" , "] below code added function.php add custom columns pages table: function test_modify_post_table( $column ) { $column['scode'] = 'product code'; $column['price'] = 'price'; $column['product_image'] = 'image'; return $column; } add_filter( 'manage_pages_columns', 'test_modify_post_table' ); function test_modify_po...

'NSInternalInconsistencyException' - unable to push uitableviewcontroller on uinavigationcontroller ios 6 -

Image
i pushing uitableviewcontroller navigation stack. code works fine in both ios 4.3 , 5 crashes in ios 6. exception is: terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: '-[uiviewcontroller _loadviewfromnibnamed:bundle:] loaded "menucontroller" nib view outlet not set.' i know exception raised when view outlet not set. outlet set automatically ib can see in figure, still same. doing wrong? simple code pushing controller: menucontroller *menu = [[menucontroller alloc] initwithstyle:uitableviewstyleplain]; menu.title = @"watches"; menu.menutobedisplayed = @"main menu"; [self.navigationcontroller pushviewcontroller:menu animated:yes]; stack trace is: 0 corefoundation 0x01f3e02e __exceptionpreprocess + 206 1 libobjc.a.dylib 0x01a12e7e objc_exception_throw + 44 2 corefoundation 0x01f3ddeb +[nsexception rais...

c - Cannot access ifreq structure definition, __USE_MISC macro undefined -

i trying compile following single c file (called main.c): #include <stdio.h> #define __use_misc 1 #include <net/if.h> int main(int argc, char **argv) { ifreq id_ifreq; fprintf(stdout, ">>>>>> ok <<<<<<\n"); } ... using "gcc main.c -o main". following error: main.c: in function ‘main’: main.c:9:2: error: unknown type name ‘ifreq’ i know "ifreq" structure definition lies within "#ifdef __use_misc" macro, however, cannot activate block of code. i developed following code checking macros defined (compiled "gcc main.c -o main"): #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <net/if.h> int main(int argc, char **argv) { #ifdef __use_misc printf("__use_misc defined\n"); #endif #ifdef _gnu_source printf("_gnu_source defined\n"); #endif #ifdef _bsd_source printf("_bsd_sourc...

iphone - Application submission requirement for Apple Appstore -

we planning submit our iphone app certification, friend of suggested if application needs user login every-time use features, people @ apple not certify application. can 1 please guide me on this. my app rejected requiring registration user before using features once. asked clarification on same app review team, stating app based on user data, , cannot proceed without authentication. also, updated review notes in itunesconnect mention same. , accepted. :) for safe side, can mention in review notes , not forget give them sample username , password! luck!

Maven: Using different plugin configurations on e.g. deploy -

for android maven project (consisting out of parent project consists out of main apk project , test project), able use different plugin configurations building whole project. i know can profiles, there other options? the thing achieve execute deploy "mvn deploy" , use different plugin configuration, should used if deploy (or release) taking place. a concrete example increase android version code if deploy takes place. binding increase of version code directly deploy phase not work increased version code needed before process-resources phase work properly. i'm afraid maven profiles option. you add enforcer check on deploy phase fail build if profile not active: <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-enforcer-plugin</artifactid> <version>1.2</version> <executions> <execution> <phase>deploy</phase> <!-- enfoce rules on `mvn deploy`...

git - Move some already existing and pushed commits to a new branch -

i have feature branch topic x, in branch did commits better in feature branch y, forgot create before beginning. is there way move commits new branch? not matter if branch branched x or master or anywhere else. if latest commits, see instructions here . otherwise, can cherry pick commits other branch, delete them old. remember: if have pushed changes, rewriting history bad idea .

objective c - Not Making a Mutable Copy for NSUserDefaults -

instead of making mutable copy nsuserdefaults, use setobject: forkey: make updates, pointing constructed objects derived in various places in ui. there pitfalls doing way? particularly, want make sure i'm not adding new objects in fact replacing existing objects. tia there shouldn't problems doing things way. i'm not sure why have doubts, long use same key setobject:forkey of course update same object instead of adding new ones. avoid adding new object, use static nsstring key.

sql - TSQL - View vs Stored Procedure: Performance considerations when apply predicates -

suppose have view that's defined follows: create view [dbo].[vdata_values] select parentid, timestamp, value table1 union select parentid, timestamp, value table2 union select parentid, timestamp, value table3 union select parentid, timestamp, value table4 suppose write query against view follows: select parentid, timestamp, value vdata_values parentid in (...) , timestamp between '1/1/2013' , '3/31/2013 23:59' would expect query against view perform differently stored procedure same inner query view, same where clause @ each step. example: create procedure [dbo].[getvalues] ( ... ) begin select parentid, timestamp, value table1 parentid in (...) , timestamp between '1/1/2013' , '3/31/2013 23:59' union select parentid, timestamp, value table2 parentid in (...) , timestamp between '1/1/2013' , '3/31/2013 23:59' union select parentid, timestamp, value table3 parentid ...

lotus domino - CreateViewNavFromCategory (lotuscript) ignore next subcategory if the user doesn't have right to view the first? -

please see following question, make wrong or bug ? there work around ? i'm using: set notesviewnavigator = notesview.createviewnavfromcategory( category$ [ , cachesize& ] ) i have view 2 categorized columns: aaa 111 doc1 reader=david doc2 reader=david 222 doc3 reader=john doc4 reader=john bbb if david make set nav = view.createviewnavfromcategory("aaa"), nav.count=2==> ok if john make set nav = view.createviewnavfromcategory("aaa"), nav.count=0 ==> why ??? if admin (can see docs) make set nav = view.createviewnavfromcategory("aaa"), nav.count=4 => proves 2nd sub category "read" notes. try view- property "do not display empty categories": should make result more reasonable. can not explain, why nav.count 0 in experience e.g. dblookup takes first sub- category , ignores documents in second category under circumstances. if find out, second category column "d...

How to parsing the json data or (json code) from Ruby on rails -

i have ruby on rails source,code want parse data, , send data.in code,it fetches name user , display it,how parse data in ror. this controller.rb code def index @hotels = hotel.all respond_to |format| format.html # index.html.erb format.json { render json: @hotels } end end # /hotels/1 # /hotels/1.json def show @hotel = hotel.find(params[:id]) respond_to |format| format.html # show.html.erb format.json { render json: @hotel } end end # /hotels/new # /hotels/new.json def new @hotel = hotel.new respond_to |format| format.html # new.html.erb format.json { render json: @hotel } end end # /hotels/1/edit def edit @hotel = hotel.find(params[:id]) end # post /hotels # post /hotels.json def create @hotel = hotel.new(params[:hotel]) respond_to |format| if @hotel.save format.html { redirect_to @hotel, notice: 'hotel created.' } format.json...

geocoding - Blank screen Google Maps API V3 -

as title say, have blank screen when trying add geocoding function map. if leave map alone marker works fine. in moment add geocode function send me blank screen. here code : <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"/> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>google maps api v3: esempio base</title> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"> <script type="text/javascript"> var initialize = function() { var latlng = new google.maps.latlng(42.745334,12.738430); var options = { zoom: 12, center: latlng, maptypeid: google.maps.maptypeid.roadmap }; var map = new google.maps.map(document.getelementbyid('map'), options); var marker = new google.maps.marker({ position: latlng, map: map, title:...

elisp - Running emacs keyboard macros in batch mode -

i want able save keyboard macro in emacs , apply file repeatedly in batch mode. give simple example, made following file paren-delete.el supposed delete parentheses , contents. when run emacs --batch target.txt --load paren-delete.el, nothing seems have changed. appears first kbd function it's supposed to, don't understand how command works. i know preferable avoid keyboard macros , write functions in proper elisp, i'd prefer quick-and-dirty solution, , feel i'm close. (kbd "m-x load-library kmacro") (fset 'delete-paren (lambda (&optional arg) "keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ("^s(^m^b^@^[^n^w" 0 "%d")) arg))) (start-kbd-macro nil) (kbd "m-x delete-paren") (end-kbd-macro) (kbd "c-u 0 c-x e") (save-buffer) one answer: define function runs macro: write in emacs-lisp buffer leaving cursor @ end:: (defun foo () m-x insert-kbd-macro r...

iOS, how do I add the signal strength bars to the iphone simulator? -

i've managed change carrier name on iphone simulator. https://gist.github.com/0xced/3035167 however, i'm missing network signal strength bars. can't find such workarounds ? your best bet in post-production. don't know of way show using ios simulator itself. if need screenshot, in photoshop. if you're making video, add bars layer on original video in premier or after effects.

c# - Best way to use the TaskScheduler -

my application crashing sporadically , it's because i'm making call taskscheduler.fromcurrentsynchronizationcontext() little after application has loaded. from little testing, i've fixed issue using readonly taskscheduler field , populating in class's constructor (thanks answer) worried single instance of taskscheduler have negative consequences due size of application , dependency on taskscheduler . has a) made change calling taskscheduler.fromcurrentsynchronizationcontext() instantiating single instance in constructor , b) had success it?

template meta programming - Implementing the A(:,k)=b; Matlab-like syntax in a C++ matrix library -

i have developed expression templates-based c++ matrix class of own. have overloaded () operator can read or write element matrices as, example, cout << a(i,j) << endl; and a(i,j)=b; respectively. have implemented range class enable matlab-like reads as cout << a(range(3,5),range(0,10)) << endl; the template matrix class exemplified as template <typename outtype> class matrix { private: int rows_; //number of rows int columns_; //number of columns outtype *data_; //row-major order allocation public: // --- access operators inline outtype & operator()(const int i, const int j) { return data_[idx2r(i,j,getcolumns())]; } inline outtype operator()(const int i, const int j) const { return data_[idx2r(i,j,getcolumns())]; } // --- subexpressions - range range inline expr<submatrixexpr<const outtype*,outtype>,outtype> operator(...

Interactive video website (HTML5, Flash) -

how create video this: http://www.kasesesmu.lv/lv/ ? do know similar websites, maybe tutorials on this? you take @ h5p , has lot of interactive content types. 1 of them interactive video, can seen here: https://h5p.org/interactive-video

iphone - How to grayout all tableview cells except selected one -

i have table view custom cells ,there uibuttons on custom cell ,if select button except cell remaining cells should grayouted or disabled possible. // code in tableview class - (nsinteger)tableview:(uitableview *)tableview numberofrowsinsection:(nsinteger)section; { nslog(@"no of rows:%d",[contents count]); return [contents count]; } - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath; { static nsstring *cellidentifier = @"cell"; // try retrieve table view now-unused cell given identifier. cell = (uploadcustomcell *)[tableview dequeuereusablecellwithidentifier:@"uploadcustomcell"]; if (cell == nil) { nslog(@"cell allocated"); // use default cell style. cell = [[uploadcustomcell alloc]initwithstyle:uitableviewcellstyledefault reuseidentifier:@"uploadcustomcell"]; nsarray *nib = [[nsbundle mainbundle] loadnibnamed:@"uploadcustomcell" ...

jquery validation plugin working ok first time you validate but not subsequent times -

i have following form added page via ajax <script> $(document).ready(function() { jquery.validator.setdefaults({ errorplacement: function(error, element) { error.appendto('#invalid_' + element.attr('id')); } }); var validator = $("#login_form").validate({ rules: { user_email: { required: true, email: true }, password: { required: true } } }); }); </script> <form id="login_form"> <center><br/><br/><br/> <div class="login_div"> <center><h3>log in</h3> <table align="center" width="400px"> <tr><td class="input_td">email:</td><td class="textfield_td"...

Matlab, interpolate non-square matrix keeping aspect-ratio -

i have matrix dimension 27x4, want interpolate matrix , plot same aspect ratio. i've been using interp2 since fills in values in between existing ones after each step matrix grows in both dimension 2*n-1, results in height growing faster width. is there method interpolate matrix filling new matrix interpolated values without original ones, 1 both dimensions doubled? the method think of, interpolate interp2 higher degree , pick out values, highly inefficient. interp2 should work fine, must how define last 2 parameter. try this: z = rand(4,27); x = 1:27; y = 1:4; [x, y] = meshgrid(x, y) xi = linspace(1, 27, 1000); yi = linspace(1, 4, 1000 * (4/27)); % 4/27 here ensures keep aspect ratio [xi, yi] = meshgrid(xi, yi); zi = interp2(x,y,z,xi,yi); check aspect ratios size(zi,1) / size(zi,2) ans = 0.1480 size(z,1) / size(z,2) ans = 0.1481 but need ensure aspect ratio of xi , yi in code above match original. pretty easy generalize well.

Undefined Method Model Path, Form_for not saving, Posted Correctly, Rails Framework -

sorry new rails right trying build small application https://pinboard.in , trying summer internship them. here bookmark model class bookmark < activerecord::base attr_accessible :url, :title, :description, :counter belongs_to :user #validates url has https:// or http:// validates :url, :format => { :with => /(^$)|(^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0- 9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$)/ix, :message => "invalid url" } end here bookmark controller class bookmarkscontroller < applicationcontroller def add_bookmark @bookmark = bookmark.new respond_to |format| format.html end end def draw_recent @bookmarks = bookmark.all end end here form <%= form_for :bookmark |f| %> url: <%= f.text_field :url %><br/> title: <%= f.text_field :title %><br/> description: <%= f.text_field :description %><br/> <%= f.s...

python - Edit* Having trouble writing a crawler that will scrape a directory of folders of websites and write that info to a .csv -

i've included os.walk in still won't output .csv , i'm not sure it's reading html dir. have directory of offline websites need scrape info (e.g. url, email, name, phone etc) , output .csv. when run (i know it's far being executable,) hangs on line 13 permission denied error. import os, csv bs4 import beautifulsoup def main(folder, outputfile): open(outputfile, "wb") f: w = csv.writer(f) header = ("tag", "name", "name", "email", "phone", "location", "url") w.writerow(header) rows = crawlhtmls(folder) w.writerows(rows) def crawlhtmls(folder): root, dirs, files in os.walk(folder): f in files: if f.lower().endswith(".html"): soup = beautifulsoup(f.read()) events = soup.findall('div', attrs={'class': 'post'}) headline = x.find('h2') name = x.find(...

jQuery Colorbox works on other pages but not my index.html -

i'm pretty sure thoroughly searched similar occurrence this...hope didn't overlook , apologize if did. i'm installing on live site: www.sigmarating.com now can see @ www.sigmarating.com/index2.html , example1 colorbox working flawlessly. when go implement same header scripts , stylesheet links in index.html ... nothing happens when click links. index.html: <head> <meta charset="utf-8"> <title>sigma rating tm</title> <meta name="description" content=""> <meta name="author" content=""> <!-- +++ mobile specific metas +++ --> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <!-- +++ load css files styles.css +++ --> <link rel="stylesheet" href="styles.css"> <link href='http://fonts.googleapis.com/css?family=pt+sans:400,400itali...

simple javascript code does not work: var count = colors.push(“red”, “green”); -

<html> <head></head> <body> <script> var colors = new array(); var count = colors.push(“red”, “green”); alert(count); </script> </body> </html> i tried on firefox , ie, think version of javascript needs updated? you need use real quotes, either " or ' , example: var count = colors.push('red', 'green'); the quote character have used illegal , showing javascript error syntaxerror: unexpected token illegal . demo: <!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>demo</title> <script type='text/javascript'> var colors = new array(); var count = colors.push('red', 'green'); // alert(count); alert(colors[0]); </script> </head> <body> </body...

java - this.getClass().getFields().length; always returns 0 -

this question has answer here: java reflection getfields private member| accessing object name value dynamically 2 answers i trying number of fields in particular class. technique using not working , returns 0: this.getclass().getfields().length; how field count of particular class? use this.getclass().getdeclaredfields().length getfields method accessible public fields - see documentation .

java - Can I autowire named loggers? -

i'm using non static loggers named according class name: protected logger logger = loggerfactory.getlogger(getclass()); can configure spring in way, set proper logger using @autowired? @autowired protected logger logger; i can use factory-method logger initialization, don't know how pass class name argument. setter-based dependency injection, spring has know class name, since holds reference bean. can access somehow? there way? you can inject @inject , beanfactorypostprocessor @inject logger logger; you can find more details here: using java annotation inject logger dependency

c - Parallelize Fibonacci sequence generator -

i'm learning parallelization , in 1 exercise i'm given couple of algorithms should improve in performance. 1 of them fibonacci sequence generator: array[0] = 0; array[1] = 1; (q = 2; q < max; q++) { array[q] = array[q−1] + array[q−2]; } my suspicion is, cannot optimized (by parallelization), since every number depends on 2 preceding numbers (and therefore indirectly on preceding numbers). how parallelized? the fibonacci sequence determined first 2 elements; in fact, somehow parallelize it, although ugly: f(n + 2) = f(n + 1) + f(n) f(n + 3) = f(n + 1) + f(n + 2) = f(n + 1) * 2 + f(n) f(n + 4) = f(n + 2) + f(n + 3) = f(n + 1) * 3 + f(n) * 2 f(n + 5) = f(n + 3) + f(n + 4) = f(n + 1) * 5 + f(n) * 3 f(n + 6) = f(n + 4) + f(n + 5) = f(n + 1) * 8 + f(n) * 5 hopefully now, can see that: f(n + k) = f(n + 1) * f(k) + f(n) * f(k - 1) so after computing first k numbers, use relation compute next k items in sequence, @ same time, parallelized. you use direc...

java - Android - Scrollable TextView with OnClickListener -

i have scrollable textview onclicklistener attached it. textview.setonclicklistener( new onclicklistener() { @override public void onclick(view v) { //dostuff(); } }); the problem if scroll text, lift finger off view triggers onclicklistener. way doesn't happen if scroll , move off view before lift finger, , can't tell users :p so question is, there way determine between click , scroll or way use ontouchlistener , decide myself if scroll or click? use ontouchlistener , handle on_down , on_move instead of using onclick.

android - java.lang.InstantiationException: can't instantiate class ... no empty constructor -

i have found topics similar questions mine cant find answer looking far. application consists of fragmentactivity hosts viewpageradapter (child of fragmentpageradapter) fragment in each tab. viewpageradapter instantiated in oncreateview function of parent activity _adapter = new viewpageradapter(getapplicationcontext() , getsupportfragmentmanager() , numoftabs , status); the viewpageradapter implements minimum required methods getitem , getcount , getitemposition my getitem initializes different fragment each position: @override public fragment getitem(int position) { fragment f = new fragment(); log.d("adbox",string.format("inside viewpageradapter.getitem(%s)",position)); switch(position) { case 0: log.d("adbox","all offers =="); f=fragmentalloffers.newinstance(_context); f.setretaininstan...

multithreading - java thread periodically kills a process -

i have java class kicks off a script via process proc = runtime.getruntime().exec(" run script"); for specific reasons pretty runs time. if script dies whatever reason java class starts up. now i'm needing kill process every often. decided kick off thread sit , wait specific time, , kill process. java main class, or whatever, still see process die , start up. i don't know how thread see process , subsequently kill every often. suggestions on how create thread? note, haven't had work threads in little while, i'm little rusty. simple pseudo code of class basic idea of i'm doing: class myclass{ process mproc; main(args){ do{ try{ mproc = runtime.getruntime().exec("cmd /c myscript"); mproc.destroy(); } catch(exception e){ log(e); } } while(true); i don't know how thread see process , subsequently kill ever...

oop - Perl: How to deep copy a blessed object? -

i'm looking deep (at point, shallow may suffice) copy of blessed object. foo class package foo; our $foo = new foo; # initial run sub new { $class = shift; $self = {}; bless $self, $class; return $self; } main program use foo; $copy = $foo::foo; # instead of creating ref, want deep copy here $copy->{bar} = 'bar'; bar appears in both $foo::foo , $copy . realize create copy of object setting $copy = { %{$foo::foo} } , no longer blessed; additionally, work simple data structures (right not issue). way copy way , bless after (eg $copy = bless { %{$foo::foo} }, q{foo}; )? i'm trying avoid using moose, clone, or other non-core modules/packages, please keep in mind when replying. bolded stands out more :) the copying should part of api. user of module never know special actions required upon creation of new object (consider registering each object in my hash in package). therefore, provide clone method objects. insi...

javascript - Calling the Facebook API from CasperJS? -

i'm trying call facebook api using casperjs, using url so: https://graph.facebook.com/<app_id>/accounts/test-users?installed=false&name=joe&locale=en_us&method=post&access_token=<access_token> it works fine when put in browser (i fine json result), about:blank page when try access in casperjs script. i've tried various methods: casper.open(url); casper.open(url, { method: 'post' }); casper.open(url, { method: 'get' }); // though should post... casper.open(url, { method: 'put' }); // still trying stuff casper.open(baseurl, { method: 'post', data: { ... } }); when current url, about:blank, , when content, it's empty page: <html><head></head><body></body></html> from getpagecontent() docs : var casper = require('casper').create(); var url = '<your url here>'; casper.start().then(function() { this.open(url, { method: 'ge...

How do I set logging priority in zend framework2? -

i want able control logging priority in zf2 application. do $priority = \zend\log\logger::info; $log->addwriter($writer, $priority); to write log file, works great. seems log level stuck @ zend\log\logger::debug no matter set $priority to. can clarify question? want prioritize writers or limit messages priority? if want limit logging message priority must use filter\priority. this: $writer = new \zend\log\writer\stream('/path/to/logfile'); $logger->addwriter($writer); $filter = new \zend\log\filter\priority(logger::crit); $writer->addfilter($filter);

java - Show Mainlayout again from diffetent layout and class -

i checked string variable web service every 15 min, if returns "0", new layout open new class. want if returns me different "0" again main layout shown again. when press shows whitout background music want whole mainactivity , layout automaticly. intent_second= new intent(this, second.class); if (str.equals("0")) { startactivity(intent_second); } else { //can here want? qst.settext(str); } this code showing second screen, can request class? can mainactivity (calling itself) or how can send variable second class , how can listen , start again mainactivity? if flag == 0 start second activity , on second activity if flag == 1 call finish() second activity oncreate() { intent_second= new intent(this, second.class); if (str.equals("0")) { startactivityforresult(intent_second,intent_code); } else { //can here want? ...

java - Hibernate Schema Export in Eclipse -

i trying learn hibernate cameron mckenzie's book 'hibernate made easy' , have followed steps in book still hitting problem. have following source code user class: package com.examscam.model; import javax.persistence.entity; import javax.persistence.generatedvalue; import javax.persistence.id; import org.hibernate.cfg.annotationconfiguration; import org.hibernate.tool.hbm2ddl.schemaexport; @entity public class user { private long id; private string password; @id @generatedvalue public long getid() { return id; } public string getpassword() { return password; } public void setid(long id) { this.id = id; } public void setpassword(string password) { this.password = password; } public static void main(string[] args) { annotationconfiguration config = new annotationconfiguration(); config.addannotatedclass(user.class); config.configure(); new schemaexpor...

c# - strange log4net initialization behavior -

i have run strange behavior log4net , wondered if can explain me, love learn more understand it. inside wpf app.xaml.cs onstartup override method have following code sets log4net property used logging: // loglocation path subdir in users' appdata roaming dir log4net.globalcontext.properties["loglocation"] = loglocation; logger = logmanager.getlogger(typeof(app)); logger.info("onstartup: " + string.join(" ", e.args)); i before create other loggers (or thought). in config file have following line: <file type="log4net.util.patternstring" value="%property{loglocation}" /> this works specify logging file location. however, have run situation in fails - resulting in logging writing file name "(null)" in executing directory. what seems cause following pseudo code, in same onstartup method after code above: anyclass ac = new anyclass(); ac.noop(); where anyclass has logger instantiated this: private ...

javascript - Insert JS into table with preexisting data -

i have been trying figure out how populate table has preexisting data called js data for example have table in place: f2,70,28,09,l,00,00,yr,yr,sd,rd,rd,rd,rd,rd,rd,gr,58,00,tx,tx,tx,tx,tx,tx,tx,tx,tx,tx l,yr,sd,rd,gr,tx areas populated js function you can see using here: http://www.757goat.org/gto_cluster/worksheettestjs.php i need option @ bottom of form grab of 'hex' , place above in right areas. any ideas?? thanks in advance -rob here code within above link: had pull out fit, ones pulled repetitions of sdtxt <script language="javascript" type="text/javascript"> <!-- function displayselecteditem(val,id){ document.getelementbyid(id).value = val; } //--> </script> </head> <body> <div class="container"> <div class="sidebar1"> <ul class="nav"> <li><a href="/gto_cluster">instructions</a></li> <li...