Hi,
I'm working on a site which uses the EZPZ tooltip jquery plugin, and I have the style of the page changing dramatically when a button is clicked, making the tooltip pointless.
But, I can't for the life of me figure out how to unbind the event from the <li>.
Here's the code that is used to actually set up the tooltip on the li's:
var...
With the dynamic properties of JavaScript, it's often difficult to distinguish between library code and original code that is relevant to the website. Modifications can be made in separate files, but they could be directly or indirectly modifying library code. As far as I can tell this means that, if I were to use a GPLed JavaScript libr...
I have two g:select comboboxes that I want to add to the multiple select list when clicking an image.
Here is the function in javascript:
function addToList(list,firstOpt, secOpt)
{
var y = document.createElement('option');
y.text = firstOpt + ' - ' + secOpt;
y.value = firstOpt+'-'+secOpt...
I have found utilities that can compress html, javascript, and css files individually. However, lets say I have a file called homepage.php with php at the top of the page, css and javascript in the header, html in the body along with more php code and perhaps some more javascript. Sometimes, the chunks with javascript may also have php i...
hi experts, i'm having list of user with check box, so the function is at least one check box must select else validation done using jquery to delete selected user, once validation done there should confirm message box appear to ask confirmation wheter yes or no to delete. so below is my code without the confirm message box
function d...
In asp.net page, How can i call the javascript methods for form processing-submitting if the user browser supports javascript and use code behind events if the browser does not support javascript.I have the javascript code to send the form data to an ajax server page using jquery. Don't know how to invoke the needed one based on the brow...
I'm making a large and complex application and I need to set tabindexes to help user navigate through the pages. This is a private application so I don't have restriction about (ab)using javascript (jquery).
I currently have these questions.
1) How do you force with javascript (jquery) the browser to move the cursor inside a specific t...
I'm working on some custom Javascript for a CMS template at work. I want to be able to make a certain <li> element on the page receive the class of "current" for that page only. So in the global page head I have something like this:
<script type="text/javascript">
function makeCurrent(id) {
var current = document.getElementByI...
So when eval(data) is complete, how would you set a callback?
...
Hello everybody,
first of all my question: Is it possible to pass file names from a running Flash application, which only purpose is to enable multiple-file-selection, to a JavaScript application which handles upload of all files to the server?
I have examined various Flash upload solutions (like SWFUpload, Uploadify, etc.) and none of...
I do not want the outer div tag? how to i add my responsetext with its codes only.
This is working, but the result is not what i wanted.
var newdiv = document.createElement("div");
newdiv.innerHTML = xhr.responseText;
document.getElementById("middleright").replaceChild(newdiv, document.getElementById("moreoption"));
middleright is th...
How do I add some sort of call back so that I can run further code after render() has completed?
function next(){
target = max;
render();
//When render complete, do some more
//change values....
//render();
}
function prev(){
target = min;
render();
//When render complete, do some more
}
var timer;
...
I have a button that changes the background of a div when its rolled over. the background needs to change on a timer so i have used setTimout to execute methods that change the backgrounds. I thought clearTimeout would cancel and timeouts i have set so i put this on the mouseleave event. However it doesnt seem to stop the timeouts. Is my...
I am working on a javascript downloader and need to click a button. I can see the button and get it's values with web developer and dom inspector in FF. But when I try to:
var freeUserForm = this.iFrame.contentDocument.getElementById('js_free-download_btn');
It returns null and when I view the page source the element is not there. So ...
All I get is this:
An error has occurred in the script on this page
line: 31
char: 5
error: expected identifier, string or number
code: 0
url: http://example.com
It's difficult to find that line since I have several external and internal scripts.
How can I debug this? (By the way, the scripts have no errors in chrome or firefox or ie...
Hi,
We are about to commence a redesign of our site and are exploring all options in improving performance. The site is fairly heavy in javascript loaded adverts, therefore we need to be really lean with the javascript we use.
Do any of you have any experience of lighter frameworks or more efficient frameworks that I could explore? Or ...
Is there an alternative to innerHTML? - issue on Blackberry browser
Blackberry 4.6 browser does not seem to use innerHTML properly.
Instead of replacing contents, it appends contents!
function load_activities(){
x$('#dummy').xhr('program.php',{
method:'post',
data: 'action=list'.
callback: function(){
...
Hey guys.. I am writing a Windows application in C# that minifies CSS files and packs JS files as a batch job. One hurdle for the application is, what if the user selects a JavaScript file that has already been packed? It will end up increasing the file size, defeating my purpose entirely!
Is opening the file and looking for the string ...
I'm trying to do an autocompleter in mootools 1.11. Everything works fine but i just cant check if
this.selectel.getNext()
is null or whatever. Firebug outputs [li] for every element and [null] for the non existing element i output via getNext();
I saw that some people are just doing:
if(this.selectel.getNext()) {...
but thats no...
This question was previously asked and answered correctly, but there did not seem to be a solution posted.
If a site has iframes, and one wants to prevent those from being enclosed in a frame from a different domain, simplistic frame-busting will not be useful:
<script>if (top != self) top.location = location</script>
However, since ...