When I'm using jQuery in no conflict mode I still like the convenience of the $ object so I tend to structure my jQuery like:
(function($) {
//Now I use $ instead of jQuery
$(document).ready(function(){
//some code in here etc
});
})(jQuery)
But this seems to break code assist, it works for the jQuery object but n...
I want the submit action on a form() to be automatically fired when all input elements within this form are completed/filled. How to do it using ajax?
...
$('#element').method();
or
var element = $('#element');
element.method();
...
Ok, basicly, I made a script (that one) that makes a .post to a php file, which then insert some info into a database to track link clicks. Works fine in IE8 and Opera 10, but, doesn't work in Firefox. It simply loads the link target without inserting into the database. It only works if I add an alert() or return false; something that pr...
Hello everybody.
I have a problem with some basic ajax and asp.net web service. In my website page i have a text box that is reach text editor, when i put text and try to submit it, ajax supposed to take the text and pass it to asp.net web service. When the sentence contains no escape characters it goes well, however when it does contai...
On mootools I'm used to declare once and reuse often. An FX example would go like this:
myEffect1 = new Fx.Slide($('myElement1'));
How should I go on jQuery? Meaning, the docs make it straightfoward to use:
$('myElement1').click(function(e){
this.slideToggle();
});
But if I want to call this effect somewhere else on my code wil...
Hi, I am trying to use regular expession in javascript but it is not working. My custom control contains property called RegEx which is provided by user and I need to validate the input value against this regex. As properties in JS will be in double quotes("") the regualr expression fails(case -1). Case 2 succeeds thought both the cases ...
Hi,
I really thinks jQuery Expander plugin is great but it can't do satisfy my needs. It cuts text and put a "read more" button after the text which expands the text. But it only cuts when the text length is more than a specified value. But what if the text is:
Some text:
Blah blah
The text use as much space as a text with many...
Hi,
I am using this code:
$(document).ready(function() {
$("#tabs").tabs({
event: 'mouseover',
fx: {
opacity: 'toggle',
duration: 'slow'
}
})
});
which works fine if I have either the FX or the mouseover, but if I combine the two, the tab content shows, and THEN fades in. Any i...
I'm trying to show some UI Hints on an ASP.NET MVC 2 app, much like the way they are displayed on the careers site when you edit/fill out your resume: when a form control has focus, a little description of how to enter the required information appears next to it.
What is the best method to show these suckers...
...
I'm trying to integrate a wicket ajax link's response with prettyPhoto. I'm having difficulty getting the wicket response to be displayed within the prettyPhoto lightbox.
...
I have these dynamically added file inputs, that I then use a jQuery 'Ajax' file upload plug-in with. I'd like the upload to start once the input value has been 'changed'. However, Internet Explorer doesn't seem to respect the onchange event like other browsers. How can I do this?
Here is, more or else, the code that is affected:
var h...
hey guys: I've been building a website with some animated rollovers, where I animate the background image to give a colour fade effect. It works fine in FF3, Safari, chrome, but IE8 throws the "undefined is null or not an object" error.
Full text:
Message: 'undefined' is null or not an object
Line: 22
Char: 16
Code: 0
URI: http://www.p...
Hi Guys,
i'm a total noob when it comes to Jquery and i've been trying to learn it but as of now i still don't know how to query this one out.
I have a table structure that looks like this:
<table class="wba_main_table" align="center" border="0" cellpadding="0" cellspacing="0" width="">
<tbody>
<tr>
<td style="d...
I'm working on a login script, and I want to send the input to a PHP script, check it, and then do something if it matches the one I have in the config.php file.
pseudo php code (admin_login.php)
<?php
require("../config.php");
if($_POST['password'] == $password) {
$showLoginPage = true;
}
else {
$showLoginPage = false...
In my application, I will fetch a table of data from the server side when the page is first loaded, and use jqgrid to render it.
I can't seem to get it to work, when I request for the DummyView page for the example below, the web browser pops up a message, asking me to download the application/json file, indicates that something is dee...
The existing application mixture of native and third party controls and hosts IE in a webbrowser control for rendering html. Also there is bi-directional update of UI - selecting anything in native controls ( e.g. treeview ) updates html , and vice verse javascript or hyperlinks in a webrowser may cause certain actions which update UI o...
Hey guys,
Really appreciate any help someone might be able to offer!
I've been trying to set up a JQuery Ajax call to a web service, and the little debugging I've done so far shows that the web service will return parameters and from the client side I've use the alert function to show that data is going to the data string, but then I ...
For convenient notification purposes, not secure information purposes:
I have javascript polling for new information while logged in. I want it to stop while logged out. What is the best way to let javascript know about the logged-in/logged out status?
Run a javascript function on login, and one on logout (which might get skipped if ...
I have two types of buttons that I want to use the same code block. Rather than create two event handlers is it possible to reference the buttons by doing something like this:
$(".lb",".da")
I've tried the specific example and it doesn't work but hopefully it'll give you an idea for what I'm aiming at doing.
TIA
Lloyd
...