javascript

Calling javascript from sifr replaced anchor tags?

I'm using sIFR to replace my navigation text with a new font: <ul> <li><a href="#">about</a></li> <li><a href="#">reel</a></li> <li><a href="#">contact</a></li> <li><a href="#">archive</a></li> <li><a href="#">login</a></li> </ul> sIFR.replace(futura, { css: [ '.sIFR-root { background-color:transparen...

How do I view the HTML Dom afer a jQuery modification?

I am using DebugBar in IE to view the DOM. But after I modify the DOM with jQuery I can not see the new or modified DOM with DebugBar. How Do I view the modified DOM? ...

Prevent default behavior in text input while pressing arrow up

I’m working with basic HTML <input type="text"/> text field with a numeric value. I’m adding JavaScript event keyup to see when user presses arrow up key (e.which == 38) – then I increment the numeric value. The code works well, but there’s one thing that bugs me. Both Safari/Mac and Firefox/Mac move cursor at the very beginning when I...

how execute SSIS Package on SQL Server 2005 in javascript code???

Hi! I need to execute an SSIS Package on SQL Server 2005 but programing them using the javasript code for a page web. Anybody can help me please?? Thank you! ...

What is wrong with my Flimsy AJAX File Upload?

Hello all, I know you can not do an AJAX File Upload but this just a name I have chosen to use. :) I am making use of this JQuery plugin. I think the main problem is I am using it in a slightly different context. Here is how I use it and I think this is the problem. I first make a form: $("#flash").html("<input id='vidup' type='file'...

How to debug CSS/Javascript hover issues

I often find myself wanting to debug CSS layout issues that involve DOM changes caused by Javascript in reaction to a hover event or different CSS rules applying due to the :hover selector. Normally, I'd use Firebug to inspect the element that's giving me trouble and see what its CSS properties were, and where those properties come from...

Where to place heavy jQuery code in web development MVC pattern?

I'm building a website where many of the pages are very interactive without having any communication with the web server. Basically, a page represents a kind of DHTML interface, where users can click on various divs to move them around and perform other actions. In the end, the user is able to save the "state" of all divs on the screen a...

finding the previous item in a JQuery array

I have the jquery: $(".item") which gives me all elements of class item. I need to select an item from the array I get from this method, and then find the item before this. something like: $(".item").select("#3").prev() - except it should work :) so, assuming I had the list of items: <div id=1 class="item"></div> <div id=2 class="...

Animating Touches to Objects - can I get object of touched view?

I'd like to get a reference to the object whose view was touched on the iPhone. I'm probably just approaching this the wrong way so let me try to explain what trying to do... I have various instances of a sub-classed UIImageView with some custom value properties. The user can touch and move them. Depending on where they go I'd like to...

What is the section of Javascript ? - wwOpenInstalled

Ok so I start coding websites (yes I know I am almost 15 years late :0) and in many of the sites I see the following javascript: <script language="javascript"><!-- var wwOpenInstalled; if (wwOpenInstalled || parent.wwOpenInstalled) { if (window.Event) { document.captureEvents (Event.MOUSEUP); } document.onmouseup = (pa...

Accessing an object's property from an event listener call in Javascript

Below I am creating an object in Javascript. Within the constructor I am setting up an event listener. The problem is that when the event gets fired, this.prop cannot be found, and undefined prints out. How do I solve this? var someObj = function someObj(){ this.prop = 33; this.mouseMoving = function() { console.log(this...

Escaping double quotes in JavaScript onClick event handler

The simple code block below can be served up in a static HTML page but results in a JavaScript error. How should you escape the embedded double quote in the onClick handler (i.e. \"xyz)? Note that the HTML is generated dynamically by pulling data from a database, the data of which is snippets of other HTML code that could have either s...

How to read/display XML using PHP

Is there a way to read off from an [external] xml (an xml file from a different website) using PHP? I know there's a way to read XML using JavaScript, but only if they are both in the same root. Could you provide an example on how to source the xml file, then read the following: <parent> <child> <grandchild>Example Text 1</...

firefox iframe history

In a web app we use IFRAME to let users select items for the parent page. The problem is that FIREFOX (3.5) adds a copy of the same (parent) page to history each time IFRAME is opened. The web app is using history.back() to go from parent page to one that called that page. We can fix that by passing the "back" page as parameter from c...

object, param, jquery

<object width="438" height="280" id="pano" > <param value="url_flash" name="movie" /> <param value="false" name="menu"/> <param value="high" name="quality"/> <param value="#FFFFFF" name="bgcolor"/> <embed width="438" height="280" pluginpage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-fl...

how can I adjust volume in my program?

I'm creating an audio player program in HTML and Javascript. How can I adjust the volume in my program? ...

Javascript "unspecified error" in Open Layers

I am getting this error when the map loads. The error is in the original, unmodified OpenLayers.js file on this line: return!!(document.namespaces); I have tried rewriting it to: return (typeof(document.namespaces) != 'undefined'); and it worked but then I get same "unspecified" errors on further referrals to document.namespaces: ...

How Can I Create My C# Com Class From JavaScript Using ActiveXObject

I wrote C# class to COM but I could not use it from JavaScript. Example [ComVisible(true)] [ClassInterface(ClassInterfaceType.None)] [ComSourceInterfaces(typeof(ICommandsEvents))] [ProgId("Scripting.Commands")] public class Commands : ICommands { public Commands() { } public int CreateChannel(string channelName) { ...

How to prevent Javascript Menu from getting hidden under Flash Video (SWFObject )

Hello How to prevent Javascript Menu from getting hidden under Flash Video (SWFObject ). I am using Open Flash Chart and the chart is displaying fine in my php shoppping cart, but my javascript menu is getting hidden behind the Flash Chart. How to correct this problem? Here is my script code: <script type="text/javascript"> swfob...

select current link

how can i select the current link via jquery if I have a div like this: <div id='navigation'> <a href='users/home'>home</a> | <a href='projects/browse'>home</a> <a href='discussions/browse'>home</a> <a href='search/dosearch'>home</a> </div> Note I've tried: $(document).ready(function(){ $("#navigation a").click( functio...