How do I close a popup window on a press of a button and initiate postback on the window opening the popup?
see above... ...
see above... ...
Hi, I currently have a preloading image javascript script: function MM_preloadImages() { var d = document; if(d.images){ if(!d.MM_p ) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++){ if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; ...
Hi there, I'm trying to run some java script just before a page redirect but it fails to run. When I comment out the Response.Redirect all works fine but this goes against the particular requirements. Any ideas on how to implement this functionality? Dim strscript As String = "<script>alert('hello');</script>" If Not Cl...
I was under the assumption that if I disabled a div, all content got disabled too. However, the content is grayed but I can still interact with it. Is there a way to do that? (disable a div and get all content disabled also) ...
I am trying to make a form with some dynamic behavior. Specifically, I have my inputs in divs, and I would like to make it so when the user clicks anywhere in the div, the input is selected. I was using JQuery 1.2.6 and everything worked fine. However, I upgraded to JQuery 1.3.2 and I am getting some strange behavior. When I click on an...
Hello, I have a question concerning functions with jQuery. I have a function that once the browser is ready the function finds a specific table and then adds hover & click functionality to it. I am trying to call this function from code behind in an asp .net page due to the fact that once someone adds to the database the update panel ...
After learning about how to print out debug messages using Visual Studio's Tracepoint feature, I was curious to see if it worked in JavaScript files. So far, it does and it doesn't. If I am editing a .js file in VS 2008, I can click on the margin to create a breakpoint. I can then right-click the breakpoint and select "When Hit" and the...
How do I hide the navigation bar for popups in javascript? ...
I have a jquery.keypress on a text input, and keypresses that are interacting with the browser's autocomplete are all firing the event. Is there a way to tell if (for instance) enter was hit in the input as opposed to in its autocomplete dropdown? ...
Let's say I have a method that takes a little to long to finish to go without any user feedback at all. In my case it's sorting the rows in a table element (all in the DOM; only takes too long if there are a lot of rows), but it might do anything. I want to show the "progress" cursor while it runs. Here is what I have currently, but I...
I'd like to do this in JavaScript. To clarify, I mean a page. Sorry about that. ...
I want to code a function in javascript that every time I call it in the webform it fires up an specific validator in that same webform. ...
I'm not sure how to best word this, so I'll give it a shot and hopefully revise it as it comes to me. Using javascript/jQuery, let's say I want to get some data from a clicked element to a function for processing. A couple of options: OPTION 1: $('.classOfInterest').click(function() { // How can I get 'a' and 'b'? var c = $...
I'm trying to get Visual Studio 2008 SP1 to do intellisense for external javascript files, as described here by ScottGu, but it's not working. I have an ASP.NET MVC project with several javascript files in the Scripts directory. All of the scripts are included on a master page. Intellisense is enabled, but it only gives me the basic jav...
I'm using Jquery to add a row to the end of a table, that works fine. I want to use the JqueryUI highlight method to highlight the row whenit gets added. It works, but its not highlighting the new row, but the one above it. I'm guessing this is because i'm using the .after function to add the new row. How can I make it highlight the righ...
Ok, so on a web page, I've got a JavaScript object which I'm using as an associative array. This exists statically in a script block when the page loads: var salesWeeks = { "200911" : ["11 / 2009", "Fiscal 2009"], "200910" : ["10 / 2009", "Fiscal 2009"], "200909" : ["09 / 2009", "Fiscal 2009"], "200908" : ["08 / 2009", "...
[[webView mainFrame] loadHTMLString:html_string baseURL:[NSURL fileURLWithPath:@"/"]]; [[[webView mainFrame] webView] stringByEvaluatingJavaScriptFromString:test]; When I omit the second line which references a location.href = "#id" that so the webView will scroll to the appropriate line, the page loads fine. But when I include it and ...
Slippy maps are web widgets which allow the user pan around a two dimensional plane by grabbing and dragging it. This control was made popular by Google maps, and can be seen on many modern mapping systems today. It's obvious as you watch them load that they are actually a grid of images which are loaded as-needed as the user pans. My qu...
I need to be able to create a data structure in PHP which creates for instance, an array of car vendors. Each of those arrays, has child arrays which are types of cars for that vendor. So you'd have something like $cars['toyota'] = array("camry", "etc"); I need to be able to create this data structure in PHP so that on the JavaScript ...
Hi, I have an a.js file written in windows-1251 charset. Now, I have a b.php script, that has header('Content-Type: text/html; charset=windows-1251'); in it. It also includes the a.js somewhere in the template. So I'm loading b.php into c.php (also headered that way) using jQuery.load. What I get is ??? instead of normal words in th...