I'm trying to get the height, width, and placement of a section of HTML code, so that I can create a <div> with position: absolute to overlay the HTML in question. Sometimes this HTML is a single element, other times it's a bunch of elements.
I've tried to wrap the HTML code in question in a <span> and then use $('#spanToMeasure').heigh...
I have the following jQuery code that works fine in IE8, FF but in IE8 comp mode it gives this error
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Creative AutoUpdate v1.30.00)
...
I have a form for uploading images. I'd like to disable submit button, until user selects an image to upload. I'd like to do it with jQuery. Currently I have a JavaScript that prevent user from submitting the form more than once by disabling it on submit. It'd be nice to combine this functionality with the new one.
Here's what I've got ...
I'm building a website to organize comics collections.
So you have on the left a list of yours comics and if you click on one of them, the page with the details about that comic is loaded on the right with AJAX with the jQuery load() function.
I don't have a page for every comic but for every serie (one for all the "Walking dead", one ...
hi, my string data as as follow.
var HmtlStr = "<span>My names is <u>KERBEROS</u>. AGE: 29, my eyes <b>BROWN</b>.</span"
result must be like this which i want;
<span>My names is <u>Kerberos</u>. Age: 29, my eyes <b>Brown</b>.</span
thank you very much for your help, already now.
...
My html page loads a bit slowly because of the jquery that's in it. I want an image that tells the user that it's loading, until the entire page get loaded. How should I go about doing this?
Many thanks in advance.
<script type="text/javascript">
$(document).ready(function(){
//my jquery here....
});
</script>
...
Hello, I wanted check-in with all the jQuery folks to see, whats the latest, best plugin for In Place Editing?
I've used Jeditable way back when and figured there is likely something better by now as Jeditable doesn't appear to be maintained and it's a huge download (24kb+s?)
Any suggestions? I'm using Rails 3, so hopefully it supports...
I am asking this question again but hopefully being a little more clearer. See this thread for more info
http://stackoverflow.com/questions/4056326/javascript-error-in-ie8-compatibitlity-mode
I have the following markup on the page of which I cannot change directly. I need to change the the function called from "change_option" to "cha...
I'm working on a API-Server with Rails 3 wich is pretty handy so far but I'm running across a error all the time and I'm not sure wether it is because of my Apache Setup or the Rails App.
When I try to do a HTTP DELETE or PUT request on http://sample.domain/uri/id via XHR, curl or HTTP-Client.app Rails or Apache responds with 404 or 403...
I'm trying to assemble an href tag based on values a user selects from a select menu. This is the code I have, which isn't working. I'm pretty new to jQuery, so, if someone can help me out or suggest a better way, that'd be great...
$(document).ready(function()
{
if($('#addtocalendar-selects').length) {
$("select.addCalselect")...
$(function () {
var ptitle = $('div.portfolioItem div.image img').attr("title");
$(this).each(function () {
$('a.play').attr({
'title': '' + ptitle + ''
});
});
});
Well there's my code, it works but I'm not really familiar with the each tag.
All this does currently is applies the first 'ptitle'...
I am facing a challenge and don't know how to solve this in jQuery.
My purpose is to write an extended function replacing the Facebook callSWF function.
Facebook callSWF run like that: **domObj.callSWF("myFunctionName", param1, param2 ... paramx);**
Now, I need to replace that function. For jQuery, I can call the Flash via JS like ...
I'm new to JavaScript as well as jQuery. This is the only code I have on an otherwise blank page:
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
document.write('Hello World');
});
</script>
When I load the page in a brow...
I am working on a script that takes a users on screen selection (when they physically highlight text in the browser) and is supposed to manipulate that text.
This is what I am trying to do.
Take the selected text, search for the selected text in an original string and then wrap the text that is found in the original string with a certa...
Hi,
I am populating jQuery accordion from simple xml file, I can get my data and append it as html to simulate accordion markup. Then I call for accordion, it won't work!
I guess the problem is binding newly created data to DOM, I have tried .live() and .delegate with no success.
How should I proceed?
Here is simplified example of my...
I am working on a project where I have to send an ajax request to some java based middleware that someone else is in charge of. 4 things can happen in response to the data I POST back...
the userid is correct so the response I receive includes:
XMLHttpRequest.responseText = "someurl.html"
XMLHttpRequest.status = 200
the userid is corr...
Hi Friends,
I am having the code like this
When the checkbox is clicked I want to highlight that row.I don't want to use id for a table. Because I am having lot of tables in the same format and I want to apply the css when checkbox is clicked by using single Jquery function.How can I achieve this?
...
I'm trying to use the following switch statement in an ajax success callback:
success: function(datain) {
switch (datain)
{
case "ERROR. No ID. Try again":
$(".errors").append('There was an error.');
break;
...
I need to strip out all text before and including "(" and all text after and including ")" in this variable.
var this_href = $(this).attr('href');
The above code produces this...
javascript:change_option('SELECT___100E___7',21);
However it can produce any text of any length within the parenthesis.
A Regex solution is OK.
So in t...
Hi,
LE2. Any other ideas on how to fix this?
I have this code and can't figure why is not working properly:
$(function autorun() {
if ($("#contactForm").is(":visible")){
setInterval( "refreshAjax();", 150000000000 );
}
else {
setInterval( "refreshAjax();", 15000 );
}
setTimeout("autorun();", 2000)
});
...
<body onLoad="autorun(...