Posts

javascript - How to show only the first by hover with jQuery? -

if make hover on menulinks submenues on first level shown dont know whats wrong, see code: $('#menu li').hover(function () { //show submenu $('ul', this).slidedown(100); }, function () { //hide submenu $('ul', this).slideup(100); }); so in opinion must work because hover on link should display first submenu. submenu of first link show directly hover , dont know how fix better yet. need please. for better understanging hve created fiddle here . your selector in hover functions finding ul elements descendants of li element. want show direct children. try instead: $('#menu li').hover(function() { //show submenu $(this).children('ul').slidedown(100); }, function() { //hide submenu $(this).children('ul').slideup(100); });

user interface - What was this live filtered table implemented with? -

i browsing http://plugins.netbeans.org/pluginportal/ i way table @ bottom of page works, various live filtering & sort options. particularly speed, fluidity & function. does know how have been implemented (i'm talking specifically, have understanding of generalized process, , interested in specific technology if exists particular type of control in/on particular platform)? your appreciated. looking @ page source looks datatables plug in jquery see here

Add css class to a javascript event -

how can add class following element? window.location = 'page.html'; for example, i'd result: <a href="page.html" class="nameclass">link</a> but javascript page loads automatically after function, not link text click on. create link element: var = document.createelement('a'); // <a></a> add href: a.href = 'page.html'; // <a href="page.html"></a> add class: a.classname = 'nameclass'; // <a href="page.html" class="nameclass"></a> add text: a.innerhtml = 'link'; // <a href="page.html" class="nameclass">link</a> append body element: document.body.appendchild(a); // in page!

php - No connection could be made because the target machine actively refused it LARAVEL 4 error -

no connection made because target machine actively refused it. [tcp://127.0.0.1:6379] in laravel 4.my code is: $redis = redis::connection(); $redis->set('name', 'taylor'); $name = $redis->get('name'); $values = $redis->lrange('names', 5, 10); after installing redis server(you can download form redis ) should run file redis-server.exe located in c:\program files\redis\ , refresh page!

cloud - XTIFY failed on find provider packagename.XTFY_PROVIDER -

i'm following instructions in http://developer.xtify.com/display/sdk/getting+started+with+google+cloud+messaging implement push messages android throught xtify, , executing app error: failed on find provider info com.example.gcmessaging.xtfy_provider in manifest have on receiver tag: .... android:name="com.xtify.sdk.db.provider" android:authorities="com.example.gcmessaging.xtify_provider" android:exported="false" can me wrong? i'd appreciate help. thanks you didn't add correct package name, find defined in top of androidmanifest.xml file: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.site.yourapp" ...> then add package name provider node: <provider android:name="com.xtify.sdk.db.provider" android:authorities="com.site.yourapp.xtify_provider" android:exported="false" /> if didn't workout you,...

java - how to fix the order of the buttons in SWT? -

i have scroller 2 buttons how can set order of buttons in same raw , not each control : button scroller , button in different row fcomposite= new composite(composite, swt.right_to_left); griddata layoutdata= new griddata(swt.fill, swt.right_to_left, true, false); fcomposite.setlayoutdata(layoutdata); layout= new gridlayout(1, false); layout.marginheight= 0; layout.marginwidth= 0; layout.horizontalspacing= 0; layout.verticalspacing= 0; fcomposite.setlayout(layout); display display = parent.getdisplay(); shell shell = parent.getshell(); button button = new button(fcomposite, swt.left); button.settext("two"); //$non-nls-1$ button.setimage(display.getsystemimage(icon_1)); final scale scale = new scale (fcomposite, swt.border); rectangle clientarea = fcomposite.getclientarea (); scale.setbounds (clientarea.x, clientarea.y, 200, 64); scale.setmaximum (5); scale.setpageincrement (1); scal...

C pointer frustration EXC_BAD_ACCESS -

can please tell me what's wrong following code? i'm getting exc_bad_access , not access memory. reason: kern_invalid_address i declare global array of 7 pointers, each points int array, of different sizes. int **pt_all_arrays[7]; in function a() (int = 0; < 7; ++i) { int array_size = function_that_returns_array_size(); int *myarray = (int *)malloc(array_size * sizeof (int)); // work... // store array in big array *(pt_all_arrays[i]) = myarray; <-----exception } the exception thrown on last line. i'm running on mac, gcc -std=gnu99 you want declare int *pt_all_arrays[7]; and assign as pt_all_arrays[i] = myarray; with int **pt_all_arrays[7]; create array of pointer pointer int, not want. and *(pt_all_arrays[i]) = myarray; trying change address of array not valid. example int array[7]; int *pi; array = pi; //this not valid.