javascript

Render Excel File

Hi, I am actually rendering an excel file in the browser. I use the Response.Writefile(filePath) to dod this. It is working perfectly fine in few of the machines. I am getting a pop up with "Open","Save" and "Cancel" option. But incase of few machines after i do a save click on the popup a plain empty page remains open. This happens o...

Calling onclick on a radiobutton list using javascript

How do I call onclick on a radiobutton list using javascript? ...

How do you structure an infinitely scalable form using Javascript?

I have a product registration form that allows the user to add additional product fields by clicking "add product". When the user clicks add product, Javascript creates new product field in an existing div. I currently allow up to 10 products to be added on the form, so I setup a div structure like this: <div id="product1"></div> <div ...

Starting process from Web Application

Hi, I am actually trying to start a process for winzip and zip a folder. This i am doing using the below code in vb. Dim startInfo As New System.Diagnostics.ProcessStartInfo Dim pStart As New System.Diagnostics.Process Dim tempFileName As String Try startInfo = New System.Diagnostics.ProcessStartInfo( _ "c:\Program Files\WinZip...

jRails vs. Prototype

I am not trying to make this a preference question, I am really wondering what people's experiences are with using jQuery and Rails or jRails for development. Most rails users including myself up to now have been using Prototype. However, I am mixing in a lot of jQuery plugins since they are so easy to use and extend. I am now thinkin...

How do I remove jQuery validation from a form?

I'm using the jQuery validation plugin to validate a form, and I'd like to remove the validation and submit the form if a certain link is clicked. I am submitting form with javascript like jQuery('form#listing').submit(), so I must remove the validation rules/function with javascript. The problem is that I can't figure out how to do th...

How to use custom neighborhood/city/state for registration on drupal or elgg?

I'm implementing a social networking site. I hope to use drupal or elgg and am trying out both. I'm stuck on customizing the registration to include a neighborhood in addition to city and state. I want to have drop-down menus customize the local information based on the more global information. So, once you choose the state, the city...

javascript wont load, no clear error

Hello, I have the following code, which will not work. The javascript gives no errors and appears to load fine. but clicking on a link will do nothing. An example of a link is: <a href="#" onclick="updateByQuery('Layer3', "Ed Hardy");">Link 1</a><li>Link 2</li> and the code: var xmlHttp var layername var url function update(layer, u...

Nice way to show html <DIV> elements like gallery, mooflow, lightbox etc..

Hi, We have number of plugins to display images in a nice manner. For eg: mooflow(http://www.outcut.de/MooFlow/example-milkbox-bridge.html) with which we can display images in mac itunes manner. But i am wondering whether we have any plugins with which we can display html DIV elements like that. I don't have any image to display, but i ...

Javascript Library for hierarchical flowchart

Do you know any Javascript libraries which can present graph visually in a web page? Clarification: by graphs I mean something like workflow trees or decision trees. Sorry for not being clear. ...

Is there a way to use ungreedy matching in JavaScript for regular expressions?

I wonder if there is a way to use ungreedy matching in JavaScript? I tried the U modifer, but it doesn't seem to work. I want to write a small BBCode parser in JavaScript, but without ungreedy matching it isn't possible (at least as far as I see it) to do something like this: '[b]one[/b] two [b]three[/b]'.replace( /\[b\](.*)\[\/b\]/, '...

Javascript XML parser problem

test[_nObjectives].pool[j].feedbackCorrect = oQuestions[j].getElementsByTagName("feedbackCorrect")[0].firstChild.data; and the XML in this case contains this: <feedbackCorrect> </feedbackCorrect> When executing that line of code the following error occurs: Message: Object required I don't get it. The tag is there, if it is empt...

Using Javascript to render data onload

This post probably will need some modification. I'll do my best to explain... Basically, as a tester, I have noticed that sometimes programers who use template-based web back ends push a lot of stuff into onload handlers that then do stuff like load menu items, change display values in forms, etc. For example, a page that displays your...

How to make a WYSIWYG section on a web page?

I want to know the basic principle used for WYSIWYG pages on the web. I started coding it and made it using a text area, but very soon I realized that I cannot add or show images or any HTML in the text area. So I made it using DIV, but I did not understand how I could make it editable. So, in gist, I want to know how(in principle) to m...

Google Maps API--Can't get info window data to load properly

I have this code that generates markets I want to be clickable with a pop up info window. for (i = 0; i < marker_array.length; i++) { var point = new GLatLng(marker_array[i][0], marker_array[i][1]); var marker = new GMarker(point, markerOptions); GEvent.addListener(marker, "click", function() { marker.openInfoWindowH...

jquery/javascript: accessing contents of an iframe

I would like to manipulate the html inside an iframe using jquery. I thought I'd be able to do this by setting the context of the jQuery function to be the document of the iframe, something like: $(function(){//document ready $('some selector', frames['nameOfMyIframe'].document).doStuff() }); However this doesn't seem to work. A ...

Access the id from iframe

Hi friends, Here i had build a html page with an iframe. I had an id within the iframe src page. Is it possible to access the id from my current page. Throu javascript. Please help me. ...

A little help with DOM manip and GreaseMonkey

I'm not a JS guy so I'm kinda stumbling around in the dark. Basically, I wanted something that would add a link to a twitter search for @replies to a particular user while on that person's page. Two things I am trying to figure out: how to extract the user name from the page so that I can construct the right URL. ie. if I am on http:...

Difference between a Postback and a Callback

I keep on hearing this words 'callback' and 'postback' tossed around. What is the difference between two ? Is postback very specific to the ASP.NET pages ? ...

JavaScript Core Source Code

As we all know that javascript is an open source language and we are using Mozilla FireFox 3 and in this browser the mozilla foundation has released a newer version of the javascript but i am still unable to figure out that really where is the javascript source code in the FireFox 3 browser and where is the list of the implementations of...