javascript

scrollable table with sorting

Hi, I want sortable table with scrolling with header fixed. I want these feature with jquery or normal javascript. I appreciate your suggestions. ...

including form by user action

i have a page containing a form and directs to another page (page2) asusual. Page 2 have a edit button that must include the entire previous page into a div in page2(initially it has none).How to do this with javascript? ...

set child element width to parent div

i'm having a parent div and inside that child element will be table. i'm hidding some columns in the table thro' css becoz to avoid inline-style. so how can i reflect the width to parent div after hidding the column of table... ...

firebug saying not a function

<script type = "text/javascript"> var First_Array = new Array(); function reset_Form2() {document.extraInfo.reset();} function showList1() {document.getElementById("favSports").style.visibility="visible";} function showList2() {document.getElementById("favSubjects").style.visibility="visible";} fun...

JavaScript function works fine in Opera but doesn't work at all in Firefox. Why?

This is my JavaScript function: function switch_div(firstID,secondID) { if((document.getElementById(firstID).style.display == 'inline') && (document.getElementById(secondID).style.display == 'inline')) { document.getElementById(firstID).style.display = 'none'; } else if(document.getElementById(firstID).style.dis...

How to show something similar to an alert like SO does here with javascript?

You have started writing or editing a post. ...

Show/hide div based on value of jquery UI slider

Hello, I am using the jQuery UI slider and trying to show a div when the slider hits a certain value and hide it otherwise. The div is showing/hiding but at unexpected moments. Can anyone spot where I'm going wrong with my syntax? Here's the script: $(function() { //vars var conveyor = $(".content-conveyor", $("#sliderContent")), ...

Accessing URL executes JavaScript

Hey, I've coded an HTML page using jQuery for loading content. Now if I want to link directly to a submenu, is this possible to do with JavaScript? So for example if someone goes to www.mydomain.com/submenu1/ then some JavaScript code will execute and load the needed contents? Thanks a lot :) Is it possible to realize that with htacc...

JavaScript does load before I suggested it should do

Hi i have a MasterPage (ASP.Net MVC) which contains a couple of loads for Jquery ui and under that a contentplaceholder for view specific scripts: <script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"></script> <script src="../../Scripts/ui.core.js" type="text/javascript"></script> <script src="../../Scripts/ui.tabs.js" typ...

Menu javascript/dhtml

Does anybody know a good free javascript/dhtml menu with vertical alignment, supporting multi-level options, expanding on hover? Tks in advance ...

Internet Explorer visible repaint

I'm building a javascript map application and I've noticed that in Internet explorer 6, 7 & 8 I can visibly see the lines as the browser repaints the screen from top to bottom when I do things like pan & zoom. Is there anyway I can minimise this? Firefox, chrome & opera are all really fast and I can't visible see the repaint lines. ...

Updating GridView without postback using javascript

Hi sir, I have a gridview and a dropdownlist on my page. The gridview is binded through code behind with some columns. Among these price is also a column. My scenario is to change the price field based on the dropdown criteria. The price column consists of values in "lakhs", and i need to change them as crores or usd or some other fo...

Make programmatic range selection visible to the user?

How can I make a programmatical page selection visible to the user, as if it was selected by the user? var range = document.createRange(); var startPar = [some node]; var endLi = [some other node]; range.setStart(startPar,13); range.setEnd(endLi,17); Thank you. ...

JavaScript ranging gone wrong

The following code gives me a really weird error in Firefox: Error: uncaught exception: [Exception... "Index or size is negative or greater than the allowed amount" code: "1" nsresult: "0x80530001 (NS_ERROR_DOM_INDEX_SIZE_ERR)" location: "file:///G:/test.html Line: 13"] <html> <head> <title>test</title> <scr...

Webscraping a javascript based website

Hi, There are many tools that scrape HTML pages with javascript off, however are there any that will scrape with javascript on, including pressing buttons that are javascript callbacks? I'm currently trying to scrape a site that is soley navigated through javascript calls. All the buttons that lead to the content execute javascript wit...

Sending multiple forms at once with Ajax

This is a technical design question more then a syntax question. I have a large page with 9 forms corresponding to different tables. I've wrestled with the design and I there's no way out I have to send all the forms via ajax to the server for processing. There are lots of interrelations. I can't combine the forms into one large one eit...

Javascript Calculate the sum off multiple HTML-input values

Hi everyone, im looking for some Javascript code to calculate the sum off multiple HTML-input values. The amount off inputs are dynamic so i'm looking for something like "for each" input. the format off the numbers is 1 000,00 (space as thousand separator and , as decimal separator). My inputs are in and array so the ID's and NAME's is...

How to make SVG work with IE?

Hi Guys, Does anybody know of a comprehensive library to make SVG work with IE (7 and 8 in particular)? I wanted something Javascript which could be included in my web page and which would silently convert all my SVG to VML in a fashion similar to what excanvas does for Canvas. ...

Javascript handling an XML file

Can Javascript directly handle an xml file requested via AJAX. I have a server side xml file and need to populate fields from this xml. Can i say 'directly read "xmlfile.xml" (on server)' and then extract values in javascript from the response received and populate as required? Can you explain with example if possible? ...

Customizing the markitUp Toolbar

Has anyone figured out how to truely customize the markitup toolbar? Sure you can remove items from the mySettings config variable but that somehow garbles the toolbar. You end up with the right toolbar items represented by the wrong buttons. Any ideas? ...