A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

0
votes
1answer
247 views

Using Foundation 5 in WordPress Administration Area

I am attempting to implement Zurb's Foundation 5 in a development to enable me to utilize its functionality to create better page UIs within the wp-admin. However, for some reason Foundation's JS is ...
0
votes
0answers
565 views

Add async script

I am working on a plugin that has to inject a script on pages (something like RefTagger), which would be easy using wp_enqueue_script, but there are two reasons I cannot do that: the script tag has to ...
0
votes
1answer
215 views

implementing a jQuery “click to expand” link in Wordpress [closed]

Novice coder - apologies for any stupid comments I've been trying to make a show more button on one of the div s on my Wordpress blog page. I've looked at a number of tutorials that all seem to agree ...
1
vote
0answers
114 views

Add tinymce buttons to caption textarea in media uploader

I want to add some basic tinymce buttons ( Bold, italic, underline ) to caption textarea in media uploader in WordPress. (Shown in attached image) I dig a little bit into wordpress core in media.php ...
-2
votes
2answers
113 views

Set variable in javascript and using in my shortcode

my script is function($) { var google_map_address = $('#address').text(); $(function () { $('#gmap').gmap3({ marker: { address: google_map_address }, map: { options: { ...
0
votes
0answers
24 views

What is the right way to include my Ajax script in wordpress [duplicate]

I've searched around for a solution to my issue to no avail. So here it is: I have created custom meta fields in the user section within the admin area. There are two fields in total, both select ...
0
votes
1answer
331 views

Ajax - Call to undefined function get_option()

So I've been working in Wordpress lately with Ajax and I managed to get some stock data into my site from my database. However, I am now trying to use Ajax to load Wordpress posts into my left ...
1
vote
1answer
56 views

Backend option to include a javascript file on specific pages?

I am working on a template that my coworkers will be using to populate content. On some of the pages there will be a slider or multiple sliders but on other pages there won't be any. Because of this, ...
0
votes
1answer
48 views

How do I convince this button to do something when it is clicked?

I'm trying to use ajax to give me an alert when I click a button. Eventually I want it to do some form validation, but for now I would be happy just to see the alert. I've read the docs and about a ...
0
votes
1answer
785 views

Replace link with form to pass variables to javascript / ajax

I'm sending a single variable to javascript/ajax via a link, but want to send via a form so I can pass user input as well. (It's for a plugin that interfaces with an Echonest Remix python script to ...
0
votes
1answer
97 views

Using WP functions inside javascript

I'm trying to use PHP variables inside a javascript function. What's a proper way to use a WP function like get_current_user_id() inside a script that get's enqueued via wp_enqueue_script? Right now I ...
4
votes
1answer
731 views

Wordpress Visual Editor Stripping HTML Changes

When I use the WordPress HTML editor to add icomoon icons like this: <span class="icon-shield"></span> and then switch to the visual editor and then back to the HTML editor, the icons ...
0
votes
0answers
17 views

wp_localize_script() dont parse values

I try to parse php values to js file using wp_localize_script() wp_enqueue_script( 'countdown_js', plugin_dir_path( __FILE__ ) . 'js/countdown.js', array(), '1.0.0', true ); $dataToBePassed = ...
0
votes
0answers
80 views

Infinite scroll wont work on mobile browsers. Works on non mobile systems

I implemented infinite scroll on my WordPress blog using the following script: <script type="text/javascript"> var abc=66;//what is abc doing? $(window).scroll(function () { ...
0
votes
0answers
123 views

User Answerable Multiple-Choice Question in Post

I am creating a plugin that adds multiple choice questions to WordPress. I wish for several to be displayed in a single post in a manner such that users may select an answer and receive instant ...
1
vote
1answer
221 views

wpColorPicker: How update colors on input value update?

Setup: An input field that has attached a wpColorPicker instance. An external event that changes the input value color. Issues: On value change the color shown by the colorpicker doesn't get ...
0
votes
0answers
75 views

Wordpress media uploader button is not working

I'm developing my own plugin. for that i need to upload logo images. since i'm a newbie in wordpress i searched so many tutorials. the code i used is pasted below. the problem is when i clicks on the ...
0
votes
0answers
21 views

Multiple Menu Selections to compile data on new page

Need to create a menu box (vertical stack of 4 selections) on a page, which then calls from either a database or CSV file, final combination of items required as follows: Selection 1: >MenuItem< ...
0
votes
0answers
116 views

Can't get Geotrust seal to show up

I have purchased and installed a Geotrust certificate on my website. The certificate is running just fine. I would like to display the seal, but I can't get it to show up. Geotrust tells you to ...
0
votes
1answer
704 views

TypeError: window.tinyMCE.execInstanceCommand is not a function

I can't add any shortcode in my wordpress editor. it shows - TypeError: window.tinyMCE.execInstanceCommand is not a function window.tinyMCE.execInstanceCommand(id, 'mceInsertContent', false, ...
0
votes
0answers
69 views

Server-side processing of AJAX login

I'm using AJAX to login users on my website to avoid the need for a page refresh when they get their username or password wrong. Everything is done over SSL. My server-side processing: function ...
0
votes
2answers
102 views

How do I use this javascript correct with wordpress?

Im using a javascript/html5 script to highlight images black and white during no mouse hover, and then back to color on hover. It sorta works, although, I have to reload my page 2-3 times before it ...
0
votes
0answers
62 views

URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647

I've got a javascript implented on my Wordpress site with the purpose to the substring of the URL and if it matches some criteria, it'll load a specific piece of content. So, if you input this URL ...
0
votes
3answers
367 views

Loading multiple post content in FancyBox

I have a custom post type being output as a list. I'm trying to output some of the inline content in each li via Fancybox. All works so far except it only shows the first li's content. I understand ...
6
votes
1answer
199 views

Any alternate TinyMCE4 themes / subthemes?

TinyMCE4 in WordPress 3.9 has some cool changes, but it seems to have only one "theme" included. Is there any way to make a sub-theme of the theme defined by CSS, and theme.js in ...
3
votes
1answer
46 views

Documentation for IDE's

I'm using IntelliJ but this question could apply to PhpStorm, Visual Studio, etc... Is there a good way to make the IDE aware of the Javascript functions that WordPress provides? Are there any ...
0
votes
1answer
44 views

Why this plugin is not working?

I am testing jQuery in my wordpress plugin. Two files 1. main_plugin.php 2. js_plugin.js (Both in the same directory HelloWorld). CODE: PHP FILE: <?php /* Plugin Name: jQuery Test Plugin Plugin ...
1
vote
0answers
55 views

Resetting admin post form on JS validation fail

I've got a custom plugin with a metabox and dynamic form (the user can ask for more elements of the form), with jQuery Validation plugin working great. The problem is when the validation comes back ...
0
votes
0answers
74 views

Enqueue script throws error in console

WP version 3.9 I am editing the customizer. I have an upload field for uploading a logo. When I try to upload I receive an error. TypeError: wp.media.model.settings.post is undefined I tracked ...
0
votes
0answers
5k views

java script error Uncaught SyntaxError: Unexpected token ILLEGAL

i had a website that was working fine on localhost without any errors but after i uploaded it on the domain the slider stoped working and i got this errors Uncaught SyntaxError: Unexpected token ...
0
votes
1answer
28 views

Convert javascript running xml files to wordpress platform

I have a website I want to convert over to the wordpress platform. On the existing site I use some javascript to pull in images and text from xml files. Can I still get this to work in a wordpress ...
0
votes
0answers
84 views

Update field in Theme Customizer via Javascript

I am working with the Customizer and I have made some custom controls which is cool. Now I'm trying to create a relationship between two controls whereas the input of one control passes through some ...
0
votes
1answer
286 views

Linking Javascript in functions.php file

Below is my raw javascript embeds from my html template. But I cannnot figure out exactly how to add it to my functions.php file. It seems pretty difficult. Can you please assist with the correct ...
0
votes
0answers
103 views

TinyMCE tablecontrols missing after 3.9 upgrade - TinyMCE4

I wrote a simple Tables plugin for TinyMCE 4 (WP 3.9) and can't seem to find a way to enable table controls for TinyMCE. function table_plugin_button($buttons) { array_push($buttons, "table", ...
0
votes
0answers
54 views

How to automatically trigger a link if user has already been in the page?

I need a solution in php or javascript to make trigger a link to a internal #anchor when the user has visited the page for second time. can you help? the theme is a SINGLE PAGE one that shows all the ...
0
votes
1answer
65 views

Possible jquery / library conflict in plugin usage

I am using the free version of the plugin: WP Feedback & Survey Manager but for some reasons the tab style is not rendered, and I guess it's for a javascript/jquery problem, eventhough I don't ...
0
votes
1answer
239 views

Help with my first Metabox helper class

I'm working on a metabox helper class and everything works well, but the radio image field. The images show up, but they aren't clickable. // Print radio_image input. private function ...
1
vote
1answer
689 views

How to get the image url in the input box from media library?

I have added a post meta to upload image using wordpress media uploader. Looks like it's a javascript work. I am no good in javascript. I took the js from here: Here is the js code: ...
2
votes
1answer
44 views

Listbox return wrong value in WordPress 3.9

I have already created listbox for WordPress 3.8 but it's not working in new version WordPress 3.9. So I write the JavaScript code: (function() { var ICONS; var icon = function(id) { return ...
0
votes
3answers
465 views

How do I add some javascript validation to the admin interface form's onsubmit?

I have a plugin that adds meta boxes to the admin interface and I need to do some validation when the user presses the "update" button before the form is submitted. Is there a WordPress action or ...
0
votes
2answers
181 views

How to register and enqueue JavaScript files without breaking plugin dependencies?

In theme development, what is the best way to register and enqueue JavaScript files to avoid problems with plugins? I want to create a theme which uses scripts like jQuery, Masonry and so on. I ...
1
vote
0answers
202 views

Wordpress 3.8.3. custom theme - sliders won't load js/css files

I'm building custom WP theme and I have issues with sliders. None of those I've tried to install worked. When I looked into the developers console, and searched for their js/css files, they where not ...
0
votes
1answer
64 views

Switch between tabs on “Insert Media” dialog

I'm writing a file upload plugin and want to emulate original Wordpress behavior: user uploads file on "Upload Files" tab after upload is complete, "Media Library" tab is activated with just ...
1
vote
0answers
15 views

Search broken due to uComments - I found the JS file that is causing the problem [closed]

I was unable to search my site until I ran the plugin Deactivate/Activate test. It was uComments. This plugin has a file called functions.js which is causing this problem. I do understand it has ...
0
votes
1answer
341 views

How to make Plupload zones that will survive changes in core?

I had recently implemented custom Plupload form in a plugin (located in admin area and working with SVG files). Plupload has half a ton of settings, provided for WP's own upload zone by ...
1
vote
1answer
55 views

Wordpress Scripts Being Loaded in Footer

I've bought a theme for a Wordpress site. I noticed that the theme author has added the javascript to the footer for load time, but as I use Gravity forms, I understand that some of scripts need to ...
1
vote
2answers
193 views

WordPress Displaying Thumbnails Vertically

WordPress is displaying my thumbnails vertically and VERY LARGE. Specifically it's displaying WooCommerce product page thumbnails vertically and VERY LARGE. Can't seem to figure out why or what piece ...
0
votes
2answers
41 views

Seperate functions.php for part of site

I built a custom WordPress site for some artists. I'm making one page that is entirely different from the rest of the site. Actually, that and a single.php page. It's for a specific new book, and the ...
0
votes
1answer
992 views

Ajaxurl suddenly not defined

I am developing a wordpress plugin where I use an ajax call to submit form data, it was working fine and then all of a sudden I get a console error saying that ajaxurl (the url passed to the ajax ...
0
votes
1answer
825 views

Handling an Ajax form submit

I am developing a wordpress plugin that will create a contact form and then submit the details through an ajax request. jQuery.ajax({ type:"post", dataType:"json", ...