javascript

JavaScript document outlining in Visual Studio 2008

Problem/Questions: Document outlining for JavaScript files is not working in Visual Studio 2008. Is this still supported? If so, how do I enable it? If it's not supported, are there any free plugins that provide similar functionality? Notes: This used to work for me in Visual studio 2003 ...

Hiding element after firing click handler

Say I have the following code to add a clickable image after a set of elements. The click handler fires every time the image is clicked which is not what I want. I guess hiding the image using .hide() in the click handler is one approach but I can't figure out how to refer to the img element in the click handler. Help? Thanks $(...) ...

One page website with CodeIgniter and jQuery(AJAX)

Hello, I am looking to build a one page website, that runs on PHP(obviously using codeigniter) and AJAX(supported by jquery), at the moment I have a menu that gets populated from the database, depening on what catergories are selected as being on line, the then build a an url using those results, if(isset($main_menu)) { foreac...

Javascript: strip out non-numeric characters from string

Consider a non-DOM scenario where you'd want to remove all non-numeric characters from a string. var myString = 'abc123.8<blah>'; //desired output is 1238 Question: How would you achieve this in plain Javascript? Please remember this is a non-DOM scenario, so jQuery and other solutions involving browser and keypress events aren't sui...

Does the ExternalInterface, in Flex 3, have a data size limitation?

I am using the ExternalInterface on Flex 3. We are actually using flex to compress a large amount of DOM data, so this is specifically being used with LARGE data. To further investigate, if there is a limitation, is this universal? (IE. Silverlight) First, let me state that this is being done with an application that was made by inexp...

login to multiple web sites by login only once at a my site.

I want to create a site in php such that, when user would login to my website, then they can add their favorite website and enter its login information once. My site will save his login information for other sites in my database, and the next time, user logged onto my website need not to enter his login information to other sides again. ...

Help finding out cause of misbehaving function

Hi, Sorry to bother everyone again. For some reason when I try to run the following with validateusername() nothing happens. <script language="javascript"> //<----------------------------------+ // Developed by Roshan Bhattarai and modified by Harry Rickards // Visit http://roshanbh.com.np for the origional version of this script an...

Need multiple independent timers in Ajax

I need the ability to create up to N amount timers in JavaScript/Ajax that will count like a stopwatch(but have no buttons). Another issue is that my data will be loaded via another Ajax request so the page will constantly be updating. I'm not sure how I would be able to keep a timer's correct value when that happens. Thanks! ...

Get the response headers with prototype.js

Is there an easy way to pull out the response headers of a page with prototypejs without using Ajax.Request? ...

Rotating portfolio of several websites

I have taken up the banner of producing a portfolio for my web design/development group. This portfolio would be full screen on a nice flat panel TV and rotate through a list of our websites that we have built. That is really the only requirement - display our work on a big TV for people to oogle over when they enter our office. I have t...

reinventing the wheels: Node.JS/Event-driven programming v.s. Functional Programming?

Now there's all the hype lately about Node.JS, an event driven framework using Javascript callbacks. To my limited understanding, its primary advantage seems to be that you don't have to wait step by step sequentially (for example, you can fetch the SQL results, while calling other functions too). So my question is: how is this differen...

Blaze DS via Ajax with ColdFusion

I want to use Adobe's Blaze DS via ColdFusion through Ajax. I know enough ColdFusion and JavaScript to do what I want to do, but I want to add long poling into the application and it looks like the only way to do that is through Blaze DS...but I don't know enough about Flash/Flex to finish the job. Anyone know of an Ajax Mockup that work...

Programatically Scrolling Over Images in a Website

Hey all, I'm trying to set up a website using HTML and JavaScript that displays sections of an image at a time and, by clicking buttons or sections of the image, will scroll to a different section of the image. |-----| |-----| |-----| |--A-| |--B-| |--C-| |-----| |-----| |-----| If an image if formed by the concatenation of A, B an...

Trigger jCarouselLite on keypress

I'm using jCarouselLite to create a navigation element somewhat similar to the tabbed navigation used on Panic's Coda site, but I'd like to trigger the left and right scroll on a keypress. Can this be done without modifying the jCarouselLite code? Thanks! ...

How Close is the Javascript Math.Round to the C# Math.Round?

I know from reading this Stackoverflow question that the complier will look at your number, decide if the midpoint is an even or odd number and then return the even number. The example number was 2.5 which rounded to a 3. I've tried my own little experiments to see what happens, but I have yet to find any specifications about this, or ev...

Include XML inline in a HTML file

I'm trying to include some (effectivly) static XML data in an HTML file, and then parse it out with JavaScript. The test case below works fine in Firefox, Opera and Chrome (I get the expected list of nodes and depths), but fails in IE8 (all the nodes are at the same depth, and end tags are included in the node list). Question: How do I ...

jCarouselLite reset autoscroll interval

How can I reset the auto-scroll interval on my jCarouselLite carousel after some event so that it lets you look at the content for the full interval, regardless of how far along the timer was when you clicked next or previous? Right now, if I click next or previous after 9 seconds, it scrolls again after 1 second. In the jCarouselLite s...

emulating mouse clicks on a series of a tags

I am trying to set up links in an array so I have: <a href="#" onClick="javascript: doFunction();" name="mylinks">link1</a> <a href="#" onClick="javascript: doFunction();" name="mylinks">link2</a> <a href="#" onClick="javascript: doFunction();" name="mylinks">link3</a> ... And I want javascript to access the array like this: function...

jQuery Recursive Function

I'm trying to write a recursive jQuery statement that grabs some data and populates fields. However I don't want the next command to be executed until the current one is finished. I'm trying to do the below, however it doesn't seem to make it to the second run. Is there something I am doing wrong? I kick it off by doing: var arg = new...

Javascript or jQuery for Adding Style to Phrases on Page

I'm applying a style to a certain phrase on our website over and over again. Is there a way to search the page for instances of that phrase and apply that style automatically? Example: <div> This is what you get from <span class="comp">Company Name</span>. We do all kinds of things here at <span class="comp">Company Name</...