javascript

Execute server side code without full postback

When a user clicks a button I need to create a .bmp file on the server. After the .bmp file is created I will load it into the html page. Would Ajax be the best way to accomplish this? ...

Trying to dynamically expand different divs with one function

I'm trying to be able to dynamically expand / collapse multiple divs with the same code.... it's controlled with the click of a span (toggle) and then i'm trying to get the next id(the div that would slide up and down) $('span').toggle( function() { $('#albumholder').slideToggle(600); $(this).html('-');}, functi...

Using external javascript files with asp.net MVC

I have some javascript inwhich I am using such helpers as var url = <%=ResolveUrl("~/controller/action") %> When the javascript is embeded in the .aspx page using the <script> tag everything works fine When I move it out to an external file those scripts that have the helper methods do not work. Other scripts do just the ones wit...

How to get caller element using Javascript?

I have a table with id "tbl" and it has 2 rows and 3 cols. Each cell(td) has an explicitly defined id. Also, the table has an onclick event that calls a function foo(). The onclick() would be generated whenever any cell is clicked. The table tag is < table id="tbl" width="80%" height="20%" onclick="javascript: foo()" > I also tri...

How to programatically clear residual ack messages from a channel destination before processing a message in Mirth?

I'm working in the Mirth environment. I have identified a bug where acknowledgements from messages already processed will be lingering around when a new message arrives. The lingering ack will then be treated as an ack for the new message. Hopefully the bug will be fixed in an upcoming version of Mirth, but in the meantime, I'm trying t...

make textarea fullscreen jquery (for use as code editor)

I have a text area in which users can type source code (html/css/js). I want to be able to let them click a "switch to fullscreen" link to make the editor fullscreen. Of course, this should work on any resolution and must also resize when a users resizes it's window. I found this plugin, http://plugins.jquery.com/project/fulltextarea, ...

Getting Database Data to the client side.

I'm sure this has been asked a million times, but what is the accepted approach to this? I have been writing php code for a while and up until recently I only copied+pasted javascript code, but now with help from YUI I've begun to understand javascript and want to use it more in an existing web app I have. I want to get various amounts...

Embedded Javascript in Master Page or Pages That Use Master Page throw "Object Expected Error"

I'm semi-new to writing ASP.Net applications using master pages and I've run into an issue I've spent some time on but can't seem to solve. My situation is that I have a master page with a structure that looks like this: <head runat="server"> <title>Test Site</title> <link rel="Stylesheet" type="text/css" href="Default.css"...

Migrating from jQuery to Prototype

I'm starting to write code using Prototype coming from a jQuery background. Is there any chart that shows the prototype equivalent method to use in place of specific jQuery methods? More specifically, I'm looking for a $('#my-id').prepend('some stuff') equivalent in prototype? ...

How can I write JavaScript cookies to keep the data persistent after page reloads on my form?

Hello, I am trying to learn how to write cookies to keep the data in my CookieButton1 button persistent and to survive refreshes and page reloads. How can I do this in JavaScript? I have supplied my source code. Any advise, links or tutorials will be very helpful. If you navigate to [http://iqlusion.net/test.html][1] and click on Empty1,...

jQuery/Javascript framework efficiency

My latest project is using a javascript framework (jQuery), along with some plugins (validation, jquery-ui, datepicker, facebox, ...) to help make a modern web application. I am now finding pages loading slower than I am used to. After some js profiling (thanks VS2010!), it seems a lot of the time is taken processing inside the framewor...

help, stuck with logic variable comparison loop, javascript

I have an input text box for search of input, the id of the text box is: id="search". if a user enters 'cat' at first and hit search. In the function, I get the value 'cat' by using the syntax: var input = document.getElementById("search").value; After that, the user enter 'dog' in the search box and hit search using the same fu...

Jquery SimpleModal flickers in Firefox

I'm using SimpleModal plugin for Jquery and I have a weird problem with Firefox ( other browsers work fine: Chrome, Safari, Opera, IE). What happens is when I click on the button that launches the modal dialog, before showing the modal (and the fadeIn of the overlay), there is a quick "flicker", less than half a second. (It's longer on ...

call the id in javascript

I have a span like this <span id="selectedTests" class="emrFG"> <span id="lblSelectedTests" class="emrHDR" style="top:3;left:6;font-size:8pt;">Selections</span> <span class="emrHDR" style="top:3;left:190;font-size:8pt;">Tests</span> <div id="recordSet" style="top:19;height:112;width:444;"></div> </span> The span shows so...

jqGrid flicker in IE when hover over certain elements in TD

The background color of the TDs are changed when javascript changes the class of the row to '.ui-state-highlight' There is a flicker when mouseout of DIVs and IMGs in the TD content, in IE, is there a way to prevent this flicker? ...

Choose a local file w/o uploading the chosen file

I am making a simple development tool for myself using PHP on my local development server. I would like a way to have a simple file-chooser to select a file without uploading it, but just retaining the file path. This is useful, because I will be the only one using the tool, and so PHP will have access to the chosen file without having ...

what is this internet explorer (javascript?) syntax error -2146827286?

Hi everyone, So, I've been trying to troubleshoot this bug where some big percentage of windows users who are on my ajax (jquery) web app are not able to play. I haven't been able to reproduce it on my end with a windows 7 IE8 running in a parallels vm. The main problem seems to be in the javascript somewhere because what users are co...

Why does triggering document.body.style.overflow restart a flash video?

I have a JS function that triggers after 10 seconds of loading a page. One of the tasks that it does is this: document.body.style.overflow = "hidden" I have a copy of flowplayer on the page, which autoplays. As soon as the code above is run, the video that is playing reloads, and starts from the beginning. Removing this line, causes n...

jQuery selector for option tag value attribute returns null

Hello, I am trying to change the selected option in a select dropdown box with jQuery. I have it set so that it finds the hash tag at the end of the URL and based on that hash tag it changes the selected option in the select box. Most of my code is functional, it successfully finds the hash tag and executes the if statement that corresp...

Hidding a Flash SWF upon loading

Hello, I have a question that is probably very simple, but I cannot find an answer here or on Google. I am loading a SWF in an HTML page the following way (using JavaScript): AC_FL_RunContent( "src", "${swf}", .... "type", "application/x-shockwave-flash", "pluginspage", "http://www.adobe.com/go/getflashplayer" ); I ...