Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Your Javascript code uses the following selector for the document.querySelector(...) invocation: #prcf_form The selector string starting with an # indicates an ID selector, with the actual ID f...
Answer
#15: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
- (Tangent: You would relatively easily and quickly notice the issue with _querySelector(...)_ if you were to take advantage of the diagnostics and debugging tools modern web browsers offer and inspect the variable values and the values returned by the functions your Javascript code calls.)
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.`<form id="#prcf_form">` --> `<form id="prcf_form">`
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
- (Tangent: You would relatively easily and quickly notice the issue with _querySelector(...)_ if you were to take advantage of the diagnostics and debugging tools modern web browsers offer and inspect the variable values and the values returned by the functions your Javascript code calls.)
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_":
- `<form id="#prcf_form">` --> `<form id="prcf_form">`,
- allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
#14: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
- (Tangent: You would relatively easily and quickly notice the issue with _querySelector(...)_ if you were to take advantage of the diagnostics and debugging tools modern web browsers offer and inspect the variable values and the values returned by the functions your Javascript code calls.)
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
`<form id="#prcf_form">` --> `<form id="prcf_form">`As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
- (Tangent: You would relatively easily and quickly notice the issue with _querySelector(...)_ if you were to take advantage of the diagnostics and debugging tools modern web browsers offer and inspect the variable values and the values returned by the functions your Javascript code calls.)
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
- `<form id="#prcf_form">` --> `<form id="prcf_form">`
#13: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
- (Tangent: You would relatively easily and quickly notice the issue with _querySelector(...)_ if you were to take advantage of the diagnostics and debugging tools modern web browsers offer and inspect the variable values and the values returned by the functions your Javascript code calls.)
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
"_#prcf_form_" != "_prcf_form_"- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
- (Tangent: You would relatively easily and quickly notice the issue with _querySelector(...)_ if you were to take advantage of the diagnostics and debugging tools modern web browsers offer and inspect the variable values and the values returned by the functions your Javascript code calls.)
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- `<form id="#prcf_form">` --> `<form id="prcf_form">`
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
#12: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
(Tangent: You would relatively easily and quickly notice the issue with _querySelector(...)_ if you would inspect its return value by taking advantage of the debugging tools modern web browsers offer.)- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
- (Tangent: You would relatively easily and quickly notice the issue with _querySelector(...)_ if you were to take advantage of the diagnostics and debugging tools modern web browsers offer and inspect the variable values and the values returned by the functions your Javascript code calls.)
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
#11: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
(Tangent: You would relatively easily notice the issue with _querySelector(...)_ if you would inspect its return value by taking advantage of the debugging tools modern web browsers offer.)- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
- (Tangent: You would relatively easily and quickly notice the issue with _querySelector(...)_ if you would inspect its return value by taking advantage of the debugging tools modern web browsers offer.)
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
#10: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
(You would relatively easily notice the issue with _querySelector(...)_ if you would inspect its return value by taking advantage of the debugging tools modern web browsers offer.)- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
- (Tangent: You would relatively easily notice the issue with _querySelector(...)_ if you would inspect its return value by taking advantage of the debugging tools modern web browsers offer.)
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
#9: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
(You would relatively easily notice the issue querySelector(...) if you would inspect its return value by taking advantage of the debugging tools modern web browsers offer.)- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
- (You would relatively easily notice the issue with _querySelector(...)_ if you would inspect its return value by taking advantage of the debugging tools modern web browsers offer.)
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
#8: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
- (You would relatively easily notice the issue querySelector(...) if you would inspect its return value by taking advantage of the debugging tools modern web browsers offer.)
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
#7: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element?- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element.
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
#6: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
Therefore, it should be reasonably expected that the _FormData_constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element?- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
As a solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_ constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element?
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a possible solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
#5: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the `#` is **not** part of the ID to be searched.- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element?
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the leading `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element?
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
#4: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
Therefore, it should be reasonably expected that the _FormData_constructor will fail, because your document.querySelector("#prcf_form") won't find any element, and a FormData cannot be constructed based on a non-existing form element?- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
As a solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", and hopefully at least the _FormData_ object should be constructed successfully.
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_constructor will fail, because `document.querySelector("#prcf_form")` won't find any element, and a FormData cannot be constructed based on a non-existing form element?
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", allowing `document.querySelector("#prcf_form")` to find the form element, and hopefully at least the _FormData_ object will be constructed successfully.
#3: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
But, where in your HTML do you have an element with the ID "prcf_form"? There is none...- Therefore, it should be reasonably expected that the _FormData_constructor will fail, because your document.querySelector("#prcf_form") won't find any element, and a FormData cannot be constructed based on a non-existing form element?
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
As a solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", and hopefully at least the _FormData_ object should be constructed successfully...
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "_prcf_form_"? There is none...
- Therefore, it should be reasonably expected that the _FormData_constructor will fail, because your document.querySelector("#prcf_form") won't find any element, and a FormData cannot be constructed based on a non-existing form element?
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", and hopefully at least the _FormData_ object should be constructed successfully.
#2: Post edited
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
The selector string starting with an # indicates an ID selector, with the actual ID following the #.So, your Javascript code is trying to select and get an element with the ID "_prcf_form_".- But, where in your HTML do you have an element with the ID "prcf_form"? There is none...
- Therefore, it should be reasonably expected that the _FormData_constructor will fail, because your document.querySelector("#prcf_form") won't find any element, and a FormData cannot be constructed based on a non-existing form element?
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", and hopefully at least the _FormData_ object should be constructed successfully...
- Your Javascript code uses the following selector for the document.querySelector(...) invocation:
- ```
- #prcf_form
- ```
- The selector string starting with an `#` indicates an ID selector, with the actual ID following the `#`. Note that in a selector string, the `#` is **not** part of the ID to be searched.
- So, your Javascript code is trying to get an element with the ID "_prcf_form_".
- But, where in your HTML do you have an element with the ID "prcf_form"? There is none...
- Therefore, it should be reasonably expected that the _FormData_constructor will fail, because your document.querySelector("#prcf_form") won't find any element, and a FormData cannot be constructed based on a non-existing form element?
- Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_".
- "_#prcf_form_" != "_prcf_form_"
- As a solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", and hopefully at least the _FormData_ object should be constructed successfully...
#1: Initial revision
Your Javascript code uses the following selector for the document.querySelector(...) invocation: ``` #prcf_form ``` The selector string starting with an # indicates an ID selector, with the actual ID following the #. So, your Javascript code is trying to select and get an element with the ID "_prcf_form_". But, where in your HTML do you have an element with the ID "prcf_form"? There is none... Therefore, it should be reasonably expected that the _FormData_constructor will fail, because your document.querySelector("#prcf_form") won't find any element, and a FormData cannot be constructed based on a non-existing form element? Note that the ID of your form element is "_#prcf_form_", but your querySelector() invocation looks for an element with the ID "_prcf_form_". "_#prcf_form_" != "_prcf_form_" As a solution, i suggest to change the form element ID from "_#prcf_form_" to "_prcf_form_", and hopefully at least the _FormData_ object should be constructed successfully...