How do I determine the versions of jQuery that shipped with each version of WordPress since like version 2.7? Was there a log kept somewhere on this? Because as a plugin developer, I may need to rely on a function that might not work in older versions of WordPress.
...
I'm using a jqgrid to display the results of a search. When the search button is clicked it does this:
$("#Search").jqGrid('setGridParam', { url: url }).trigger("reloadGrid");
Where url contains the search params eg:
var url ="/search?first=joe&last=smith"
The web server is receiving this url and responding appropriately. But on ...
TLDR Using plain HTML / Javascript. Want to block access to some pages (doesn't have to be super secure just to stop some peeking eyes).
I would like this to be a discussion preferably on different ways of doing this? If anyone has any other ideas than using cookies or differeny ways to do this.
I thought of simply doing this by sett...
Hello guys
I am trying to add a click event on the element that is return from the server via ajax. Apparently, I have to attached my js file inside my return response instead of my main script. Is this the best practice? Do I have to create the separated js file to add event on the return text??
Example:
My Jquery - selectWeek.js
...
I am a new bee to ajax world. I am working on a site which uses jquery and codeigniter which processes big files like 2GB. It basically parses file and stores some extracted data from it, it uses ajax to show how far the files have been processed etc.
Now I want to change the way we process files. I want to first store the file on serve...
I'm developing in Google App Engine (python sdk) and I want to use jQuery to send an Ajax request to store an answer to a question.
What is the best way to send this data to the server? Currently I have:
function storeItem(question_id) {
var answerInputControl = ".input_answer_"+question_id;
var answer_text = $(answerI...
TLDR Using plain HTML / Javascript (Client Side) I want to prevent viewing of certain pages. The user will have to type a username and password and depending on that they get access to different pages.
Answers can NOT include server side whatsoever
It does not matter if they can break it easily. There is no sensitive information etc....
I have this script and the rows that have td class "odd" will not toggle the blue color that the rows without the class "odd" do. anybody know why?
EDIT: When you click a row (tr) it's supposed to toggle blue(.hltclick) and when you click it again it should toggle back to it's original color. For some reason the tr's that have the class...
I have a webpage that fires off an Ajax request which stores some data to a database and I want to update the webpage so that the user can see their changes have been submitted.
There are at least 3 ways I can think of accomplishing this:
Immediately update the webpage with plain JavaScript by grabbing the contents of the user's input...
function isNewUsername(str){
var result;
$.post('/api/isnewusername',
{username:str},
function(data) {
result = data.result;
},
"json");
return result;
}
So , my problem is very simple but I can not figure it out . I want to access result from the isnewuserna...
Hi All,
In my web page there is a textbox to get the scanned barcode value. Once we scan the barcode it has to get details from the database. I am creating the change event for the textbox.
Problem: $.ajax is not working.
Code:
var target = $('#txtBarcode'), val = target.val();
target.change(monitor());
function ...
Beginner question here. I'm going to make a Jquery function that is used to change an image when hovering over it. I use the id name as the selector. How do I make it generic so that I don't have to have a copy of the function for every single tag with a rollover image?
$("#home img").hover(
function(){
blah
...
I have a JSF application using Primefaces. I use the multiselect tree component which includes a checkbox on each tree node. My problem is that I need to preselect the tree nodes with values coming from the backing bean. It seems that jquery will be the way to go but I don't know how to retrieve the object values from the managedbean in ...
I have a form that I want to be used to add entries. Once an entry is added, the original form should be reset to prepare it for the next entry, and the saved form should be duplicated prior to resetting and appended onto a div for 'storedEntries.' This much is working (for the most part), but Im having trouble accessing the newly crea...
Hello,
currently, i have a comment box, where user can comment, however when too many comment on it, the page stretches down. so when user press comment, the box appear, however user have to scroll down to comment.
how do i achieve when user click comment box, page slide down to comment box or straight go to comment box?
i;m using jqu...
I have used jquery jstree or dynatree using check boxes and found the same logic
The thing is that the if for example there is a parent and 4 child.
a) i select all the 4 child (parent get auto selected) the 4 child and the parent node id get posted to the controller.
b) But if i select less then 4 children (parent get auto selected) ...
Hi to all,
I have to highlight the search terms in the text area.
I have one text Filed,search Button and text area.
Quote ...
After i have enter the search string in the text field whenever i click the search button it highlight the search terms which is available in the text area and focus the search term in text area.
I have try ...
hi,
Here i write code to take printout the textarea content using jquery.
I load the two java script (jquery-1.3.2.js and jquery.print.js)
But these two source file not support rich:datascroller tag(component)..
There are two problems occur:
Using jquery, print succesfully worked. but rich:datascroller not worked (without using j...
Hi,
this is my code
<script type="text/javascript">
$(function() {
$("#dialog").dialog();
});
</script>
<div id="dialog" title="Basic dialog">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
and firebug...
I tried to find the answer in other questions but actually nothing worked -.- Somehow I hate JavaScript ... Anyway! My Code looks like:
function validate()
{
if ($(":input").length == 0)
{
$(":input").addClass("notvalid");
return false;
}
else
{
$(":input").removeClass("notvalid");
return true;
}
return true;
}
$(":in...