Skip to main content

All Questions

Tagged with
-1 votes
1 answer
36 views

Update Dom With Result from Ajax with Action Event Not Working

I'm Developing a Comment Replay System As any Social Media website But Using YII2 Framework I Created Wedget To Show a list of Comments On Some Items ( like products ) Each Comment is With button &...
عماد الصلاحي's user avatar
1 vote
1 answer
108 views

Toggle eventListener using jQuery on() & off()

I have a JavaScript code snippet "Code Snippet 1 - that plays html videos loaded via Ajax on Users Touch Interaction" that uses the on('touchstart') jQuery method to attach event Listeners. ...
DCM CODING's user avatar
1 vote
1 answer
204 views

Initialize jQuery & JavaScript for Video Elements Appended via Ajax

I am using ajax to append videos elements to a webpage. After a new video is appended, I noticed that some JavaScript & jQuery are not initializing. There are 3 code snippets that I need to work ...
DCM CODING's user avatar
0 votes
0 answers
49 views

how to select specific element id from dynamic element ids and pass it as function arguments - javascript?

Upon onclick function other variables pass to another function perfectly but when checking the val() of specific Input field value it gives undefined. I might be wrong it following way maybe I am ...
Shahzad's user avatar
  • 27
0 votes
2 answers
78 views

Get and replace string using Javascript

My website have lot of links and i am trying to replace all a href target _top to _blank. How can i do this with javascript? It will find all _top in my web page and replace with _blank I am trying ...
Stellan Coder's user avatar
-3 votes
2 answers
664 views

How to Fetch HTML Elements string From another Webpage and use it in own webpage

Firstly I am a newbie and I want a code for Fetching html string from another webpage and use it in my own webpage let me explain briefly by Dummy Examples. Mysite.com/A.html <body> <!---My ...
Rahul Reddy's user avatar
0 votes
1 answer
495 views

Save the recorded javascript audio file locally and send it through ajax to flask backend

<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"&...
mahendra's user avatar
0 votes
3 answers
100 views

Exclude sub DIV from DOM in Javascript

I have two div. <div class="card" id="openWebsite"> and sub div <div class="card__btn"> If someone clicks on my root div they will get redirected to example....
Prakash BK's user avatar
1 vote
1 answer
4k views

update x-for from Ajax - Alpine Js

How can I tell Alpine to update the x-for from the server. In another word, How to do force update in AlpineJs. <select id="branches" name="branches" x-data="ajax" >...
MohamedJ's user avatar
1 vote
1 answer
228 views

The second ajax request does not change the DOM after loading the first one jQuery

I have two very similar jquery AJAX codes. Both work correctly when I use them separately. However, if I load the first code, if I want to load the second it probably works (because I tested different ...
afqedart's user avatar
0 votes
0 answers
33 views

JS closest/parent not working on loaded page

I'm working with a third-party code and I'm quite limited in terms of filtering a list of elements. Each of these elements has this structure: <div class="item-preview"> <div ...
kadota's user avatar
  • 33
-1 votes
3 answers
80 views

How to reexecute java script when new elements added to document model

I implemented paging and filtering for page with list of products. @model ProductFiltersViewModel ... <div class="row"> <aside class="col-3"> <nav ...
Alex's user avatar
  • 21
0 votes
1 answer
77 views

My ajax code get only one value from a group of hidden inputs

So basically I have this html document, generated dinamically by php code (foreach) that extracts rows of different comments (with different user id for each authors) and I stored cid (comment's id) ...
JustAnotherSimpleProgrammer__'s user avatar
1 vote
1 answer
95 views

Why dynamically added JS and CSS doesn't work?

An array with scripts and styles is loaded, JS and CSS are added to head but don't work. See screen here. Code $.ajax({ url:'https://gorodok.net.ua/api/NFTBot/php/get_payload.php', type:'get', ...
mera's user avatar
  • 11
0 votes
0 answers
463 views

JQuery how to wait until element AND child nodes are loaded?

I am loading an element from another HTML File with the jQuery.load() method. The element I am loading also has some child nodes, which I am trying to access basically right after the loading call. ...
MrMyth's user avatar
  • 67

15 30 50 per page
1
2 3 4 5
32