Trending questions in Web Development

+1 vote
1 answer

How to set cache false for getJSON in jQuery?

Hello @kartik, Your code just needs a trigger ...READ MORE

1 day ago in JQuery by Niroj
• 22,110 points
7 views
0 votes
1 answer

How to prevent multiple selection in jQuery UI Selectable plugin?

Hii @kartik, What i did, is that i ...READ MORE

1 day ago in JQuery by Niroj
• 22,110 points
15 views
+1 vote
1 answer

How to Check synchronously if file/directory exists in Node.js?

Hello, You can use fs.existsSync(): const fs = require("fs"); // ...READ MORE

2 days ago in Java-Script by Niroj
• 22,110 points
20 views
0 votes
1 answer

How to refresh a jQuery UI Slider after setting min or max values?

Hello @kartik, You should try doing something like ...READ MORE

1 day ago in JQuery by Niroj
• 22,110 points
14 views
0 votes
1 answer

How to attach callback to jquery effect on dialog show?

Hello, Try out the code using jQuery Promise object: $("#dialog").dialog({ ...READ MORE

1 day ago in JQuery by Niroj
• 22,110 points
13 views
0 votes
1 answer

How to move an item programmatically with jQuery sortable while still triggering events?

Hello, $("selector").trigger("sortupdate"); you will have to maybe pass in ...READ MORE

1 day ago in JQuery by Niroj
• 22,110 points
14 views
0 votes
1 answer

How can you disable scroll bars in the jQuery UI dialog box?

Hello @kartik, I solved the problem like this: .dialog({ ...READ MORE

1 day ago in JQuery by Niroj
• 22,110 points
11 views
+1 vote
1 answer

Error:SQL “between” not inclusive

Hello, It is inclusive. You are comparing datetimes to dates. ...READ MORE

2 days ago in Java-Script by Niroj
• 22,110 points
6 views
0 votes
1 answer

How to check if button is disabled in jQuery Mobile?

Hello, you can try $("#deliveryNext").is(":disabled") The following code works for ...READ MORE

1 day ago in JQuery by Niroj
• 22,110 points
12 views
0 votes
1 answer

JQuery Error: cannot call methods on dialog prior to initialization; attempted to call method 'close'

Hello @kartik, Try this - it works for ...READ MORE

1 day ago in JQuery by Niroj
• 22,110 points
6 views
0 votes
1 answer

Error:jQuery scrollTop not working in Chrome but working in Firefox

Hello @kartik, If your CSS html element has the following overflow markup, scrollTop will ...READ MORE

1 day ago in JQuery by Niroj
• 22,110 points
9 views
0 votes
1 answer

How do I pre-populate a jQuery Datepicker textbox with today's date?

Hello @kartik, You must FIRST call datepicker() > then use ...READ MORE

1 day ago in JQuery by Niroj
• 22,110 points
6 views
0 votes
1 answer

How to get the browser to navigate to URL in JavaScript?

Hii, This works in all browsers: window.location.href = '...'; If ...READ MORE

2 days ago in Java-Script by Niroj
• 22,110 points
20 views
0 votes
1 answer

How to Get values from a specific user - queryset in Django

Hello @kartik, You can get the list of Users ...READ MORE

2 days ago in Java-Script by Niroj
• 22,110 points
7 views
0 votes
1 answer

How do you access the matched groups in a JavaScript regular expression?

Hello, Here’s a method you can use to ...READ MORE

2 days ago in Java-Script by Niroj
• 22,110 points
7 views
0 votes
1 answer

error: Microsoft Visual C++ 14.0 is required

Hi, @Abhishek, You may also need to upgrade setuptools package ...READ MORE

3 days ago in Java-Script by Gitika
• 29,170 points
27 views
0 votes
1 answer

is there any way to download truffle? how to solve this error

Hello @ aishah , It seems likely that this is ...READ MORE

5 days ago in Web Development by Niroj
• 22,110 points
29 views
0 votes
1 answer

How can I connect to a Tor hidden service using CURL in PHP?

Hello @kartik, I use Privoxy and cURL to scrape Tor ...READ MORE

May 19 in PHP by Niroj
• 22,110 points
68 views
0 votes
1 answer

PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR

Hello @kartik, Change to as your syntax was ...READ MORE

May 19 in PHP by Niroj
• 22,110 points
36 views
0 votes
1 answer

Uncaught TypeError: Cannot read property 'setState' of undefined

Hello, When using ES6 code in React always ...READ MORE

May 18 in CSS by Niroj
• 22,110 points
75 views
0 votes
1 answer

How to convert from MySQL datetime to another format with PHP?

Hello, To convert a date retrieved from MySQL ...READ MORE

May 19 in PHP by Niroj
• 22,110 points
24 views
0 votes
1 answer

Error:Enabling error display in PHP via htaccess only?

Hello, To turn the actual display of errors ...READ MORE

May 19 in PHP by Niroj
• 22,110 points
24 views
0 votes
1 answer

How to find the php.ini file used by the command line?

Hello @kartik, You can get a full phpinfo() using : php ...READ MORE

May 19 in PHP by Niroj
• 22,110 points
23 views
0 votes
1 answer

How can I create XAMPP/Apache serve file outside of htdocs?

Hello @kartik, You can relocate it by editing ...READ MORE

May 19 in PHP by Niroj
• 22,110 points
21 views
0 votes
1 answer

How to do error logging in CodeIgniter ?

Hello @kartik, CodeIgniter has some error logging functions ...READ MORE

May 19 in PHP by Niroj
• 22,110 points
20 views
0 votes
1 answer

Fatal error: Class 'PHPUnit_Framework_TestCase' not found in .?

Hello @kartik, You may get this error because ...READ MORE

May 19 in PHP by Niroj
• 22,110 points
18 views
0 votes
1 answer

How can I expire a PHP session after 50 minutes?

Hii @kartik, Use the session_set_cookie_paramsfunciton for make this. Is necessary ...READ MORE

May 19 in PHP by Niroj
• 22,110 points
24 views
0 votes
1 answer

Error:mysql_fetch_array()/mysql_fetch_assoc()/mysql_fetch_row()/mysql_num_rows etc… expects parameter 1 to be resource

Hello, Error occurred here was due to the ...READ MORE

May 19 in PHP by Niroj
• 22,110 points
22 views
0 votes
1 answer

How to do API call in react js?

Hello, Use fetch method inside componentDidMount to update state: componentDidMount(){ fetch('https://randomuser.me/api/') ...READ MORE

May 18 in Java-Script by Niroj
• 22,110 points
39 views
0 votes
1 answer

How to get rid of underline for Link component of React Router?

Hello, If you are using styled-components, you could do ...READ MORE

May 18 in Java-Script by Niroj
• 22,110 points
33 views
0 votes
1 answer

How to create dynamic href in react render function?

Hello @kartik, Use string concatenation: href={'/posts/' + post.id} The JSX ...READ MORE

May 18 in Java-Script by Niroj
• 22,110 points
27 views
0 votes
1 answer

Error: Cannot resolve module 'style-loader'

Hello @kartik, Try run script below: npm install style-loader ...READ MORE

May 18 in Java-Script by Niroj
• 22,110 points
25 views
0 votes
1 answer

How to use Redirect in the new react-router-dom of Reactjs?

Hello, To navigate to another component you can ...READ MORE

May 18 in Java-Script by Niroj
• 22,110 points
25 views
0 votes
1 answer

How to select and manipulate CSS pseudo-elements such as ::before and ::after using jQuery?

Hii @kartik, Here is the way to access ...READ MORE

May 18 in Java-Script by Niroj
• 22,110 points
24 views
0 votes
1 answer

An unhandled exception occurred: Job name “..getProjectMetadata” does not exist?

Hello @kartik, I had this error after npm audit found ...READ MORE

Apr 22 in Angular by Niroj
• 22,110 points
1,139 views
0 votes
1 answer

Uncaught ReferenceError:Karma: jQuery is not defined

Hii @kartik, You first have to load jQuery ...READ MORE

May 12 in JQuery by Niroj
• 22,110 points
68 views
0 votes
1 answer

How to close all active bootstrap modals on session timeout?

Hello @kartik, Use the following code: $('.modal').modal('hide'); Also if you ...READ MORE

May 12 in JQuery by Niroj
• 22,110 points
42 views
0 votes
1 answer

Error: cannot call methods on dialog prior to initialization; attempted to call method 'close'

Hello, Try this - it works for me: $(".editDialog").on("click", ...READ MORE

May 12 in JQuery by Niroj
• 22,110 points
34 views
0 votes
1 answer

Error: cannot call methods on button prior to initialization; attempted to call method 'loading'

Hii @kartik, It's caused by jquery-ui and bootstrap-button ...READ MORE

May 12 in JQuery by Niroj
• 22,110 points
38 views
0 votes
1 answer

How to set cache false for getJSON in jQuery?

Hello @kartik, Your code just needs a trigger ...READ MORE

May 12 in JQuery by Niroj
• 22,110 points
30 views
0 votes
1 answer

How to remove close button on the jQuery UI dialog?

Hii, I found this worked for me in the end ...READ MORE

May 12 in JQuery by Niroj
• 22,110 points
29 views
0 votes
1 answer

Error: no such method 'show' for tooltip widget instance

Hello, The root of this and similar problem "no such method ...READ MORE

May 12 in JQuery by Niroj
• 22,110 points
33 views
0 votes
1 answer

How to enable Bootstrap tooltip on disabled button?

Hii @kartik, You can wrap the disabled button ...READ MORE

May 12 in JQuery by Niroj
• 22,110 points
35 views
0 votes
1 answer

How to make Bootstrap popover Appear/Disappear on hover instead of click?

Hello @kartik, Set the trigger option of the popover to hover instead ...READ MORE

May 12 in JQuery by Niroj
• 22,110 points
30 views
0 votes
1 answer

Twitter Bootstrap: How to see the state of a toggle button?

Hii @kartik, You can see what classes the ...READ MORE

May 12 in JQuery by Niroj
• 22,110 points
24 views
0 votes
1 answer

Error: unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING

Hello @kartik, Make sure they are running Latest ...READ MORE

May 8 in PHP by Niroj
• 22,110 points
106 views
0 votes
1 answer

Error:Uncaught ReferenceError: is not defined at HTMLAnchorElement.onclick

Hello, With my limited understanding, I tried to ...READ MORE

Apr 14 in Laravel by Niroj
• 22,110 points
1,105 views
0 votes
1 answer

How do I get all posts from $wp_query in the search results in wordpress?

Hello @kartik, Set posts_per_page parameter in args to ...READ MORE

May 8 in PHP by Niroj
• 22,110 points
31 views
0 votes
1 answer

How to load Javascript in Wordpress Plugin?

Hello kartik, You need to specify when the ...READ MORE

May 8 in PHP by Niroj
• 22,110 points
27 views