javascript

IIS can't find JavaScript and CSS files

Hi, I've been working on this for a while and was wondering if anyone has run into the issue of error 404 on IIS. More specifically, when I type in http://localhost/test/test.aspx, the page runs, but the referenced files (JS and CSS) are not being used. Does anyone have an idea on what this could be? keep in mind that I'm new to IIS (...

What might the ASP.NET code for capturing data from dynamically created text boxes (in Javascript) look like?

Let's say I have some HTML and Javascript which adds text fields dynamically to a form: <script src="/wp-includes/js/addInput.js" language="Javascript" type="text/javascript"></script> <form method="POST"> <div id="dynamicInput"> Entry 1<br><input type="text" name="myInputs[]"> </div> <input type="button" value=...

Rainbow Text on an HTML page... each character is a different randomly generated color.

I would like to be able to create a page using HTML and scripts to display text in which each character is of a different randomly generated color. With a javascript graphics library that supports the creation and use of RBG colors and the Math.random() method, it is simple to make randomly colored lines/shapes/etc, but I do not know ho...

How can I iterate over all of my functions in JavaScript and add try catch blocks?

I'm trying to write to a global error handler that can work in Chrome and Safari. WebKit browsers don't support window.onerror, so I'd like to find a way to iterate through all of the functions in my code and encapsulate them in try - catch blocks, passing any exceptions to my custom error handling code. Does anyone know of an effective ...

Filtering Content using jQuery

I'm attempting to create a filterable photo gallery using jQuery and multiple classes. I have some code set up, but it doesn't seem to work. Can anybody give me any insight on how to fix this function? $(document).ready(function(){ $('#sorter a').click(function(e){ var sortName = $(this).text().toLowerCase().replace(' ...

open new window and write to it in developing firefox extension

Hi , I am developing Firefox extension that will extract bibliographic information from specific website , and when the user press a button on firefox"the extension" a new window should appear with the bibliography data. my problem is I opened a new window with JS and write to it with the normal JS code : NewWin=window.open("","NewWin...

JavaScript form input loop help

Hello, I have a form that currently only parses the first input variable in the POST. I have had to add multiple variables, so I would like the function to loop through and grab all the input parameters and add to the POST Here's the working code for grabbing the first name and value.... How can I get it to check the form and grab all ...

jquery Validate Plugin. Generate random success message, once.

Yesterday I posted this question which is answered but it lead to another problem. I have the following code using jquery validation plugin: //array of success messages and randomly select one var messages = ["Good!", "Great!", "Awesome!", "Super!", "Nice!","Yay!", "Success!", "Ok!", "Perfect!","Sweet!" ]; function successM...

String Manipulation required

Given an input string, I would like to get the output from this in the specified format: filename;path. For the input string /vob/TEST/.@@/main/ch_vobsweb/1/VOBSWeb/main/ch_vobsweb/4/VobsWebUI/main/ch_vobsweb/2/VaultWeb/main/ch_vobsweb/2/func.js I expect this output string: func.js;VOBSWeb/VosWebUI/VaultWeb/func.js The filename is lis...

How to animate CSS sprites using jQuery

Hello, I am trying to find the simplest way to replicate a 12fps animation using CSS sprites and jQuery. I was thinking using the setInterval() so every 83.33 millisecond, the next sprite will be loaded. My problem, is that I don't know how to do that... I was thinking, because my sprite names are incremental like: mariohammerswing1....

jQuery ajax load html from another server

Hey all i am trying to find a way to call an external website and retreve its HTML so that i can check for something in it (wither the user entered a valid VIN # or not depending on what this website calls back) This is the code i have: $.ajaxSetup ({ cache: false }); $("#load_callback").click(function(){ $.ajax({ url: 'htt...

Keep Track Of Ajax Request

Hi, Newbie here.. I just want to ask how can I accomplish my homework in school. I basically have this need. I want to send an ajax request every 10 seconds but I dont want to initiate another request if my previous request has not returned yet. I am thinking that the connection to DB might be that bad sometimes so I would like to ...

JQuery Vs YUI ? maybe prototype?

Through the past few years I've been busy with server side programming and I kinda ignored these JavaScript libraries. Because of my good knowledge and long experience with JavaScript I always wrote everything from mostly scratch. Even back then it seemed stupid but I guess it was more the challenge and student mentality. Recently I've s...

Why is Firefox not caching swf object?

Iäm using swf object to embed a swf on my web page. Same swf is shown on 5-6 links on my web page but every time it takes same time to load the swf, any idea? Here is the code var href = 'http://xyz.com/dialog/demo.swf'; var flashvars = {}; var params = {}; params.wmode = "transparent"; params.allowscriptaccess = "always"; params.swliv...

How to control Loading panel on button click

Work on C#,Asp.net, on my page Click on AspxButton i want to show loading panel with text processing...., After complete the whole event work ,Loading panel become false. On button click how to control Loading Panel ...

How to prevent HTML form reset

I have a form where everything is supposed to be disabled on load except the first field. The first field is an autocomplete input. When they select something from it, it goes disabled, and then sets the second field to be enabled. The second field is a dropdown. The problem is, after a user uses the form and clicks the back button, i...

Looking for a question that combines the understanding of few web technologies

I am teaching a web development course at a CS department, I wrote most of the final test by now, each question focus on a specific feature or a specific technology, I wonder if you can think of/recommend a question that combine the knowledge of few technologies.. The course mostly covers: HTML, CSS, JS, HTTP, Servlets, JSP and JDBC. ...

how to make tree model?

how to make tree model? ...

How do I replace a form button with an image, and have the image change on hover? Also sprites vs separate images?

I remember reading somewhere (a long time ago) that sprites - or at least I think that's what they were called - were better than using two images when you were trying to change an image on hover. I believe the reasoning was something to do with not having a delay. For example sometimes I'll go to a website and go to click on a link and ...

JQuery $.post not working on some PCs

Hi guys, I have a very strange problem with JQuery $.post() I have implemented it in my new web application and get messed response from QA after testing, some say it is working perfectly and some say it is not working; It generate no error and no warning,,, but i am very upset i have almost compeleted the application and it is impossibl...