I'm running fiddler against my live website which uses a bit of ASP.NET AJAX and a bit of query. I'm noticing a MASSIVE ScriptResource.axd file of 300KB
Starts off like this
// Name: MicrosoftAjax.debug.js
// Assembly: System.Web.Extensions
// Version: 3.5.0.0
// FileVersion: 3.5.30729.196
//------------------------------...
I have a aspx page where in I have made a form. There is a help button on this form.When I click on the help button I have created html code in Javascript.
function help_For_admin()
{
var Message_Help = '<p><b>Admin Page Description</b></p>'
document.getElementById("help").innerHTML =Message_Help ;
document.getElementById("Div...
using javascript, how can I access a specific child of a row?
javascript (not jquery please)
eg: second of where ID=id33322010100167
<table>
<tr id="id33322010100167">
<td>20101001</td>
<td>918</td>
<td>919</td>
<td>67</td>
<td>CAR PROBLEM</td>
</tr>
<tr id="id33322010100169">
<td>20102001</td>
<td>913</td>
<td>914</td>
<td>62</td>
<t...
Hi There,
Couldn't find this anywhere, maybe I'm looking for the wrong verbs.
I'm trying to get a textbox to require a certain format as you type in a number. For simplicity, lets use a phone number example. As I type into the box I want some guidelines to help the user enter the correct format of the phone number:
(4__) ___-____
...
Using the "Good Parts" defaults on JSLint, the use of HTML event handlers (such as onclick) is not allowed.
What is the logic behind this? What is bad about them that should be avoided?
...
Hello Stack!
I'm trying to make text automatically resize to fully fit inside a static 200 width 100 height div.
Basically I want the maximum font-size available depending on the lenght of the content fed in the div.
I'd like to use the least amount of Javascript/Jquery possible.
Thanks in advance!
...
I'm looking for a way to get a custom template for a node in TreePanel .. i would like to wrap it in a div or something like that. Can abybody help ?
...
Hi,
I have these strings:
/banking/bonifici/italia
/banking/bonifici/italia/
and I would like to remove - with javascript - first slash and last slash if it's exists.
I tried ^\/(.+)\/?$ but it doesn't work.
Reading some post in stackoverflow I found that php has trim function and I could use his javascript translation (http://phpjs...
How to make teamcity and/or TFS 2010 to run closure compiler for js files in a project.
There are 2 reasons for using closure compiler:
error/warning detection
js minification/obfuscation - optional
...
Is there a way to have a live connection (like for a chat server) with a server using only HTML(5)/JavaScript?
...
I have a mixed client-side/server-side validation using jQuery validation plugin. The validation happens on both submit and for some fields on change. The form is being submitted via AJAX. There is another validation going on the application just before updating the DB.
If the data changes are not stored to the database due to this vali...
Hi all,
I am thinked to try to synchronizing two scripts (own firefox extension and greasemonkey's unsafeWindow.VARIABLE);
In extension:
window.ISS_NEED_SEND = 0;
window.SENDWHAT = 0;
while ... {
if (window.ISS_NEED_SEND === 1) {
writeFile(window.SENDWHAT); // safe synchronous call.
window.ISS_NEED_SEND = 0;
}
In Greasemonkey:...
YouTube achieved quite a feat when they made youtube videos work with cache. However, this is causing a problem on my ajax site and would like to know if there is a way to disable youtube videos being cached. Especially in Internet Explorer.
Any one know any solutions?
...
I've inherited a website developed using Struts 1.2 that I need to make some updates to. For one of the updates, I need to set a session variable based on a value selected from a dynamically created (using struts) dropdown box when the user clicks a button. The way I'm attempting to accomplish this task is by using the 'onclick' property...
In my webpage, I am using ajax + RoR to refresh the contents of the textbox using searchtool. All the value i am accessing, such like superset value for the current page. Means for example there is headquater and it has many stations. When I am trying to access the value of headquater at station then corresponding values changes at textb...
I have an ajax request that returns some JSON formatted data. I'm building out a Google Maps display with it so I need to take that data and pass it to a few variables. So I want to build an array like:
var foo = [
['A Town', 32.844932, -50.886401, 1, setting1, '<div class="office"><div class="name">Smith</div><div class="location">...
I'm sure this is simple, but I'm tripping up over a scope issue in Javascript. I'm doing the following:
$.get(url, function (data){console.log(data);});
This part works fine - I see the string that I want appear in the console. But what I actually want is to take that data variable and place it in a string. Something like this (doesn'...
Hi evryone!
Could you tell me, how I can use AJAX in JavaScript?
...
I am having trouble getting a regex to work. This is the string.
"some text would be here and Blah St:39.74908:-104.99482:272~Turn right over here"
I need to remove the
:39.74908:-104.99482:272~
part of the string. I am using jQuery if that helps.
...
I'm trying to define a way in which I can control the access to methods for the javascript we use at work (Part of a coding standards improvement drive).
The pattern I was planning to use was fine until I thought about what we do with 3rd party script methods.
How can I tweak my code to allow access to the private function from inside ...