How to refresh <DIV>
How to refresh the auto refresh div inside the div theres is php The following code dont work? var refresh = setInterval(function() { $("#recent_activity").html(); }, 1); ...
How to refresh the auto refresh div inside the div theres is php The following code dont work? var refresh = setInterval(function() { $("#recent_activity").html(); }, 1); ...
What is the proper way to document objects of this style in jsdoc: /** */ var strings = { /** */ stripHTML: function(html) { //does something }, /** */ validHTML: function(html) { //does something else } } Namely the proper parameter to define the object, and to recognize the sub...
I have a JQuery dialog that I dynamically open and close. Everything is working fine except the position of the dialog is not remembered after it is closed and then reopened. The size is maintained but the position is not. I have tried hooking into the 'Open' event but it appears that the position is being reset by JQuery UI after I ma...
I'm trying to resize a textarea to fit the content in it, as tightly as possible. Here's my current effort: function resizeTextarea(t) { a = t.value.split('\n'); b = 1; for (x = 0; x < a.length; x++) { c = a[x].length; if (c >= 75) b += Math.ceiling(c/75); } b += a.length; t.rows = b; } This works fairly well, but seems to fail whe...
I manage a group of programmers. I do value my employees opinion but lately we've been divided as to which framework to use on web projects. I personally favor MooTools, but some of my team seems to want to migrate to jQuery because it is more widely adopted. That by itself is not enough for me to allow a migration. I have used both jQ...
Using ASP.Net 2.0 a. On a parent ASPX page, after a HyperLink control is clicked, I need to open a (child) page in a popup window, as modal. b. Then when that popup window (child page) is closed, I need to get the selections from a datagrid on that popup window and refresh the parent page accordingly. c. I have open window javascript...
hi , i have Problem with opening popups in javascript i have this function to open my popups in IE6 and IE7: function open_window(Location,w,h) //opens new window { var win = "width="+w+",height="+h+",menubar=no,location=no,resizable,scrollbars,top=500,left=500"; alert(win) ; window.open(Location,'newWin',win).focus(); } it's ...
Hi, Except for Caja(which is Java based) is there a simple javascript implementation for sandboxing iframes? ...
I want take a section of a picture, for example the middle of a picure, and repeat only that section in the background of a div. Is this even remotely possible? I suppose I could do this in javascript, but that would be messy. In theory the answer to my question should be able to take a single pixel from a picture and repeat it in a li...
i am creating an empty div in the javacript DOM. but when i call some function on it, for example, var hover = document.createElement("div"); hover.className = "hover"; overlay.appendChild(hover); hover.onClick = alert("hi"); the onClick function isnt working. instead it displays an alert as soon as it reaches the div creation pa...
I need to know. Is there some javascript implementation exist to handle deltas between XML data ? So main point is to detect difference existence, it doesn't matter what was changed: attribute or node value. Requirements are following: each node will have unique id (it's one of simplifications made to find more candidates-libraries) ...
I'm playing around with jetpack to change the title (and ideally the favicon) of certain pages. Firebug is showing that the HTML of the page has been changed correctly but Firefox just won't update the title of the window and/or tab. This has to be possible, somehow, since Twitter Search is doing exactly that. It's updating the title...
I'd like to create a web based stop motion video player. Basically a slideshow that shows 2-4 images per second. Each image might be a maximum of 20KB. I don't want to preload all images in the slideshow as there might be thousands, however I need to preload more than just the next image in the show as this will not playback fast enough ...
How do I remove accentuated characters from a string ? Especially in IE6, I had something like this : accentsTidy = function(s){ var r=s.toLowerCase(); r = r.replace(new RegExp(/\s/g),""); r = r.replace(new RegExp(/[àáâãäå]/g),"a"); r = r.replace(new RegExp(/æ/g),"ae"); ...
When a user hover overs one of the items such as Research, Brand Strategy, Audience Engagement the background colour in the bottom section changes via a inline style. http://www.odopod.com/work/tags/strategy/ I was wondering, how it is done or which Jquery plugin they were using? Many thanks! ...
I have a PHP class with a static function: <? echo view::getUserSelector() ?> Which outputs: <div id="user_selector"> <div class="user"> <h1>Username1</h1> <a href="javascript:selectUser(this);">select</a> </div> <div class="user"> <h1>Username2</h1> <a href="javascript:selectUser(this);">s...
I wont to run a block of code in a certain amount of time and then when done, carry on with another block of code. ...
Hi, how do I select special attributes like 'user:name' or 'city:id' using jQuery? <div user:name="Ropstah"></div> <span city:id="4"></div> Javascript //this works: alert($('div').attr("user:name")); // alerts 'Ropstah' //this doesn't work: alert($('div[user:name]').attr("user:name")); //error alert($('div[user\\:name]').attr("...
Hi, i need to get a reference to the FORM parent of an INPUT when I only have a reference to that INPUT. Is this possible with javascript (or else jQuery) ? function doSomething(element) { //element is input object //how to get reference to form? } This doesn't work: var form = $(element).parents('form:first'); alert($(form...
Does anybody know how to execute javascript functions in an html that is loaded via ajax? I mean the html contains both plain text and javascript. In my case it seems that only the in-line javascript (eg. onclick="dosomething();return false") gets executed. The pre-defined functions which are wrapped by < script language = "javascr...