JavaScript inline code and including .js file
What is the difference if i include java script in normal HTML tag and include .js file in my page ?? ...
What is the difference if i include java script in normal HTML tag and include .js file in my page ?? ...
delete this thank you ...
I have been tasked with displaying a Workflow. We have our own custom Workflow engine (don't ask) which defines the different workflows, steps and transitions. I have to display the current state of a workflow and then allow the user to select a failed step and retry it if he/she chooses. I'm looking for something that is as simple as...
Hello guys. I've been trying to create my own custom scroll bar implementation in JavaScript. It must emulate the look and behavior of MS Office 2007 I checked many solutions out there, but nothing satisfies my needs. My main problem is this: How to calculate a balance between the scroll bar height and the number of lines it will move t...
Hi, I am creating I am creating a drop down which I want to delay about 250 ms so that it's not triggered when someone quickly scrolls across the button. Here's my current code. I tried using the delay() method but it's not going well. $(".deltaDrop").hover(function(){ $('.deltaDrop ul').stop(false,true).slideDown(250); $('.del...
Hi - I would like to lay out an area like this: ---- ---- |A | |B | | | | | ---- ---- --------- |C | --------- where each of the three boxes is a <fieldset>. Box A and B might be populated by different amounts of items, yet they should both be the same height (the height of the one that needs to be larger). Box C should be 1...
I need to access an id found inside an iframe. I have the following code: print "<IFRAME id='preview_iframe_form' ... src=\"$server_url/index.cgi "; Inside index.cgi, I have the following : print"<div id='result_div'>"; &show_list(); print "</div>"; I need to check the result_div height so set the height of previ...
I am using javascript-based modal dialog. The dialog is fading in and fading out fine, but if I want the fadeout to be delayed by some seconds using delay(3000), it is not working. It simply never fades out. What could I be doing wrong? It's an MVC app. function testingh(button) { alert("DfdfdfF"); $('...
I am currently using jNotify to display my notifications. The problem is that all notifications seem to float over the website, instead of pushing the website down. I have looked at the above link and I can seen an option: classContainer: "jnotify-container" // className to use for the outer most container--this is where all the...
I am trying to implement a moving waiting bar in JavaScript. This is supposed to be visible during an AJAX request. My initial code seems to work, but has the restriction that it can be used only once on the page, since there is only the variables timerW and stateW only appear once as global variable, and the element ids can also appear...
i am trying to use the document.addEventListener('msthumbnailclick', processSelection, false); method to attach the event to the buttons but i gives me an error "Object doesn't support this property or method" i tried document.attachEvent but it's not working, looks like it doesn't really attach the function to the event any ...
Hello, everybody! I am developing GWT application and I use com.google.gwt.user.client.Window.open(pageUrl, "_blank", ""); to open new page. And it opens in a new tab when called, for example, directly after button click. But I decided to do some validations on server before opening new page and placed the call to the mentioned abov...
Hi All Please, why is this not working: $("#togglePanel").click(function(e){ $("#toolpanel").toggle(function(){ $("#orderMap").animate({marginLeft: 0, width: "100%"}, 500); }, function(){ $("#orderMap").animate({marginLeft: "341px", width: "576px"}, 500); }); }); But when I do this, it works: $("#...
Hi all, I'm pretty new to javascript and am wondering how on a page with links to images, ie. http://www.example.com/image.jpg I can get them to be changed automatically by javascript to be embedded, ie with tag Hope that makes sense! Thanks ...
It's not the setup to a joke, i'm really asking. Douglas Crockford is fond of saying that in the javascript prototypal object-oriented language there is no need for new. He explains that new was simply added to give people coming from class-based (i.e. "classical") object oriented programming languages some level of comfort: JavaS...
Why is it that every time when I load my site it is not opening as every page, but in the middle, so I have to scroll up to see top of this page. I know it's because Ajax-based chatbox, but I cannot spot where it's wrong. JavaScript is included at the bottom of the page, before </body>. Any ideas? ...
on what basis does a check if (document.addEventListener) return false and is there a way we can change this ? ...
in google chrome innerText seems to return the text of the element that the user see which is exactly what i need. so i need a shim of innerText for Firefox. for example: <div id='1'><br> f<div style='display:none'>no</div>oo bar</div> <script> function test(){ return document.getElementById('1').innerText } </script> the funct...
I have some banners I want to rotate on my index.html. What is the usual method for rotating banners? What language (js, html etc)? Any free good rotators? Links please. Thanks ...
Hi again , today i have a simple an understable problem for me . Next code: alphavar = $('#frontcolour').css('opacity'); console.debug(alphavar+' '+parseFloat(alphavar)); It runs ok width Firefox and width Opera ( now all perfect :) ) , but chrome i dont know why it doesnt parse it ok : here the answer of the debug send for me (the se...