A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

0
votes
3answers
240 views

Display a consistent Google Plus icon on ALL pages of my site

My website is http://tablified.com and I have managed to setup the Google Plus script. The issue is that every page of the site displays a different Google Plus count. For example, if you go on my ...
0
votes
1answer
581 views

Load images after page load

I just heard somewhere that by using some javascript it is possible to load of a page after the entire page load completes, When I googled, I found LazyLoad, but it seems that latest browsers are not ...
1
vote
1answer
168 views

Javascript Helpers

Are there any WordPress specific Javascript functions that could be used as helpers when writing custom code? I am thinking specifically of one that would pull back the base URL of your install, but ...
0
votes
1answer
274 views

How do I override all stylesheets and scripts without a plugin

I'm finding that plugins completely destroy my source formatting and generally suck at following standards. How can I absolutely block all style-sheets and move all .js to the footer of the site ...
2
votes
1answer
380 views

dynamic external javascript generated using php

How to write an external javascript file with dynamic variable values generated using php from wp db values? So instead of using wp_localize_script for inline js variables, I'd like to use ...
1
vote
2answers
387 views

Auto-detect javascript errors and warn theme user

This may sound simple, but it's not :) What I want, and most likely many theme developers do (themes that use javascript / jquery), is to warn the theme user that his site has javascript errors. In ...
0
votes
1answer
2k views

Howto use WP built in Thickbox for images?

I've been searching for a better way to utilize the built in Thickbox function for images. I've been using my method for a few months, but I don't think it's the best way to do it. Here is the code ...
0
votes
1answer
29 views

What's the default setting for including a <script> in a post

As we're evaluating whether we should build a Wordpress plugin and in that context I'm trying to figure out how Wordpress handles script tags in a post? What's the default setting? Thanks!
0
votes
1answer
202 views

How can I duplicate “Add Custom Field” with just JavaScript?

I frequently need to add several Name-Value pairs to the Custom Fields of a post. At present I add these one by one, by entering the Name and Value and clicking Add Custom Field. I'd like to speed ...
0
votes
2answers
207 views

PHP or JS for header image rotator?

I'm working on a site that is using this PHP script to load a random header image every time it reloads. I would like to use Javascript instead to allow the browser to cache images and improve load ...
-1
votes
1answer
60 views

Need help with javascript on specific effect [closed]

As I am new to javascript: I would like to change onmouseover one div id with another div id. On mouse out everything would go back. I was looking and tried this online for several hours with no ...
1
vote
2answers
694 views

Jquery conflict

I have been trying and trying to fix jquery issues. i have in my header lots of jquery. I use it for slider and other things that are built into this premade theme. I am unable to add anything that ...
0
votes
1answer
346 views

A carousel slideshow plugin in JavaScript

Am looking for carousel slideshow plugin that is similar to the one implemented here. Any JavaScript slideshow that closely resembles that one would do. It does not even have to be a WordPress ...
3
votes
1answer
166 views

Force core to use .dev JavaScript files

I was wondering if there's some constant telling WordPress not to use the minified versions of scripts but instead load .dev ones. Already tried define('SCRIPT_DEBUG', true); but it only turned off ...
0
votes
1answer
2k views

How can I run AJAX on a button click event?

Update: I managed to get the AJAX working, but not in the click event. I updated the question to match this. I'm trying some code I found on the page: 'AJAX in Plugins'. However I can't get it to ...
1
vote
4answers
235 views

Script will not print in head if path to file is correct

I'm dealing with a rather hackish implementation, where header.php has this line: include_once "tracking.php";. Inside tracking.php, there are these lines: <script type="text/javascript" ...
2
votes
1answer
1k views

Hook the Keydown Event in the TinyMCE Post Editor

I would like to hook the keydown event in the TinyMCE Editor on the edit post admin page. I managed to hook the HTML content editor using the following code: jQuery('#content').keydown(function(){ ...
0
votes
1answer
615 views

Insert JavaScript in a blog post or a new page?

I want to insert some JavaScript into my post. Actually those are some small apps made in JavaScript. Please let me know how to insert the JavaScript into the post ?
0
votes
1answer
358 views

'ajaxurl' is undefined — wp-includes/js/wp-lists.js

My site displays the following script error in IE8: Webpage error details Message: 'ajaxurl' is undefined Line: 1 Char: 102 Code: 0 URI: ...
6
votes
3answers
2k views

How to enqueue scripts on custom post add/edit pages?

I'm trying to enqueue a JS script only when someone is adding or editing a custom post type I created called "recipes". Currently the script works ok when I do this: if (is_admin()){ ...
0
votes
3answers
580 views

Securing Contact Form 7

I have a client who's website I created with Wordpress. It has a contact form created with contact form 7. This client is a subsidiary of a larger organization who's IT department runs scans on their ...
0
votes
1answer
256 views

Hovercards and other hover over image functions don't work anymore!

This problem is driving me crazy. So, I've Jetpack installed and the Gravatar hovercards activated. I could live without them, but other "hover over image" functions (e.g. I'm using the Guan Image ...
0
votes
1answer
574 views

What to include to use jQuery UI Auto Complete

I was looking at the scripts included with WP and dont see what I can include to use jQuery UI Auto Complete. What do I use? I tried including the whole jQuery UI from Google CDN and auto complete ...
0
votes
2answers
881 views

PHP echo inside javascript

I've got jwplayer installed in wordpress and have it showing in a single.php page... the way I have it I need to get a custom field in the javascript and I;m having no luck echoing it in there. I know ...
1
vote
2answers
2k views

What's the best plugin for allowing javascript in a post or page?

Just looking for a recommendation on the best plugin to allow javascript in a post or page.
1
vote
1answer
1k views

Colorbox ajax loading of outside HTML content works perfect on localhost but not on server

I am trying to render content generated by a php file in [jQuery Colorbox][1] through AJAX in my WordPress site. The PHP resides on the same server in the same domain. It works perfect when I run it ...
0
votes
2answers
56 views

W3TotalCache and Javascript — what should go where, when?

I'm just starting to use W3TotalCache and am a little perplexed by how I should load the gobs of javascript and CSS rendering on the site in the question. Adding some of the pre-minified jQuery ...
1
vote
1answer
121 views

Unwanted line break before <input>

Based on help here ( Use of Javascript with Dojo/Dijit on a WordPress page) I got Dijit half way working using a custom template. But, I still can't figure out why WP inserts breaks where it does. ...
0
votes
1answer
214 views

Javascript to open new window

I'd like to have a link open in a new pop-up browser window. In non-WordPress with JavaScript I would do it some like this (but I would add some underlink/color to make it look like a link). ...
0
votes
2answers
504 views

Use of Javascript with Dojo/Dijit on a WordPress page

I just created a web page that uses a lot of JavaScript to build a fancy form that helps build an build the object/html behind an mp3 player for a user. I got it working and tested in a plain-html ...
2
votes
3answers
534 views

Editing Source Code in Wordpress

I am a senior in a college computer science program, and therefore have a decent knowledge of code and several languages. However, I am doing a summer internship type program, and the company I am ...
2
votes
3answers
288 views

wp_localize_script $handle

Can anyone tell me what the "$handle" ( first parameter ) of wp_localize_script is normally used for. Thanks. P.s.: I have no idea why but stackexchange is telling me this question dosen't meet ...
1
vote
4answers
3k views

Javascript not working in admin

It seems that none of the javascript is working when I log into the admin section of my site. I cannot do anything that requires javascript or AJAX : Nextgen thumbnails, Widget organisation, even the ...
3
votes
2answers
615 views

Correct place to register and enqueue scripts

I'm queueing several scripts in my themes Functions.php: if ( ! function_exists('b99_init_scripts') ) : function b99_init_scripts(){ if ( !is_admin()){ ...
1
vote
1answer
691 views

simple expandable vertical menu, java script problem

I am trying to create a simple expandable menu in wordpress. Bellow you can see the javascript I am using (copy and mix from internet). <script type="text/javascript"> ...
1
vote
2answers
629 views

WP-Cufon adding extra space in my paragraphs in Firefox and Chrome

I'm using WP-Cufon for font replacements. It's adding extra cufon canvas out side of p tags in my page, which is seriously messing up my layout. The URl is this http://doscasas.com.mx/dev/ . But it ...
0
votes
2answers
363 views

Wp-minify doesn't seem to minify my JS code

I've added to the theme (twenty ten) a php template file in which I've written some javascript code. I then created a new page and set it to use that template. Then I installed and activated the ...
1
vote
1answer
153 views

js and images files are not recognized - beginner

it might be the simplest question but i can't find why my javascript files and images are not recognized by wordpress : i put all my JS files and images in my theme's folder, so i created a folder ...
0
votes
1answer
440 views

Best way to add some custom javascript using jquery to a child theme

I use the default TwentyTen theme and I have made a child theme with some CSS adjustments, and that's pretty much it. Now I'd like to do two things Make the theme load the latest jQuery, and to ...
1
vote
1answer
135 views

Updating the Drag-To-Share eXtended share URLs?

How can I update the URLs that Drag-To-Share eXtended generates? At least in version 1.13, sharing items for Twitter and Facebook does not produce the proper url string for actually sharing the ...
1
vote
3answers
267 views

Adding a Javascript slideshow to the home page

I'm trying to add a Javascript slide show to my WordPress home page. In my theme folder I have a js folder and then in that I have jquery.cross-slide.min.js and jquery.min.js. This is what I have and ...
2
votes
3answers
383 views

Adding <select> with javascript to admin bar. Works in Chrome/Safari, not Firefox

I'm trying to add a new menu item to the WordPress admin bar. The sub menu item contains a select drop down to switch themes. In Firefox with href => false it generated <a href=""> and when I ...
0
votes
1answer
1k views

MediaElement.js works on one site but not the other?

I love the MediaElement.js plugin but I seem a little stumped. I have installed it on two WordPress sites: http://blog.mattforget.com/?p=94 and http://oedipus1.com/home/?p=3822 The sites are hosted ...
1
vote
1answer
545 views

AJAX Contact Form Issue

I created a contact form for my sidebar that is working perfectly in Chrome but not in IE or FF. I've been staring at it for hours and can't find out what I did wrong. I'm not getting any errors ...
0
votes
1answer
387 views

Nested Gallery Shortcode INTERMITTENTLY working

I have an Expand/ Collapse plugin which, via a shortcode, can expand/ collapse content. My expandable content is a shortcode of a gallery. See here: http://shop.dearearth.net/collections ...
2
votes
4answers
3k views

How wp_enqueue_script works?

I am trying to get scripts via wp_enqueue_script();. I have tried this in header but WordPress is not importing any script. I am using like this wp_enqueue_script('jquery'); ...
0
votes
3answers
466 views

What action hook can I use to add a JavaScript to a page post using a theme template that is not including get_header() nor get_footer()?

So the reason why I am don't want to include get_header() or get_footer() tags is because this page will be loaded as an iframe using the thickbox modal plugin and its content will be a form and I ...
1
vote
1answer
477 views

window.send_to_editor throws unterminated string literal error when adding image with multi line description

I am using media-upload.php?type=image&tab=library script to add an image to a post with a description that contains html. This php script uses the javascript function window.send_to_editor to ...
2
votes
4answers
2k views

Asynchronous Javascript Loaders

I'd like to take advantage of loading my scripts while the page is loading. ie. Yepnope, head.js etc... But I also want to be able to enqueue the script so other plugins don't try adding their own. ...
0
votes
3answers
289 views

Plugin - Make sure jquery is loaded in my settings page plus my JS file

I'm creating my first wordpress plugin and I'm struggling to find the correct and best way to make sure jquery and my own JS file is included on my settings page of my plugin. I do not need them to ...

1 6 7 8 9 10