# Javascript & Ajax

**URL:** https://www.phphelp.com/c/javascript-ajax/17.md?page=2

[Latest](https://www.phphelp.com/latest.md) · [Categories](https://www.phphelp.com/categories.md)

**Page:** 3

---

## [Combined two Search Forms - not functioning](https://www.phphelp.com/t/combined-two-search-forms-not-functioning/34248)

<div class="topic-metadata">

**Author:** [@chrisj](https://www.phphelp.com/u/chrisj)\
**Replies:** 0\
**Last updated:** [November 11, 2021, 12:22am UTC](https://www.phphelp.com/t/combined-two-search-forms-not-functioning/34248 "2021-11-11T00:22:02Z")

</div>

Thanks for all the previous help. The web script that I’m modifying has a Search Form that successfully appears when a particular type of page displays: \<?php if (preg\_match('#/?sub\_\_(\\d)+\\b#',$\_SERVER\['REQUEST\_URI'\],$m…

---

## [Is ajax an insecure for hackers?](https://www.phphelp.com/t/is-ajax-an-insecure-for-hackers/34211)

<div class="topic-metadata">

**Author:** [@Adem](https://www.phphelp.com/u/Adem)\
**Replies:** 6\
**Last updated:** [November 8, 2021, 8:17am UTC](https://www.phphelp.com/t/is-ajax-an-insecure-for-hackers/34211 "2021-11-08T08:17:01Z")

</div>

Hello, I’m having a lot of trouble by hackers Since it is not possible to learn all the vulnerabilities at once, I am trying to solve the problem one by one. First of all is ajax unsafe for hackers? What am I doing w…

---

## [Using variable named post in ajax](https://www.phphelp.com/t/using-variable-named-post-in-ajax/34208)

<div class="topic-metadata">

**Author:** [@Adem](https://www.phphelp.com/u/Adem)\
**Replies:** 2\
**Last updated:** [November 4, 2021, 7:42am UTC](https://www.phphelp.com/t/using-variable-named-post-in-ajax/34208 "2021-11-04T07:42:36Z")

</div>

Hello, I want to prefix post\_name1 but failed How should I do sample: prefix\_post\_name1, as function gonder(id, prefix){ var message = "text"; $.ajax({ type: "POST", url: "gon…

---

## [TempusDominus DateTimepicker for Bootstrap 4](https://www.phphelp.com/t/tempusdominus-datetimepicker-for-bootstrap-4/34146)

<div class="topic-metadata">

**Author:** [@Waspman](https://www.phphelp.com/u/Waspman)\
**Replies:** 4\
**Last updated:** [October 23, 2021, 2:23pm UTC](https://www.phphelp.com/t/tempusdominus-datetimepicker-for-bootstrap-4/34146 "2021-10-23T14:23:05Z")

</div>

I have tried using the new (non-Jquery) version, but just can’t get it work, so have tried using the Bootstrap4 version.(which is no longer supported) Below is the basic markup for a PHP form I intend to use. I need bot…

---

## [Dividing a number, then display result in form field](https://www.phphelp.com/t/dividing-a-number-then-display-result-in-form-field/34120)

<div class="topic-metadata">

**Author:** [@chrisj](https://www.phphelp.com/u/chrisj)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 7:35am UTC](https://www.phphelp.com/t/dividing-a-number-then-display-result-in-form-field/34120 "2021-10-19T07:35:11Z")

</div>

The form I’d like to modify populates this field (balance amount) upon the page appearing: \<div class="col-md-10"\> \<input type="text" readonly="true" class="form-control input-md" type="number" placeholder="00" value="{…

---

## [How to make a calendar with a button, not an input on mobile](https://www.phphelp.com/t/how-to-make-a-calendar-with-a-button-not-an-input-on-mobile/34108)

<div class="topic-metadata">

**Author:** [@Adem](https://www.phphelp.com/u/Adem)\
**Replies:** 1\
**Last updated:** [October 16, 2021, 7:43am UTC](https://www.phphelp.com/t/how-to-make-a-calendar-with-a-button-not-an-input-on-mobile/34108 "2021-10-16T07:43:54Z")

</div>

Hello, I search by manually entering the input field. If I want to search for a date, I click on the calendar topic on the left, select the date in the popup window that opens and it searches. There is no problem on t…

---

## [Message count notification problem](https://www.phphelp.com/t/message-count-notification-problem/34027)

<div class="topic-metadata">

**Author:** [@kejo](https://www.phphelp.com/u/kejo)\
**Replies:** 4\
**Last updated:** [October 5, 2021, 1:31am UTC](https://www.phphelp.com/t/message-count-notification-problem/34027 "2021-10-05T01:31:24Z")

</div>

Greetings. I would like to know if anyone here is fluent enough with javascript to be able to assist me in correcting a notification problem. I am attempting to use javascript to access an external php file to select a m…

---

## [About downloading pdf files with jquery/Javascript](https://www.phphelp.com/t/about-downloading-pdf-files-with-jquery-javascript/33809)

<div class="topic-metadata">

**Author:** [@Adem](https://www.phphelp.com/u/Adem)\
**Replies:** 5\
**Last updated:** [October 4, 2021, 1:27pm UTC](https://www.phphelp.com/t/about-downloading-pdf-files-with-jquery-javascript/33809 "2021-10-04T13:27:27Z")

</div>

Hello, I am downloading PDF file with below code. It works pretty well It also shows the downloading icon next to the button. Buddha works fine. function pdf\_dow(butonid, url\_link, dosya\_adi) { // Code showing the do…

---

## [Selecting groups containing the same brand](https://www.phphelp.com/t/selecting-groups-containing-the-same-brand/33738)

<div class="topic-metadata">

**Author:** [@Adem](https://www.phphelp.com/u/Adem)\
**Replies:** 9\
**Last updated:** [August 26, 2021, 6:29am UTC](https://www.phphelp.com/t/selecting-groups-containing-the-same-brand/33738 "2021-08-26T06:29:57Z")

</div>

Hello, \<input type="radio" class="brand"\> It works fine if there is a brand in each radio group When one of the radio groups is clicked, the brands in other groups belonging to that brand are selected.no problem here …

---

## [(Like Organization) How to draw a schema](https://www.phphelp.com/t/like-organization-how-to-draw-a-schema/33830)

<div class="topic-metadata">

**Author:** [@Adem](https://www.phphelp.com/u/Adem)\
**Replies:** 3\
**Last updated:** [August 18, 2021, 10:22am UTC](https://www.phphelp.com/t/like-organization-how-to-draw-a-schema/33830 "2021-08-18T10:22:23Z")

</div>

Hello, Is it easy to draw a schema on an HTML page? I don’t know if it’s the family tree in the picture, but I want to draw something like this if it’s simple. There will be a select option inside the boxes shown i…

---

## [How to disable other content based on two select option choices](https://www.phphelp.com/t/how-to-disable-other-content-based-on-two-select-option-choices/33677)

<div class="topic-metadata">

**Author:** [@Adem](https://www.phphelp.com/u/Adem)\
**Replies:** 20\
**Last updated:** [July 15, 2021, 8:42pm UTC](https://www.phphelp.com/t/how-to-disable-other-content-based-on-two-select-option-choices/33677 "2021-07-15T20:42:14Z")

</div>

Hello, The following select option codes are the TV Channel selection option. TV channels operate between 47-860 MHz In the channel selection option below, only one of the highest number of Analogue or Digital channel…

---

## [How do I get repetitive data with jquery ajax dataType json](https://www.phphelp.com/t/how-do-i-get-repetitive-data-with-jquery-ajax-datatype-json/33650)

<div class="topic-metadata">

**Author:** [@Adem](https://www.phphelp.com/u/Adem)\
**Replies:** 8\
**Last updated:** [June 30, 2021, 3:03pm UTC](https://www.phphelp.com/t/how-do-i-get-repetitive-data-with-jquery-ajax-datatype-json/33650 "2021-06-30T15:03:12Z")

</div>

Hello, I’m getting data with json using ajax to parse the data, no problem here There is a page function where I get data with ajax page\_ajax.php function goster($variable){ $jsonData = array( "in…

---

## [Multiple functions?](https://www.phphelp.com/t/multiple-functions/33531)

<div class="topic-metadata">

**Author:** [@Anette](https://www.phphelp.com/u/Anette)\
**Replies:** 2\
**Last updated:** [May 21, 2021, 12:08pm UTC](https://www.phphelp.com/t/multiple-functions/33531 "2021-05-21T12:08:18Z")

</div>

I am showing an cd-collection with php and js. It’s working fine. But what if I want to show a second cd-collection? I have tryed to copy the first function and gave it another name, but it wont work. Does anyone know…

---

## [How do i add javascript in TCPDF?](https://www.phphelp.com/t/how-do-i-add-javascript-in-tcpdf/33519)

<div class="topic-metadata">

**Author:** [@sashavalentina](https://www.phphelp.com/u/sashavalentina)\
**Replies:** 3\
**Last updated:** [May 18, 2021, 9:02am UTC](https://www.phphelp.com/t/how-do-i-add-javascript-in-tcpdf/33519 "2021-05-18T09:02:34Z")

</div>

s i can’t use css to make my auto numbering for my tables with css using TCPDF.I’m trying to use Javascipt to make this work. I read the documentation \[this\] and this this(Example 053 : javascript functions · TCPDF) on …

---

## [Get pattern from string in jQuery](https://www.phphelp.com/t/get-pattern-from-string-in-jquery/33480)

<div class="topic-metadata">

**Author:** [@devac9039](https://www.phphelp.com/u/devac9039)\
**Replies:** 3\
**Last updated:** [May 16, 2021, 4:30am UTC](https://www.phphelp.com/t/get-pattern-from-string-in-jquery/33480 "2021-05-16T04:30:08Z")

</div>

I want to create the function, If we input the correct GSTIN format, it will auto find the pattern from GSTIN and set it in PAN textbox as its value automatically. basically, PAN ID is always in GSTIN ID, below the ima…

---

## [If x is greater than y](https://www.phphelp.com/t/if-x-is-greater-than-y/33467)

<div class="topic-metadata">

**Author:** [@Adem](https://www.phphelp.com/u/Adem)\
**Replies:** 2\
**Last updated:** [May 7, 2021, 3:19pm UTC](https://www.phphelp.com/t/if-x-is-greater-than-y/33467 "2021-05-07T15:19:44Z")

</div>

Hi, There is an error but I couldn’t find it The rule is? “Kat” This is the number of floors of the block apartment “Pano Katları” this is the floors where the cables are collected, If there is more than one floor he…

---

## [How can I control the input contents in table rows added with jquery?](https://www.phphelp.com/t/how-can-i-control-the-input-contents-in-table-rows-added-with-jquery/33378)

<div class="topic-metadata">

**Author:** [@Adem](https://www.phphelp.com/u/Adem)\
**Replies:** 28\
**Last updated:** [May 5, 2021, 1:05pm UTC](https://www.phphelp.com/t/how-can-i-control-the-input-contents-in-table-rows-added-with-jquery/33378 "2021-05-05T13:05:28Z")

</div>

Hi, I have a fixed table row I check the input contents in this line with the following javascript code. function kontrol() { var katlar = \[\]; var kablo\_sayilari = \[\]; var kac\_kat = $("#A\_blok\_kac\_ka…

---

## [How to fetch and Add additional like Mobile No. or any column in databable CodeIgniter](https://www.phphelp.com/t/how-to-fetch-and-add-additional-like-mobile-no-or-any-column-in-databable-codeigniter/33444)

<div class="topic-metadata">

**Author:** [@mkmobi](https://www.phphelp.com/u/mkmobi)\
**Replies:** 0\
**Last updated:** [May 3, 2021, 6:12pm UTC](https://www.phphelp.com/t/how-to-fetch-and-add-additional-like-mobile-no-or-any-column-in-databable-codeigniter/33444 "2021-05-03T18:12:00Z")

</div>

HTML Code \<table id="invoices" class="table table-striped table-bordered zero-configuration "\> \<thead\> \<tr\> \<th\>\<?php echo $this-\>lang-\>line('No') ?\>\</th\> …

---

## [How to update parts of a code when there is new data inserted in the database?](https://www.phphelp.com/t/how-to-update-parts-of-a-code-when-there-is-new-data-inserted-in-the-database/33424)

<div class="topic-metadata">

**Author:** [@iliji](https://www.phphelp.com/u/iliji)\
**Replies:** 3\
**Last updated:** [May 2, 2021, 9:22am UTC](https://www.phphelp.com/t/how-to-update-parts-of-a-code-when-there-is-new-data-inserted-in-the-database/33424 "2021-05-02T09:22:33Z")

</div>

Hi, I’m currently looking for a way to update a text of a google marker in the google map js without reloading the whole page. First my arduino send the data to my database, then my website need to fetch this particular …

---

## [Hi Guys Please help me i'm facing a problem, how to solve it](https://www.phphelp.com/t/hi-guys-please-help-me-im-facing-a-problem-how-to-solve-it/33341)

<div class="topic-metadata">

**Author:** [@aniket996](https://www.phphelp.com/u/aniket996)\
**Replies:** 1\
**Last updated:** [April 15, 2021, 10:45pm UTC](https://www.phphelp.com/t/hi-guys-please-help-me-im-facing-a-problem-how-to-solve-it/33341 "2021-04-15T22:45:38Z")

</div>

I used YouTube API in javascript but No idea how to work this Youtube videos ID. ytp.loadVideoById(a7(a.j6.a8),0,settings.r5()?“default”:“medium”); document.location.hash=a7(a.j6.a8);

---

## [Change include\_once file after specific time](https://www.phphelp.com/t/change-include-once-file-after-specific-time/33275)

<div class="topic-metadata">

**Author:** [@Sluwe](https://www.phphelp.com/u/Sluwe)\
**Replies:** 2\
**Last updated:** [March 31, 2021, 3:43pm UTC](https://www.phphelp.com/t/change-include-once-file-after-specific-time/33275 "2021-03-31T15:43:52Z")

</div>

Hello, I’m not sure I’m posting this question in the right thread, because i dont know if it is php or javascript related or maybe both :slight\_smile: I would like to know if it is possible , and if it is how to manage…

---

## [Why the numbers are not adding?](https://www.phphelp.com/t/why-the-numbers-are-not-adding/33255)

<div class="topic-metadata">

**Author:** [@prohor](https://www.phphelp.com/u/prohor)\
**Replies:** 1\
**Last updated:** [March 20, 2021, 9:24pm UTC](https://www.phphelp.com/t/why-the-numbers-are-not-adding/33255 "2021-03-20T21:24:35Z")

</div>

Hi here is two input field with type=“number” and I am also inserting numbers too but the results is concatenating of two fields data instead of adding? I am New to JS. Can you help me why this is happening? \<input…

---

## [Eraatic Help please](https://www.phphelp.com/t/eraatic-help-please/33232)

<div class="topic-metadata">

**Author:** [@dmanghani](https://www.phphelp.com/u/dmanghani)\
**Replies:** 2\
**Last updated:** [March 16, 2021, 9:15am UTC](https://www.phphelp.com/t/eraatic-help-please/33232 "2021-03-16T09:15:02Z")

</div>

The code works the first time around, the second time around only the checkboxes get clicked but no prompts \<label\>\<input type="checkbox" name="install" \<?php if(isset($\_GET\['install'\])) { echo 'checked'; } ?\> id='i…

---

## [Uploading HTML formatter to the line editor with jquery](https://www.phphelp.com/t/uploading-html-formatter-to-the-line-editor-with-jquery/33188)

<div class="topic-metadata">

**Author:** [@Adem](https://www.phphelp.com/u/Adem)\
**Replies:** 2\
**Last updated:** [February 26, 2021, 7:29am UTC](https://www.phphelp.com/t/uploading-html-formatter-to-the-line-editor-with-jquery/33188 "2021-02-26T07:29:06Z")

</div>

Hello, I use this editor and I like it very much However, in the source area, it combines HTML codes as a single line without spaces. Editing is not possible by opening the source code Is it possible to display in so…

---

## [Checking and Unchecking Check Boxes with Ajax success](https://www.phphelp.com/t/checking-and-unchecking-check-boxes-with-ajax-success/33081)

<div class="topic-metadata">

**Author:** [@Book](https://www.phphelp.com/u/Book)\
**Replies:** 7\
**Last updated:** [February 9, 2021, 7:52pm UTC](https://www.phphelp.com/t/checking-and-unchecking-check-boxes-with-ajax-success/33081 "2021-02-09T19:52:56Z")

</div>

i am trying to make a table full of check boxes either check or uncheck based on ajax succes. i know how to do it for 1 single variable in a plain table or just a stand alone check box but i cant get the syntax correct f…

---

## [Write exif data to span](https://www.phphelp.com/t/write-exif-data-to-span/33094)

<div class="topic-metadata">

**Author:** [@neil07](https://www.phphelp.com/u/neil07)\
**Replies:** 2\
**Last updated:** [February 6, 2021, 8:58pm UTC](https://www.phphelp.com/t/write-exif-data-to-span/33094 "2021-02-06T20:58:50Z")

</div>

I’m trying to write EXIF data to a \<span\> for all loaded in images. That is working, but \<span class="tag"\>\</span\> is displaying the same exif data on all spans. The console is outputting correct info about the Artist …

---

## [Tablesorter plugin not sorting input data](https://www.phphelp.com/t/tablesorter-plugin-not-sorting-input-data/33046)

<div class="topic-metadata">

**Author:** [@Book](https://www.phphelp.com/u/Book)\
**Replies:** 1\
**Last updated:** [February 2, 2021, 1:40pm UTC](https://www.phphelp.com/t/tablesorter-plugin-not-sorting-input-data/33046 "2021-02-02T13:40:57Z")

</div>

I have built numerous table that all work perfectly except when i have data that is editable by user ( using input type=“text” i am unable to use tablesorter to sort the columns that are editable. i have called table sor…

---

## [How to enable & disable a bootstrap tabs div?](https://www.phphelp.com/t/how-to-enable-disable-a-bootstrap-tabs-div/32936)

<div class="topic-metadata">

**Author:** [@shruti](https://www.phphelp.com/u/shruti)\
**Replies:** 2\
**Last updated:** [December 18, 2020, 11:42pm UTC](https://www.phphelp.com/t/how-to-enable-disable-a-bootstrap-tabs-div/32936 "2020-12-18T23:42:08Z")

</div>

I have created 2 bootstrap tab within which there is a div separated by id. Initially I want the tab’s div to be disabled and another tab’s div enabled. When I click on the disabled tab’s div it must enable making the p…

---

## [How to pass parameters to javascript](https://www.phphelp.com/t/how-to-pass-parameters-to-javascript/32914)

<div class="topic-metadata">

**Author:** [@qqblog](https://www.phphelp.com/u/qqblog)\
**Replies:** 1\
**Last updated:** [December 12, 2020, 4:41pm UTC](https://www.phphelp.com/t/how-to-pass-parameters-to-javascript/32914 "2020-12-12T16:41:22Z")

</div>

how to write a php code to pass components, client-id and data-client-token to js src="https://www.paypal.com/sdk/js?components=hosted-fields,buttons&client-id=\*\*\*\*\*\*" data-client-token="\*\*\*\*\*\*\*"

---

## [Setting a selected option in \<select\> by JS](https://www.phphelp.com/t/setting-a-selected-option-in-select-by-js/32860)

<div class="topic-metadata">

**Author:** [@Technetium](https://www.phphelp.com/u/Technetium)\
**Replies:** 0\
**Last updated:** [November 29, 2020, 12:50am UTC](https://www.phphelp.com/t/setting-a-selected-option-in-select-by-js/32860 "2020-11-29T00:50:08Z")

</div>

The goal here is to set the SELECT value if the page has form data that would set it. I’m not entirely sure what the correct way to do this is, but I have tried all of the following: document.getElementById(“base\_terra…

[Previous page](https://www.phphelp.com/c/javascript-ajax/17.md?page=1)

[Next page](https://www.phphelp.com/c/javascript-ajax/17.md?page=3)
