javascript

Dropdown menus are "stopping" my Flash animation, causing choppy animation. IE ONLY.

Background: On a recent website, I'm using a jQuery driven dropdown menu in addition to a Flash scrolling animation. Note: I am only using the Flash animation in IE only as I created an equivalent, jQuery based animation for all other browsers (because, surprise, IE didn't handle the jQuery version). So please look at this in IE only....

Jquery Image text cross over transitions

I want to have 2 cross over transitions one on top of the other in Jquery. One transition will be with images and the other will be with text. Are there any plugins that do this. Something like on the following website where they have got the image and text fading in and out, but with jquery. http://www.stpauls.co.uk/ Thanks in advanc...

setHomePage IE no prompt

Hi. I'm using this script to set my site has home page on IE (I know it is not possible on FF and CH): if (document.all) { document.body.style.behavior='url(#default#homepage)'; document.body.setHomePage('myurl'); } But this function shows always a confirmation prompt. Is possible to setHomePage without showing the prompt...

How to embed a custom SWF based audio player into facebook wall posts?

We have a SWF based audio player. We want to be able to embed this player into Facebook wall posts in the same way that Youtube videos or BandPage songs are embedded into Facebook feed walls. Right now clicking on the image that we provide redirects to the player instead of loading the player inline. UPDATE: We want to embed our SWF pla...

PHP include/require a different extension file as .php

I have a .js file with code compatible for both php and js languages. The file is read and edited by php and then fetched by JS. so the extension is JS, is there any way that i can require this file in my php script and the file may execute normally as a require/include would work on a .php file. I dont want to Eval the file contents in...

Does the style object work with setAttributeNode() method?

Here is the piece of code: var list=document.createElement("li"); styleAttr=document.createAttribute("style"); styleAttr.nodeValue="width:"+liwidth+";padding:3px 0px 3px 4px;"; list.setAttributeNode(styleAttr); ...

AJAX Only Javascript Library

I am searching for a Javascript Library Which has only AJAX no other feature. e.g. a Small Simple XMLHttp Wrapper. ...

How to control Javascript threading and redrawing in IE7

Hi there, I've got a sequence of Javascript function calls in a function I have defined to be executed when a web doc is ready. I expected them to be executed in sequence, as one ends the next begins, but the behaviour I see doesn't match up with that. Additionally there is manipulation of the graphical components going on in between t...

When does (mobile) Safari/Chrome consider a page loaded using Comet?

I have a website that uses a long-polling comet connection. The connection needs to be setup on/after page load. Despite my efforts to prevent it, many browsers consider the long-poll request to be part of the page loading mechanism, thus keeping the page in a 'loading' phase. In Safari this results in the progress bar (behind the url f...

Acces label in footertemplate of gridview in javascript

Hi, I have a label in a footertemplate of a gridviewcolumn. I want to put a calculated value (total of the rowvalues) in this label in javascript. I can access all the textboxes in my Itemtemplates, but I don't know how to find my label in my foortertemplates. .aspx: column in gridview <asp:TemplateField HeaderText="Prijs excl. BTW"...

Radio button on/off trigger works only one way

So this is the dumbest thing I've struggled with in awhile. I cannot get the state of a simple radio button set to toggle something on the page. <label for="completeSw"><span>Completed?</span></label> <input type="radio" id="completeSw" name="completeSw" value="1"/>Yes <input type="radio" id="completeSw" name="completeSw" value="0" chec...

Is something wrong with my down counting in php and javascript?

Hi. I have a function in my game that you only can use every 2 min. So I have this code $next = strtotime ("+2 minutes"); This function to check if 2 minutes has passed: if(time() <= $next){ Here I find the time when you can do the function again: date( "00:i:s", $next - time()) What I need is the number of seconds until you can...

I am creating a javascript object based upon a json string, I want my IDE to offer intellitext to its properties

I could find out the object properties by looking at the source json string - however is there anyway to do this using an IDE and intellitext ? Currently I am using webstorm with my live deploy - but to no avail the object properties are not revealed ... ...

find every ocurence of char codes 255,251,178 respectively. In a string or array.

Using indexOf('ÿ')// char for Unicode 255 for example, doesn't work. Probably because indexOf() needs the Unicode to be less than 127, maybe?. Anyway, I have a big string array from an Ajax binary. I need to find every occurrence of a byte sequence, let's say the sequence is: 255,251,178. Each occurrence's location (loc of the 255 in t...

Change the href of an anchor tag with javascript.

Hey I have a question for javascript. I need to assign an href value to an anchor tag or asp:HyperLink. SOMETHING. that will allow me to link text in a dialog popup to an href that a function specifies. Here is my code. <'custom:JQueryDialog I made' runat=server ID="dialogPopUp" AutoOpen="false" CloseOnEscape="true" Modal="true" Tit...

Referencing the top row of a table

I would like the following script to move a table row to the top of a table. I can't figure out how to reference the id of the first row, however, since the ID is set dynamically, I tried row.insertAfter(row.first()); but it's making the row disappear instead of moving it. Any ideas how to reference the top row? $(".top").click(func...

Is it worth it to gzip js files?

On modern browsers and computers,, is it better to gzip files to save network traffic or to not gzip them which seems like it would save browser CPU? ...

How can I ask a web user for confirmation if he really wants to leave the page?

How can I ask the user Are you sure you want to leave the page? Like for example if you click the back button while asking a question on Stackoverflow? ...

Problem passing variables through html, javascript and php.

I'm using JEditable and trying to populate a select based on a variable. I need a way to pass a variable from my page back through the JQuery to dynamically create the select. JQuery: $(".dblclick_district").editable('miscfreqs.php?mode=save_edit&module=miscfreqs&type=district', { type: 'select', loadurl: 'tools.php?mode=get_d...

How can I use Javascript to get a list of all picture URLs available on a site?

I'm curious as to how DownThemAll does this. Do they use Javascript? How can I get a list of all of the urls in a website using Javascript? ...