A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

2
votes
1answer
68 views

Wordpress Ajax Login without page reload

I'm currently developing a Wordpress theme where I want the user to be able to upload images before he register or log in to the site. The initial problem was, you can´t upload images to wordpress ...
2
votes
1answer
248 views

Menu Link Redirect Based on Username or User ID

I am building a client portal where my clients can log in and see all their pending projects, completed projects and create new projects. Though I'm stuck at the start. The dropdown menu is called ...
2
votes
1answer
183 views

WP3.5 Media Uploader - how to make it accept multiple images?

I'm wondering how to make WP3.5 media uploader return 2 or more items in attachement? It always runs once even if 2 items are selected. The code: $('.button').on('click', function(){ var ...
1
vote
1answer
17 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
1answer
48 views

Using TinyMCE in plugin?

I've successfully integrated DataTables Editor into WordPress as its own plugin. It loads successfully and I can edit a DataTables' table. What I'm trying to figure out is how to utilize WordPress' ...
1
vote
1answer
49 views

Proper way to enqueue a generated script that isn't in a .js file?

What's the proper way for loading a script via WordPress that isn't in a .js file? I'm generating some javascript on the fly based on some field options in a plugin. I want to load it into the page, ...
1
vote
1answer
123 views

Trigger Customizer saving process with Javascript only

I'm working on a custom theme that uses WordPress Customization API to let the user play with parts of the content of his website, basically the front-page which he can modify by adding/removing ...
1
vote
1answer
94 views

Generate sidebar depending on height of post

I'm building a site which features sidebars next to each post/article displaying random thumbnails linking to other posts. Each sidebar should never be longer/bigger than the post it's sitting next ...
0
votes
0answers
111 views

I want to edit an AJAX Wordpress Pagination

I am using this code to be able to load my content using Ajax (loading content without refreshing the page). The code I found fades out the content and fades in the new content. I want to add the ...
0
votes
0answers
56 views

Pre-selecting category from drop-down list or convertingdrop down list to links

I'm using this plugin called buddypress links and in it's link directory page the user can sort through the links by category from a drop down list(screenshot).What I need is seperate links for each ...
0
votes
0answers
58 views

Saving data when javascript state changes

how to save data using ajax in wordpress when there is a change in javascript variable's value ? Vimeo Video State Change - http://jsfiddle.net/bdougherty/HfwWY/light/ I'm trying to save the (video ...
0
votes
0answers
45 views

Load and execute javascript from body

I am trying to have the following code posted in the body (from the admin interface) <div class="zx_ABCD zx_mediaslot"> <script type="text/javascript"> window._zx ...
0
votes
0answers
128 views

How do i keep my current page menu highlighted on pagination?

I have a navigation menu in a page that highlights the current menu you’re on based on the URL by adding a class. My problem is that my page is paginated, so sometimes the user will end up at: ...
0
votes
0answers
25 views

form to generate url

i have a form on my site to generate url and it works good but the user should wait until the whole page is loaded to be able to use it properly , i think that happens because i use window.onload and ...
0
votes
0answers
50 views

Adding SSL verification seal javascript from Thawte breaks website

We are trying to add Thawte SSL seal javascript to our website, but it keeps everything else from loading if added to a normal text widget. For example, if we add it to where the Thawte SSL image link ...
0
votes
0answers
42 views

Javascript not displaying inside post

Hi I'm trying to add a video that uses javascript inside my post within the editor. I always enter it within the HTML editor with the post and have tried several different plugins but with no luck. ...
0
votes
0answers
89 views

Fancybox 1.3.4 : how to disable effect on gallery?

A plugin I have installed use fancybox 1.3.4. Yeah I know, pretty old... On galleries, between images, the fancybox applies a kind of transition effect. I cannot disable it. Here is ma javascript ...
0
votes
0answers
45 views

Why can't I load JS script in a plugin?

I have this at the bottom of my plugin file, but while I can access the plugin, I can't see any reference in the code to jquery.chained.min.js in the source: add_action( 'wp_enqueue_scripts', ...
0
votes
0answers
461 views

JS error: The “fb-root” div has not been created, auto-creating

There are two errors on my page but i dont know where they are coming from The "fb-root" div has not been created, auto-creating all.js?ver=3.6.1:56 FB.getLoginStatus() called before calling ...
0
votes
0answers
97 views

Responsive theme 'undefined' on woocommerce single product pages in mobile nav bar

I am using the responsive theme for my mobile site and am using 'any mobile theme' plugin to implement that them whenever someone is on a mobile device. when I am on a woocommerce single product page ...
0
votes
0answers
34 views

Page template dynamic links based on browser size

I have a page template that links though to another php file to define what is displayed. The code for the page is - <?php /* Template Name: Portfolio */ ?> <?php get_header(); ?> ...
0
votes
0answers
85 views

javascript errors on mobile browser, not on desktop

I'm building an application based on the wordpress backend. The app is working correctly on desktop, but on my ipad I noticed the javascript broke. I made some investigations and I discovered that ...
0
votes
0answers
34 views

How can I apply a Javascript to the results of a jQuery .load

I'm working on a new plugin that provides shortcodes specifically for ShoutIRC users in Wordpress. This is done by running PHP queries and pulling the results via jQuery.load I'm a long long way off ...
0
votes
0answers
58 views

How do I get jQuery working on the current instance of some repeatable metaboxes?

I hope I can be able to explain my issue. I have a select element that is part of some repeatable metaboxes. I use the select element to show/hide metaboxes. It works fine as long I don't ...
0
votes
0answers
33 views

Default RTE editor in popup dialogs through templating system?

Setup: The content type add/edit page (content type == post, page or other custom type). A Handlebars template wich is PHP include()ed in the content type add/edit page, which contains a call to ...
0
votes
0answers
188 views

Plugin - including external javascript calling google maps

I have developed a javascript plugin retrieving data for my website (no wordpress here). The user can simply add it to its website with a div (the container of the plugin) and a script tag (the ...
0
votes
0answers
67 views

Wordpress Twenty Twelve Theme: Wrapping post dates in javascript

I'm looking to hide the dates of my posts from search engines (as my content ages very slowly). When it comes to wrapping dates in javascript, I had some success in the past with a theme that used a ...
0
votes
0answers
89 views

Advice on loading iframes in a custom post class

So I wrote this custom post type that works as it should. The post type consist of a table of titles, when the heading is clicked a twitter bootstrap modal is loaded. Now I realized that I need to add ...
0
votes
0answers
97 views

BuddyPress AJAX doesn't work despite buddypress.js enqueued and ajax calls being made

I have BuddyPress 1.8 and WordPress 3.5.2, along with bbPress and many other plugins Since BuddyPress switched to a new template handling system from 1.7, there was no longer need for BuddyPress ...
0
votes
0answers
38 views

Display post name on homepage

On this website I'm currently developing, I've got a post changer on the homepage (example: songhype.com), what basically happens is Wordpress checks the category for posts, pulls in the post using ...
0
votes
0answers
546 views

Add jQuery Validation in Gravity Forms Form

So I have some jQuery functions that adjust my column layout on window load and window resize. They are inside a file called bp-columns.js that looks like this: jQuery(window).load(function () { ...
0
votes
0answers
31 views

cookies creating bugs and interfering with js and correct images and css display when login in the back office

i have experienced weird behaviours with custom js functions output as well as contact form correct display. I have localised a problem being , everytime i connect to admin , i need then to clear ...
0
votes
0answers
38 views

3.5.x Theme Customize: Handling Custom Control Requests

I am extending the WP_Customize_Image_Control as a means to include an upload-able word mark for a site. The control works just fine, but I need to do some post process handling on the image (i.e. ...
0
votes
0answers
126 views

Replace Short code in Visual Mode - WYSIWYG editor

I write a code in functions.php to make shortcode [template_url] and [site_url] in WYSIWYG editor. Its works fine for front end. add_shortcode('template_url', 'replace_shortcode_template_url'); ...
0
votes
0answers
43 views

Detect WYSIWYG editor - Visual or Text Mode

Is there a Way to know the editor is now in Visual mode or in TEXT mode, so i can trigger something. And also how to make default editor mode in Visual mode [ force to show Visual Mode ]
0
votes
0answers
91 views

How to load external ads script?

I am trying to load this script on wordpress, but it is not loading <script type="text/javascript"> var ord = window.ord || Math.floor(Math.random() * 1e16); document.write('<script ...
0
votes
0answers
61 views

Javascript not defined but included

I am attempting to implement a javascript function within a page. It is implemented correctly in the header and loads correctly: <?php function forceNumber2() { wp_enqueue_script( ...
0
votes
0answers
18 views

Custom Div (googlemap) in wordpress page

I'm using a theme called Energy that I purchased on themeforest last week. I have created a nice homepage using the wordpress backend thanks to the nice features and methods that came with the theme. ...
0
votes
0answers
78 views

featured post show in category base

i have 2 featured post in 1 div id, 1 big class and 1 small class . i want big featured div are post in category base.. big featured post code show in below. <div class="main_feat"> ...
0
votes
0answers
168 views

Save Changes function after table is sorted using jquery

I have a simple table, and the jquery works great for sorting. The fields drags an drops perfectly, and updates then and their. Also of course the data in the fields are saved in a array. The data in ...
0
votes
0answers
40 views

One page site (returning from google) + history manipulation

I am making a one page site using wordpress. The one page has all the menu pages linked into one, but there will be arbitary pages (landing pages) for subcategories and stuff at the moment. I have ...
0
votes
0answers
51 views

How to utilize theme customizer live preview in this situation?

Short version: I am using the theme customizer in my theme and javascript for the live preview. I am not sure how to implement the javascript for php(as seen in code excerpt). I am creating a theme ...
0
votes
0answers
157 views

how to retrieve subcategory related to category in edit page from view page by using javascript

I am doing a basic product page by using JavaScript,php and html. I retrieve the category related subcategory drop down list from view page .but my subcategory is not change according my category .I ...
0
votes
0answers
169 views

PressThis works inconsistently in Safari

... and this has been true for several years and several OS X versions, just haven't found any answer. On the other hand, my Tumblr bookmarklet has worked 100%, through all this. Or maybe they're ...
0
votes
0answers
53 views

get_option include <br /> in my adsense

As title said I saved in wp-options -> option_value a adsense code but when I try to display to website in the code I get some "<script type=\"text/javascript\"><!--<br ...
0
votes
0answers
95 views

Created custom control from theme customizer, where should I add code it will control?

I have created a custom control for the theme customizer which is a simple button and label. I am going to be using it as a theme reset button that will clear the theme mod settings to their original ...
0
votes
0answers
54 views

List.js inside WordPress widget

I am trying to implement list.js (http://listjs.com/) inside my WordPress widget, so far with no success. At first I have tried it in a simple index.html file outside the WordPress environment just ...
0
votes
0answers
87 views

Dont remove comment box when replying to existing comment

When using the WordPress comment system the top Comment Reply box dissapears when I click to reply to any of the existing comments. If I then click cancel it reappears. Is there a way to keep this ...
0
votes
0answers
120 views

wp_register_script stops wp_enqueue_style working

Ambiguous title, yes. Sorry. I am using the roots framework to register scripts and stylesheets. When I include the wp_enqueue_script('main_js'); my style sheets come out as <style media="" ...
0
votes
0answers
103 views

How can I update options with javascript?

I'm writing a plugin with an admin screen. I have a set of radio buttons to select the tabs on the plugin's admin page. I also have a 'last_tab' option that allows the administrator to pick up where ...