javascript

Fading problems with Cufon elements on IE

Hello All, I have a slideshow running with textquotes. These quotes contain a custom font provided by cufon. This all works fine. However when the slideshow fades in or out, the text gets a dark border or shadow. I think its a transparancy issue in IE but I can't find a solution. I'm using the jQuery plugin Cycle for my slideshow, and...

How to automatically replace `url` in browser address bar with JavaScript: from /en/services/ to /en/#services ?

How to automatically replace url in browser address bar with JavaScript from   company.com/en/services/ to       company.com/en/#services ? Example: when I type in browser address bar url company.com/en/services/ and click 'Go', it will be automatically seen company.com/en/#services Is there any way to replace real url /services/ with h...

javascript split string at parts

Possible Duplicate: Format numbers in javascript I have a string represents a number: "3507654" I need to split it on a parts, by 3, e.g "3 507 654" Number can be any value, but always a number. ...

Google Maps API integration - Click function for map markers, causing headache

Hello, So, as the title suggests I am 'trying' to get the markers on my Google Maps to activate and display some information when clicked. Problem is that somewhere along the way my markers have disappeared (or at least aren't being plotted) and I'm getting some weird warnings about code coming from Google when I examine for breakpoint...

"Object expected" error with "javascript:ShowDocument" statement

I added code to one button but while clicking it raises "Object expected" Javascript error Me.btnReport.Attributes.Add("onclick", String.Concat(New String() {"Javascript:ShowDocument('frmDocReport.aspx?PrjId=", Me.droplstProject.SelectedItem.Value, "&Type=", Me.droplstType.SelectedItem.Value, "&RecPerPage=", Me.droplstPAGE.SelectedItem....

Retrieving value from a textbox in HTML table

Hi, I have a table which has textboxes in its cells. All these textboxes are created and populated dynamically by using PHP. I have to iterate through the cells and get the values. By using the following code, I am able to get the innerHTML of the cells. var tblLang = document.getElementById("tbl_Languages"); var tblrows = tblLang.rows...

To retrieve list data from sharepoint

Hi, I wanted to acces list data from sharepoint as i want to use that data in another application.Can u tell me how do i connect with sharepoint? ... ...

ie8_getElementById()

Whats the difference between document.getElementById() and document.ie8_getElementById(). Thanks in adv. ...

setRequestHeader + Cookie

Hello everyone, my question is, how to send a cookie with setRequestHeader. My code to test it is this one: var client = new XMLHttpRequest(); client.open('POST', 'url'); client.setRequestHeader('Cookie', 'test=mycookie'); client.setRequestHeader('Cookie', 'test=mycookie'); alert("start"); client.onreadystatechange = function() { i...

Determine the left offset of a click using jQuery

Say you have an image that is 200px wide. Is there a way to determine how far from the left of the image you clicked? For example if you clicked in the dead center you would get 100. I tried using something like ui.position.left but couldn't get that to work. Any ideas? ...

Sliding menu javascript

Hi, can anyone point me in the right direction to implement something like this please: http://blog.sallarp.com/iphone-sliding-menu/ but using javascript? Thanks and have a nice day :), C. ...

Is it possible to set a website as homepage in Mozilla?

Possible Duplicates: set browser as my website as homepage for firefox using javascript How can I set default homepage in FF and Chrome via javascript? I knew how to set homepage from a website in Internet Explorer using JavaScript; however, due to a security issue I can't do it in Mozilla. Is there a way to set it in Mozi...

jQuery/Javascript - reload current page with an appended querystring?

Hi, I've got a dropdown menu on my form, which when something is selected I need to reload the current page, but with an appended querystring. How would I go about doing this? ...

How to reverse the text with js/css?

Possible Duplicate: How does uʍop-ǝpısdn text work? How to make the text upside down while keep the left-right order? ...

Quick Test javascript snippet for browser compatibility

Just as we have snippet compiler to test a C# code quickly, I can also do the same for javascript in chrome debugger tools and Firebug (firefox). I would be more interested in a tool or some online tool which can run a small piece of javascript and tell if it properly runs in prominent browsers and the result. UPDATE: I'm a developer ...

Make Script / Object load last

I have a webpage which lags while loading, because an embedded object is trying to be processed... My webpage load sequentially, but the script delays the entire page because it appears at the top... Is it possible to have the script / object load last, but still have it appear at the top of the page? ...

javascript show in cycle with delay

Simple example: for (var i = 0; i < 10; ++i) { console.log(i); // <--- should be show with delay in 300ms } Simple setTimeout using of course doesn't work... I guess there's should be using closures.. ...

Getting back into the website development game.

Back in the 90's I used to develop websites using Cold Fusion. We also still used tables for most of our page layout, hehe. I just started getting back into website development again seriously. I'm getting a pretty good handle on the basics with CSS and starting to add Javascript. I'm guessing that I will eventually add PHP as a mode...

Javascript + How to get the index w.r.t the parent Node of selection + Browsers Other than IE

Hi I want to get the selection start and end index with respect to the parent node of the selected text. I am able to do this in IE. However in other browsers like Firefox, Opera, Safari and Chrome, I am able to access the selection and the index of the selected text. But my requirement is to get the index w.r.t the parent node and not t...

Removing a word from a class using jquery

I have the following html on a page: <h1 class="theme-color-3">Knowledge Portal Site</h1> This is rendered dynamically.I dont want the word Site after 'Knowledge Portal'.I dont know where the word Site is hardcoded,so i wrote the following jquery code to remove that word. $(document).ready(function() { $('h1.theme-color-3').html($(...