How to Stop Browser from Closing Using ASP.NET or Else ?
hi, i got a web page and when browser fire Closing Event i wanna stop it ? How can i do that in asp.net or anyother alternative? ...
hi, i got a web page and when browser fire Closing Event i wanna stop it ? How can i do that in asp.net or anyother alternative? ...
Is there a way to get (from somewhere) the number of elements in a javascript object?? (i.e. constant-time complexity). I cant find a property or method that retrieve that information. So far I can only think of doing an iteration through the whole collection, but that's linear time. It's strange there is no direct access to the size of...
Basically, Google Adwords give you a code so you can track how well your campaigns are working. You put in on your order thank you page to track and order, so you can see which keywords bring in the most orders. It gives me a code like this: <!-- Google Code for Purchase/Sale Conversion Page --> <script language="JavaScript" type="text/...
What JavaScript Mobile development tool would you use based on momentum, existing documentation and functionality, and ability to get passed the App Stores strict policies? ...
For design purposes, I want to copy the exact HTML that is created by some javascript after the page loads. Firebug shows me what's going on, of course, but I really just want some static text that I can copy and paste at will. ...
I am currently using the jQuery user interface to resize a DIV and to also resize the YouTube video that rests inside the DIV. http://jimenglandweb.com/projects/jquery/instancecontainer.html When the containing DIV is resized, the YouTube video should follow suit: $("#instanceContent").resizable({ maxWidth: 425, maxHeight: 344, m...
I've been looking for ways to do this for a while but haven't quite been able to find the right way to do it. The task: Execute Javascript from a Linux command line. For example, have the binary or whatever is going to interpret Javascript load up some .js files, then print a value of some variable. More concrete example: I would like...
i want print the content of a javascript object in a string format like when we alert a variable in javascript same way i want print the object in formatted way ...
Is it possible to get the current URL that an IFrame is set to if it's loading an outside page (say, Wikipedia)? I've seen a few people say that it is impossible if it is not on your own server, but the places I've found that were 4 years old. If it is impossible, is there an easier way to display a page inside another page and still h...
I need to pass a few serialized form elements into a function to return them as a JSON object. I wrote the function, but fieldName ends up in the json object as "fieldName" instead of the actual field name ie; "PositionId", or "Series". The values however are correct. JS will not allow me to use field.name, but it does allow field.valu...
I have a jquery question about selecting Id. Basically, I call a javascript function from an onClick function which I pass in control Id and LabelId. If I use document.getElementById, it will work, however, if I use jQuery selector, it's NOT working. <script type="text/javascript"> jQuery.noConflict(); function ToggleProgressE...
Would it be possible if a user clicked on a link inside an iframe showing an outside site to have the webpage request be routed through the server that the iframe is hosted on? Example: Iframe on somesite.com showing google.com User clicks a result link to someothersite.com The request is sent through somesite.com's server and is logged...
I have a large set of data to be plotted on google map. Because of the data set size, google map always freezes for a few seconds before all the points are plotted. I used an animated spinning circle during the loading time to show it's in progress. But end users prefer to see actions. They want data plotted on the map step by step, inst...
I can't seem to find the correct way to take some html being returned from the server, replace each ' with &apos and finally - append the new html to the DOM. Before the modification, the below works just fine to append the html (not altered) $(xhtml).find("#inner").appendTo("#appendTD"); But now that I want to alter the xhtml first,...
I am working on an application using the YUI DataTable and my result set is rather large (2,000+ rows) which takes YAHOO.lang.JSON.parse() about 5-6 seconds to parse. During this time the browser becomes completely unusable. Does anyone know of a way to grab a JSON response and parse it into JS with timeouts? Say... 100 rows every 50-...
I have: A web server (server 1) An application server running some beast of a legacy web app (server 2) An iframe on server 1 pulling in the application from server 2 My problem is: The legacy app uses JS validation on its forms. When a user attempts to submit an incomplete form, an alert pops up to notify the user that they are a d...
The problem that I'm having with it, is that it tracks all the events in the log reader, too. This makes it very difficult to work with. As I scroll up down, click or move in the reader to examine events, it's scrolling all over the place adding new events. Is there a way to filter it to only include certain events from certain sources? ...
I'm trying to take an existing JSON object and create smaller JSON chunks out of it specific for creating separate graphs. Here is my code which uses jQuery: function updateStationGraphs (bsid) { $.getJSON("includes/system/ajaxDataInterface.php", {format:'flot',target:bsid}, function(data) { var graphOptions = { series: {...
(waves newbie flag, also new to JS and jQuery) I'm working on my companies website, being built on Squarespace. We have a group of products most of which also have some sort of accessories. I am trying to avoid a super long page of divs with a tabbed interface, that many divs was making me go cross eyed. So I thought I could use the S...
I've got a setInterval() called in a jQuery plugin, but I want to clear it from my main page, where I don't have access to the variable that the setInterval was stored in. Is there a way to clear all timers present on a page? ...