i have a ajax code that works properly and gives the desired result. I want to modify this code and want that when a reply is received from ajax a popup/modal box should get opened. I am able to open popup/modal box on a click of a button but don’t know how to open it automatically within ajax. here is
Tag: javascript
Change of td color with php if else statement [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Closed 6 years ago. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future re…
Scraping tag with certain keyword using Simple HTML Dom Parser
I’m attempting to scrape a <script> tag from a set of webpages using Simple HTML Dom. At first, I was scraping it by providing the numerical order of the tag I needed: I’ve come to realize that the order differs depending on the page (and it’s just not a scalable way of doing this sinc…
Regex to allow any language characters in the form of full name and starting with letter
I try to validate a name field, and for this field I like to allow the end user to add anything like Merianos Nikos, Μέριανος Νίκος (greek), or characters from any other language in the same form. The form is first letter capital, rest letters of the word lower, and at least two words. Currectly I have this r…
Create a simple page redirect system in WP based on IDs
What I’m trying to do is to have my students enter their name (assigned code) in a field and once they click the “Go” button they will be redirected to their page. I’m trying to do this in …
Retrieving variables from HTML with JSON data contained in Javascript
I have a simple HTML file that contains data I’m trying to scrape out so that I can work with the variables. Using PHP, I’m trying to parse the data contained on this HTML in to variables. I.E.: $A = 2, $B = 8, $C = 10, $D = 18, $E = 21. So far, I’ve been trying to use
How to autosubmit a form in JS when a field reaches a number of characters? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago. Improve this question What better way to make a form having a autosubmit when a field is complet…
Convert Excel’s “41014” date to actual date in PHP or JavaScript
I’m writing something in PHP/Jquery that allows the user to upload an Excel spreadsheet from Excel. It then takes the data in that spreadsheet and assigns the values from each cell into a variable, but for some reason, I’m having a hard time with dates. Any date in Excel comes in as a number, like…
Check if value is empty javascript
After submitting I want the redirect the users to a different page with the value of the input in the url. Now, when there is no value I want that it does nothing (return false). How can I do this? …
How can I make an ad visible only to mobile users?
I want to use some mobile ads but my website has responsive design so I don’t use the m. subdomain. How can I make an ad visible only to mobile users? What about only to desktop or tablet? I’m using wordpress as a CMS. Thanks, Answer It’s quite easy using CSS3 Media Queries. In your CSS: For…