I have this HTML structure:
<div class="start">
<div class="someclass">
<div class="catchme">
<div="nested">
<div class="catchme"> <!-- STOP! no, no catchme's within other catchme's -->
</div>
</div>
</div>
<div class="someclass">
<div class="catchme">
</div>
</div>
</div>
<d...
i am doing phone-gap app, i want to access web service from server,in javascript get,post or ajax methods working fine for http url request but it cant work for https url request ,please help me,how to called SOAP or secure web service to parse JSON in phonegap through javascript
...
Given:
var
isIE = $.browser.msie && !$.support.opacity,
isIE6 = isIE && $.browser.version < 7;
Which would be faster:
if(isIE6){ doSomething(); }
else { doSomethingElse(); }
OR
if(!isIE6){ doSomethingElse(); }
else { doSomething(); }
Are they exactly the same in terms of speed?
...
Now if that isn't a weird question, I don't know what is.
But here is the problem: I have a function in my "onSelect" option that has to collect some data (through AJAX) and I have a function in my "onComplete" option that processes the just uploaded files based on the data "onSelect" collected.
However, with very small files, the "onS...
Would it be possible with jQuery to find in all symbols that are written with
®
and wrap them with a sup tag?
<sup>®</sup>
...
Hello,
Is it possible to color the user entering code (inside a textarea) using jquery.
Specific texts like <h1>, <b> etc should be colored or highlighted.
this helps to distinguish the opening closing tags.
Please help
...
I have this code i am working on but every time i call init method I keep getting an error
this.addElement is not a function
is it because i can't call methods from event handlers ?
function editor () {
this.init = function () {
$("#area").bind('click' , this.click_event );
}
this.addElement = function () ...
Consider the following html snippet
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.js" ></script>
<script type="text/javascript" src="scripts/foo.js"></script>
</head>
<body>
<div class="apdu layer">
<div class="apdu layer entry">APDU</div>
<div class="hci layer">
<...
I got:
$(someTextInputField).keypress(function() {
alert($(this).val());
});
Now the alert always returns the value BEFORE the keypress (e.g. the field is empty, I type 'a' and the alert gives me ''. Then I type 'b' and the alert gives me 'a'...). But I want the value AFTER the keypress - how can I do that?
Background: I'd like to ...
Hi, I'm in a situation in which I need to use .wrap and :first-child.
This is what I am doing:
<script>$("a").wrap("<div class='category-wrapper'></div>");</script>
<script>$("div.category-wrapper:first-child").addClass("first");</script>
This should render a div.category-wrapper outside a link and then add a "first" class to every ...
I have a feeling I'm either misunderstanding the 'stop' event or not doing it right, but it seems to be called several times while the element is bound to is being dragged.
makeAllDragable = function () {
$(".test-table").draggable({
start: function (event, ui) { $(this).click(); },
stop: function (event, ui) { foo(...
I am using the JQuery Validation plugin for client side form validation. In addition to the colorful styling on invalid form fields, my client requires that a popup message be shown. I only want to show this message when the submit button is click because it would drive the user crazy otherwise. I tried the following code, but errorLi...
I have a problem that I can't figure out what to do next. I have a website using JQuery Galleeria in an HTML page and 10 pictures autoplay scrolling at the top of the page. It is using the Classic theme and is very basic functionality.
I tested it on my local IIS server and on an internal build server in IE7, Chrome, Opera, Firefox and...
Hello,
I have a page that uses multiple dialogs for different things. Some dialogs may have buttons that others do not while other may need to be a different height than another... All of them have a set of params that will not change. My question, can I have a default like:
$('.someElement').dialog({
width: 999,
show: 'slide',
...
I have the following code
jQuery.getJSON(encodeURI(strUrl), {address:address,state:state, zip:zip},function(data){
alert('HELLO World!');
});
If for some reason the strUrl returns a string that's not in JSON format the callback function never gets called. Is there a way to know if the response is in json format or if something we...
I'm working on a simple XML phonebook app to learn JQuery, and I can't figure out how to do something like this:
When the user enters the first name of a contact in a textbox I want to find the entire record of that person. The XML looks like this:
<phonebook>
<person>
<number> 555-5555</number>
<first_name>Evelyn</first_name>
...
So, I'm new to dynamic web design (my sites have been mostly static with some PHP), and I'm trying to learn the latest technologies in web development (which seems to be AJAX), and I was wondering, if you're transferring a lot of data, is it better to construct the page on the server and "push" it to the user, or is it better to "pull" t...
Hello,
I am developing a webpage editor tool which is based around using an iframe to load the page into, and setting various defined elements in that page as "contenteditable" to allow text to be entered/changed. My editor UI has a "fullscreen mode" option which allows the editor iframe to take up the entire width/height of the browser...
Hey everyone, I have achieved the effect described in the title using the following code:
$(document).ready(function(){
$('.button').mousedown(function() {
$(this).animate({ 'top': '3px' }, 70);
});
$('.button').mouseup(function() {
$(this).animate({ 'top': '0px' }, 70);
});
$('.button').hover(function() {
$(this).stop().an...
I'm using jquery ajax. The server returns a JSON object and I am fetching the array.
Everything works fine in FF, of course, but somehow when i try to use this syntax:
$('#edituserLink').attr("onClick","edit('"+user[0]['USER_ID']+"');");
the onClick function wont have the value as an argument. Why?
...