Tag: javascript

60 votes
7 answers
2.6K views
Best practice for using window.onload

I develop Joomla websites/components/modules and plugins and every so often I require the ability to use JavaS

avatar
Cortez
0 1 0 9
asked 07 September, 2021
57 votes
7 answers
1.8K views
How does this site infecting script work?

My Joomla! website has been repeatedly hacked into. Someone, somehow, managed to inject the following rubbish

avatar
Yolando
0 1 0 9
asked 07 September, 2021
53 votes
8 answers
2.1K views
How to add Document with Custom ID to firestore

Is there any chance to add a document to firestore collection with custom generated id, not the id generated b

avatar
Patsy
0 1 0 9
asked 07 September, 2021
54 votes
7 answers
1.7K views
Firebase Permission Denied

I'm relatively new to coding and am having trouble. I have this code to send data to firebase app.useri

avatar
Dorinda
0 1 0 9
asked 07 September, 2021
57 votes
14 answers
1.7K views
How to update an "array of objects" with Firestore?

I'm currently trying Firestore, and I'm stuck at something very simple: "updating an array (aka a su

avatar
Stacia
0 1 0 9
asked 07 September, 2021
63 votes
18 answers
1.1K views
How do I structure Cloud Functions for Firebase to deploy multiple functions from multiple files?

I would like to create multiple Cloud Functions for Firebase and deploy them all at the same time from one pro

avatar
Jeff
0 1 0 9
asked 07 September, 2021
52 votes
29 answers
492 views
Enabling CORS in Cloud Functions for Firebase

I'm currently learning how to use new Cloud Functions for Firebase and the problem I'm having is tha

avatar
Bryan
0 1 0 9
asked 07 September, 2021
64 votes
5 answers
577 views
What is Firebase Firestore 'Reference' data type good for?

I'm just exploring the new Firebase Firestore and it contains a data type called reference. It is not cle

avatar
Royal
0 1 0 9
asked 07 September, 2021
58 votes
10 answers
2K views
Is it safe to expose Firebase apiKey to the public?

The Firebase Web-App guide states I should put the given apiKey in my Html to initialize Firebase: // TODO: Re

avatar
Solomon
0 1 0 9
asked 07 September, 2021
52 votes
5 answers
500 views
Using JQuery in Drupal 7

I'm writing my own Drupal 7 module, and like to use JQuery in it. $('#field').toggle(); But

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
60 votes
6 answers
672 views
jQuery issue - #<an Object> has no method

I've tried a veriety of jQuery plugins recently and I keep getting this error … (source: shaunbellis.c

avatar
Sydney
0 1 0 9
asked 07 September, 2021
55 votes
3 answers
2.3K views
how to select all class except the clicked element in JQuery?

I have a website developed on Drupal. I use a module called collapsiblock (it is basicly a JQuery plugin) to a

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
66 votes
9 answers
1.1K views
How to pass json POST data to Web API method as an object?

ASP.NET MVC4 Web API application defines post method to save customer. Customer is passed in json format in PO

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
53 votes
12 answers
2.4K views
Using Razor within JavaScript

Is it possible or is there a workaround to use Razor syntax within JavaScript that is in a view (cshtml)? I a

avatar
Don
0 1 0 9
asked 07 September, 2021
52 votes
30 answers
2.1K views
JQuery - $ is not defined

I have a simple jquery click event <script type="text/javascript"> $(function() { $('#p

avatar
Deedee
0 1 0 9
asked 07 September, 2021
53 votes
14 answers
2.5K views
Passing data to a bootstrap modal

I've got a couple of hyperlinks that each have an ID attached. When I click on this link, I want to open

avatar
Shantay
0 1 0 9
asked 07 September, 2021
50 votes
10 answers
2.9K views
How to see the javascript errors of PhoneGap app in Xcode?

I want to debug my PhoneGap app in Xcode, but its Console can not show javascript errors.

avatar
Xavier
0 1 0 9
asked 07 September, 2021
46 votes
30 answers
2.6K views
PhoneGap: Detect if running on desktop browser

I'm developing a web application that uses PhoneGap:Build for a mobile version and want to have a single

avatar
Sena
0 1 0 9
asked 07 September, 2021
56 votes
21 answers
3.1K views
How to host material icons offline?

My apologies if this is a very simple question, but how do you use google material icons without a <link

avatar
Forrest
0 1 0 9
asked 07 September, 2021
64 votes
9 answers
1.5K views
Refused to load the script because it violates the following Content Security Policy directive

When I tried to deploy my app onto devices with Android system above 5.0.0 (Lollipop), I kept getting these ki

avatar
Carmelina
0 1 0 9
asked 07 September, 2021