I have one javascript error in my IE8.
"Object doesn't support this property or method" It's this line. pthumb = $("#pthumb").attr("src"); Does anyone know why? ...
"Object doesn't support this property or method" It's this line. pthumb = $("#pthumb").attr("src"); Does anyone know why? ...
I have the following code: $(document).ready(function(){ $(".yearInner").hide(); $(".year", this).hover( function () { $(".yearInner", this).slideToggle(); } ); }); It hides the div with class yearInner, and then when the containing div with class year is hovered over, the yearInner div toggle...
I have a photo gallery web page where a single <img src="XXX" /> element's src is changed (on a click) with javascript to show the next imagea poor man's ajax I guess. Works great on faster connections when the new image appears almost immediately. Even if it takes a few seconds to load, every browser I've tested it on keeps the old imag...
This will be implemented in Javascript (jQuery) but I suppose the method could be used in any language. I have an array of items and I need to perform a sort. However there are some items in the array that have to be kept in the same position (same index). The array in question is build from a list of <li> elements and I'm using .data(...
I have a form with 2 text boxes that all do the same thing. They each call the JQuery function below after each keypress. Since I have 2 textboxes that all do the same thing, I'd like this function to work for both. How do I change this function so that it'll grab the textbox's ID that is currently being edited instead of just the one...
Hi everyone, I have a problem with the returned data from a ajax request. Basically when I click on a link it runs a ajax request to load some html into a div, that part is working fine the problem comes when the data has been loaded. Part of the html loaded is a form, this form works fine if I load the page directly but when it is loa...
I would make to make a small WYSIWYG editor similar to the one used by StackOverflow. Basically, it would have buttons like [quote], and when that button is clicked, [quote] [/quote] should be inserted in the textarea where the cursor is or at the end of all other text. If the [quote][/quote] could be highlighted in some way that would b...
Hello, I am new to the group and just had a simple question about the jQuery(window).load(function() {});. I have an external JS file that gets inserted dynamically on the page "after" the window load event occurs. Inside this JS file I have a statement as follows: jQuery(window).load(function() { alert("Something"); }); The que...
Hello, To see what I mean, check out my source here in IE. When you click the login button (right now it is just wired to show and hide divs and not actually log anyone in), the login panel is hidden and the welcome panel is shown, but it is right up against the top header until you click the page again. I cannot figure out why this i...
Hello all, I looking for a script that will enable me to select an area in a table (using the mouse), something similar to this script - http://odyniec.net/projects/imgareaselect/. What I need to do is to select some td's with an identical area effect as used in the imgareaselect above, and manipulate the containing data. Any ideas? ...
I am trying to use Jquery to load the contents of an XML file and then format (html) the results. The only thing is that, I would like it to load only nodes in the XML file that contain a specific phrase. I have been unable to find instructions on this. This phrase will be a variable so, I will have a master XML file with all values a...
$("div#myDiv").css("content") returns undefined in IE8. Works perfect in other browsers and IE6 & 7. ...
OK, for the life of me I can't uderstand why the follwing code is always returning false?? I have debugged with firefox to see what going on, but the function seems to always return false even when the condition username taken is 0(false), here is the jquery code: function CheckAvailability() { showLoader(); $.post("/Account/Che...
Having few issues with a jquery hide show item. Got a list of images, want to show the first one but hide the rest and when the user clicks next the current one is hidden and then the next list item is shown. Been banging head against wall for a while, and there is probably a very easy solution but for some reason I am unable to see it...
I'm developing a menu. This menu, will change the background image when you click on a link, as almost all menus do. If I click in one link from the menu, this link background will change the color. My jQuery script is: $(function() { $('#menu ul li').click(function() { $('#menu ul li').removeClass("current_page_item"); $(this).a...
I'm trying to learn about openDatabase, and I think I'm getting it to INSERT INTO TABLE1, but I can't verify that the SELECT * FROM TABLE1 is working. <html> <head> <script src="http://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("jquery", "1"); </script> <script type="text/javascript"> var db; $...
jQuery: how to create a new div, assign some attributes, and create an id from some other elements attributes? How can I accomplish this. What I've tried below is not working and I'm unsure how to make it work. What I'm trying to do is create a div and assign it some attributes, then append this div to all the < li > elements that are ...
i have a html page in which 10 table , i want to use jquery table sorter for one table only, But its CSS is implementing in all tables. is there any solution for this ...
Hi, I'm using jQuery validation in ASP.net MVC. I would like to show validation summary and also individual error messages besides the control. I can do either one at a time. So it would be really helpful to know how can I display both. Thank you. ...
edited, this is it function handleDate( timestamp ) { var n=new Date(), t, ago = " "; if( timestamp ) { t = Math.round( (n.getTime()/1000 - timestamp) ); ago += handleSinceDateEndings( t, timestamp ); } else { ago += ""; } return ago; } function handl...