A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

0
votes
0answers
15 views

wordpress - ajax communication

This is the first time I do the ajax and I must confess that I am confused. What I want to do is to take the value of 3 Select html to make a request to my database that'll get me a score according to ...
0
votes
0answers
10 views

How to slidedown and slideup child pages clicking on parent pages in jquery or javascript?

I have created a sidebar in wordpress in which all parent pages with subpages are listed. I have used following code in sidebar-left.php file and call this in template file. <div id="primary" ...
2
votes
1answer
25 views

javascript onload calling a function of a plugin

A friend created a plugin for me which allows the users to mark posts as read or unread. The code of this plugin is the following : edit of the code ! <?php /** * @package Read-Unread * ...
0
votes
1answer
23 views

Adding an onchange event to a custom dropdown menu in Wordpress

I would like to add an onchange event to a dropdown menu I've created via my Wordpress plugin. As this is my first foray into Wordpress development, and the company I work for has a tall order for ...
0
votes
1answer
18 views

Problems with plugin that fetches data from database with ajax

I have the following code that works when I run it on a local (non wordpress) website. But I cant get it to working in a plugin. It is my first plugin. <?php /* Plugin Name: Wordpress Plugin Stijn ...
0
votes
1answer
19 views

Populating content dynamically via AJAX and Advanced Custom Fields [on hold]

I am using a repeater field from Advanced Custom Fields to create multiple photo galleries. There are 4 pages and each page has multiple image galleries. Because of this, I want to reduce load by ...
-2
votes
0answers
17 views

jQuery character count in Contact Form 7 textarea [on hold]

I use Contact Form 7 and I need a character/word count (twitter-like) for text area elements. I can't use the CF7 Textarea Wordcount plugin as it's not updated and I need to use the latest version of ...
0
votes
0answers
13 views

Register / Enqueue Scripts [migrated]

I am trying to be neat and put all JS into .js files and register and enqueue them. So far I have 'great' success doing so. I have in my functions.php of my theme: wp_register_script( 'myscript', ...
0
votes
1answer
13 views

Showing a link with Javascript based on log-in status

<?php if ( is_user_logged_in() ) { echo ''; } else { echo '<a onclick="ppOpen('#login_panel', '800',1)" href=\"javascript:\">Entrar</a>'; } ?> Hello, I'm trying to make this work ...
0
votes
0answers
14 views

Avada shortcode [on hold]

I would like to copy the carousel effect of this template> www.awerest.com/demo/myway/light/ > (exactly with the same icon and effect of the words ): see here > ...
0
votes
0answers
10 views

Add Text in Home page of Wordpress Tempelate [closed]

How we can add text in homepage of wordpress tempelate without code???
0
votes
0answers
14 views

Using Ajax to autocomplete a form with data from db

I'm struggling to get the following: User fills out personal number Other input gets autocompleted with data from database As I have never made a plugin, help is greatly appreciated, my database ...
0
votes
0answers
26 views

AJAX filter posts on click based on category

This is my first foray into AJAX, I've been splicing bits of code from various tutorials which probably hasn't helped. I have a list of categories on my homepage (index.php) and a list of the most ...
0
votes
1answer
37 views

How to load JS for specific screen size using wp_enqueue_script?

I need a option so that when I am adding some script using wp_enqueue_script it should load for specific screen size. Like when the screen size will be below 768px the script will not load. I am ...
0
votes
0answers
28 views

How to auto open pdf file in window in adobe reader using javascript? [closed]

How can be auto open a file in window's or mac's adobe reader after download using Javascript or jQuery. In real case : when we click on download link file is downloaded in window and we need ...
0
votes
1answer
38 views

How to get values from wordpress listings and use them in javascript array?

I'm trying to get values (latitude, longitude and an image) from the WordPress database and put it into a javascript array. Unfortunately I'm a newbie at Javascript and PHP! Here is the code I have ...
0
votes
1answer
20 views

prevent HTML output if custom field is empty [closed]

I am using the ACF plugin for custom fields. I am using this to add a second content area to my website. I have a peice of JS that says if this div is present then add a class to the page-content ...
0
votes
2answers
42 views

How to set up php,javascript and css to allow for our finished product to be displayed within a page?

hey wordpress experts, We have coded a table using php, javascript and css which pulls up information from a text file and displays it in the browser. We have everything working as desired when we ...
0
votes
0answers
17 views

media uploader filter library so see only images without parent post

I am using this code to enable users to upload images from front end. I would need to filter the library tab to only how images that do not have post_parent set. Any way to do that? Code below: ...
0
votes
0answers
27 views

Infinite scroll on sidebar widget

I am trying to add an infinite scroll functionality to a website i am building, but i want to add it to a sidebar widget. I have a widget that shows a list of recent posts, and i would like to add an ...
1
vote
2answers
58 views

Add Javascript to Wordpress Menu

Is there a way to put javascript in the URL portion of a Wordpress menu item? I have a live chat function on my site, and I am supposed to put this code onto the site to make a link to open the live ...
0
votes
0answers
70 views

Flexslider not working for my custom theme WordPress

I add flexslider to my theme homepage http://templategraphy.com/wp-demo/bluto/ but it didn'not show on my homepage Here is the order of js i placed in function.php function theme_name_scripts() { ...
0
votes
0answers
25 views

How to open particular featured image clicking on desired post using javascript in wordpress?

I have created a custom post type "gallery" and created seven post in it. Since I am using dynamic featured image plugin of wordpress so I assigned two featured images to each post. Then I ...
0
votes
0answers
15 views

Page load twice when form submit [migrated]

I have this code which retrieve data from the visitor and then sending the data to php code through a hidden inputs. I send all this data on page load so the page load twice(the normal loading then ...
0
votes
0answers
289 views

Uncaught TypeError: undefined is not a function (shortcode-box)

I have a Wordpress theme that the author is no longer maintaining, and has stopped functioning properly with the update to Wordpress 3.x. Over the past few months, I have been working to resolve the ...
0
votes
1answer
30 views

How to install cool javascript feature in Wordpress?

Im trying to install this menu http://tympanus.net/codrops/2013/08/13/multi-level-push-menu/ on my Wordpress site.However the javascript can not be loaded.Here is my murkup I used the menu as ...
0
votes
0answers
13 views

How to stop writing content twice on Wordpress using ajax?

I've been using javascript and ajax to do some post request inside a page and everything seems to work fine. Later on when content got more complicated I stop writing HTML code with javascript and I ...
2
votes
1answer
57 views

How to prevent loading of all plugin's resources?

Wordpress is loading all client resources of all plugins, not just the plugin of interest. It may make sense to load jqery globally but it makes no sense to load all other plugin's Javascript in a ...
1
vote
1answer
100 views

How to get a jQuery script to run on a page?

I am having a hard time figuring out how to get a jQuery script to run on a Wordpress page of mine the "correct" way. I have followed this article and implemented what the first answer says to do. ...
0
votes
1answer
95 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
54 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
122 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
55 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
62 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
63 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
30 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
41 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
123 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
51 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 ...
2
votes
1answer
153 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
13 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
28 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
37 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 ...
0
votes
1answer
65 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
31 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
14 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
41 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
212 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
41 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 ...