I try to us wp_enqueue_script to load my javascript, here is my code:
<?php wp_enqueue_script('slider','/wp-content/themes/less/js/slider.js',array('jquery'),'1.0'); ?>
It's not working, when I look into the source, it turns to be:
<script type='text/javascript' src='http://localhost/wp/wp-content/themes/less/js/slider.js?ver=2.9.2'&...
I have created an Array dynamically in JAvascript. I want to retrive the Javascript array in Objective C (in .m file) . Can anbody tell me How to do this ?
...
Hello,
I use JavaScript for rendering 20 tables of 100 rows each.
The data for each table is provided by controller as JSON.
Each table is split into section that have "totals" and have some other JavaScript logic code. Some totals are outside of the table itself.
As a result JavaScript blocks browser for a couple of seconds (especially...
I know we can request xml, html as well as text images directly using ajax but can we request files like image, zip etc. using Ajax. How ?
...
jQuery(document).ready(function(){
jQuery('#frmSS1').submit(function(){
debugger;
jQuery.post(
jQuery('#frmSS1').attr('action'),
{
email : jQuery('#frmSS1 .email-input').val(),
format : jQuery('#frmSS1 .format-input').val(),
...
I need a script that can handle the following tasks.
Take user data from my database and fill in and submit / post data to forms
located on third part websites.:
So I want to know if is it hard to create or do somebody knows if does exists some script for mass form submissions in PHP -Javascript-Ajax ?
I run Dancers & Hostess & Model j...
Hello,
I'm creating a javascript method that populates lists depending on a radio button selected previously. As it depends on animals or plants to populate it, my problem comes when I have to populate it after it's already been populated. I mean, the plants dropdownlist has 88 elements, and the animals is 888, when I try to come back...
Hi
I'm having trouble adding icons to jQuery UI's buttonset's.Adding icons to buttons work fine.Does anyone have a example of this working
Thanks
Markup
<div id="radio" class='demo'>
<input type="radio" id="radio1" name="radio" /><label for="radio1">Top 10 FAQ's</label>
<input type="radio" id="radio2" name="radio" /><label fo...
Hi
I am using the following code for my banner. I have got 6 set up. what I want to do is specify the time each one appears for. I can change this for all of them but I want to set them indivdually?
http://webdeveloperplus.com/jquery/f...ry-ui/#respond
The bit of code that chnages the speed is. How can I indvidual set each of the 6 ba...
I have a set of data in one JSON structure:
[[task1, 10, 99],
[task2, 10, 99],
[task3, 10, 99],
[task1, 11, 99],
[task2, 11, 99],
[task3, 11, 99]]
and need to convert it to another JSON structure:
[{
label: "task1",
data: [[10, 99], [11, 99]]
},
{
label: "task2",
data: [[10, 99], [11, 99]]
},
{
...
I'm working on a site that is using Facebook Connect and recently made some changes so that the main pages are cached and if you are not logged in (checked with an ajax call) it loads the Facebook Connect javascript and renders the connect button into the page. This works perfectly everywhere except Internet Explorer 7 and 8. The weird p...
Hi All
I am developing a chat application(Customer and operator). Using jquery Ajax and PHP . From customer side he can handle multiple chat.. For example ha have two chat.. How he knows in which window the new msg comes.. I can take the count . But is there any option in jquery to blink the window when count change ?
...
After reading
http://www.pragprog.com/magazines/2010-03/javascript-its-not-just-for-browsers-any-more
im wondering which is the best IDE to develop server-side javascript applications?
I want a nice development environment with commonjs and node etc. Preferebly windows but anything is interesting really. Is there any IDE with some nifty...
i have an html table rendered page and i want to save it as CSV file in the client's machine if he click's the buttone to save
using javascript in firefox and IE all versions Pls give me some soloution
thanks in advance
...
Im trying to get some checkbox with a specific name
document.getElementsByName("test");
Unfortunatley i cant check if it is checked or not here is the code
for(i=0;i<check.length;i++)
{
if(check[i].checked==true)
{
alert(check[i].value);
}
}
Is somewhere a typo?
...
Im trying to add a Jquery validation script to a form plugin for wordpress. The plugin is written in Ajax and while it does validate the input fields, its not very pretty. That is why I am trying to use Jquery to validate the fields before Ajax hands the data over to the database.
What I need to happen is this: When a user clicks submi...
this is my setup
<div id="uxcParent">
<div id="uxcClickable"></div>
</div>
now when a user clicks in the inner element i want the mouse position with respect to the parent div and not the page.
this what i tried.
var x= e.pageX- obj.offsetLeft;
var y= e.pageY- obj.offsetTop;
this works fine only when i don't scroll the page. I ...
I'm interested in using Node.js as a socket server for stream-based communication with tens of thousands of clients. Clients will be sending votes for particular pieces of content, and receiving near-realtime updates of aggregated vote tallies from the server.
The datastore needs to support:
Storing the votes
Summarising the votes in ...
Hi All,
I open a pop-up window using following code in main.html
function openwindow(url)
{
window.open(url, "mywindow","location=1,status=1,scrollbars=1,resizable=no,width=650,height=650");
}
<a href="javascript: openwindow('/chats/chat?url=http%3A%2F%2Flocalhost%3A3001')">Open</a>
In My child.html i used
function closewindow...
I have JSP page with method = POST and action='/mydir/mypage/nextpage'
I have a button:
<button title='Continue' onclick="this.form.perform.value='cancelButton'; javascript:doCloseWindow();">Continue</button>
and JavaScript method like:
function doCloseWindow(){
location.href = "https://abc.xyz.com/mydir/?param=123"; ...