Hello all,
I'm working with jQuery UI autocomplete plug-in for my web application.
It works perfectly fine for my existing rows, but doesn't quite work for my dynamically added rows.
Here's my jquery code.
$(function ()
{
var tab = $("#tabs-6");
tab.find("input[name='newContactName']").autocomplete(
{
source: function(r...
Are there any options for compiling Flex/Flash projects into Javascript/JQuery? I seem to remember this feature possibly being part of Adobe's latest dev tools?
...
So I need to have an input box in where people only is allowed to enter either the words "Yes" or "No". No other input is allowed. Does anybody out there knows a plugin or any other easy way to that with Jquery? I found a plugin named constraint (http://plugins.jquery.com/project/constrain), that can prevent the user from typing certain ...
I designed a simple site with some css and jquery. All the css is in the header using and the javascript files are in a folder called Scripts and referenced in my site like below. Everything is beautiful locally, but on the server some objects such as a couple of my divs are out of their original positions, and my dropdown menus that us...
I am trying to do a result type of "json" from my struts2 action. Here is the configuration I have in my code.
Struts.xml:
<package name="example" namespace="/" extends="json-default">
<action name="vendorList" class="com.stg.providerportal.actions.AjaxVendorListAction">
<result name="success" type="json"></result>
</act...
following my question
it is posible to select values into my JSon object that mean To list distinct schools where aaa studied
JSON object look like this
[{"name":"aaa","0":"aaa","city":"paris","1":"paris","school":"gtdzh","2":"gtdzh"}, {"name":"bbb","0":"bbb","city":"berlin","1":"berlin","school":"gdezh","2":"gdezh"}, {"name":"ccc...
I have a table with dynamically created Edit buttons.
The ID of the buttons is a string that is appended with table content id.
i.e: <input id='edit'+id type='button' value='Edit' onclick=edit(this.id) />
How can i get the ID(=edit+id) value of the button using jquery.
Thanks for your replies.
Hey I am new to jquery.
I unde...
I have an div with the id article_50.
If I were to select the .title element inside article_50, I could do the following:
$("#article_50 .title").
Now say I want to select that same title, but within a click event:
$("#article_50").click(function(){
$(this).children(".title").hide();
});
Now I had to call the children method to s...
Im looking for a way, in jQuery, to check if a UL exists AND if it does count the number of LI elements are contained within it.
The following jQuery loads a UL into a hidden DIV if there are new records to be fetched from the database:
j(".refreshMe").everyTime(5000,function(i){
j.ajax({
url: "refresh.php?latest="+className+...
How do you pass items to the jQuery function "ready()" in Joomla?
$(document).ready(function(){
// some code...
});
I'm already using this function and most items in it will be static (won't change based on modules, etc.). However, in some cases, I need to "inject" additional code into this function.
In particular, I have a custo...
I have constructed a class in js/jQuery:
function JSONRequest(request_id, type){
this.request_id = request_id;
JSONsvc ='json_dispatch.php';
this.type = type;
}
JSONRequest.prototype.query = function() {
$.getJSON(JSONsvc,
{request_id:this.request_id, type:this.type},
function(data) {
...
Hello everybody,
I have a simple textarea with id:"describe_short". and the user should be able to insert a limited count of chars. so i wrote this little function:
var max_char = $('#max_chars > span');
$('#describe_short').bind('keyup', function(){
var char_count = $(this).val().length;
$(this).val...
I have a simple post, which executed the data returned as a script as such:
$.post("/home", { foo: 'bar' }, function(){
//callback function
}, "script");
Here's what happens:
The request gets sent
A piece of JS code is returned as a
response and executed
The callback is executed
I need the callback to be executed before the re...
I want to code a single js/jquery function for all forms submit events in my application.
Currently I am hardcoding on 3 locations like that and it is working but I have to create a function for each form separately:
jQuery('#myForm').live('submit',function(event) { // #myForm hardcoded here
$.ajax({
url: 'one.php', // one....
The following is created dynamically.
<div id="footermenu">
<ul><li><a href="Nettbutikk.asp" title="" class="topactive">Nettbutikk</a></li>
<li><a href="Infosenter.asp" title="" class="">Infosenter</a></li>
<li><a href="Kontakt_oss.asp" title="" class="">Kontakt oss</a></li>
</ul>
</div>
Nettbutikk Infosenter Koatakt oss
I'd like to ...
can anybody help to explain or give reference on how to send array of multiple array (or just array ) in jquery. and what the best way to do when something is failed or successfull. what i mean is how the php code send back the success or failed message
...
I have been using the following with no problems:
$("#tableid tr:even").addClass("evenClass");
But now I have rows in my table that are hidden which messes up the zebra striping styles. I have tried add 'is(":visible")' and things like that to no avail. Any ideas?
Thanks
...
Why doesn't
$(window['iframeName'].document.body).html()
...work when i change .attr('src')
When i set the src attribute of iframe to any url when i creating the page, this code
$(window['iframeName'].document.body).html()
...will work.
But when i change the src attribute by .attr('src',"www.google.com.sa") and wait to load the...
I'm unable to successfully post using jquery's ajax functionality.
URL of the running page is http://localhost:9999, URL of the target (web service) is http://localhost:8080. No the ports aren't the same, they are 9999 and 8080 respectively.
Below is the request and jquery ajax code.
Request:
OPTIONS /profile/set_member HTTP/1.1
H...
Hi, Please let me know how to check if any checkbox is checked in a specific column (for example first column) of the GridView control using jQuery? there are checkboxes in other columns too, but I need to check if any checkbox is checked in a specific column. thanks in advance.
...