javascript

I cannot change the title attribute

Can anyone tell me whats wrong with this function? Everything works as it should right up until i try to change the title attribute, last line. It does not change and has the original value. Im using the title attr as a notification on mouse over P.S. Javascript/jQuery is not my strong point im a C# developer so please be nice. functio...

Ajax POST method converts my "+" value in a string to " " why?

I cant figure out why in ajax post "+" sign converts to " ".please explain ? ...

passing a local variable within the function

By clicking on the following DIV, nothing happens. Where is the error ? <div onclick="function dummy(that) { alert(that.toString())}" class="next">></div> Please help. ...

Calender Class in Javascript - unable to keep the reference.

Hello, I wrote a datepicker in Javascript, but it is not working properly, as I lose the reference to the Calender object. here is the example http://asexpress.de/calender/ by clicking within the input field the calender will be displayed. What should I do that the reference to the Calender object remains in contact. ...

YUI: Where are forms?

I am comparing ExtJS and YUI. They seem pretty much tied on the technical side. ExtJs costs money, not much. But YUI is free. Maybe I am missing something obvious, but ExtJs lets you define forms. I didn't see forms in YUI. Where are they? ...

open new window from firefox extension gets Access denied

I'm writing a firefox extension. In this extension i need to open a new tab to display some analytics and data. I have a template html file which i placed in my chrome/content folder. When i try the following code: var w = content.window.open("chrome://myplugin/content/search.html","My Plugin"); i get the following error: Access to...

Code/Function/Library to intent/format/prettify JavaScript/QtScript code for readablity within the application?

Greetings, in one of my applications I provide a simple code editor based on a QTextEdit widget and the QSyntaxHighlighter. I was wondering if there is function, library or generally a way to allow the user to have his/her code re-formatted and intented within the application? Websites like this allow you to re-format and intent JavaSc...

security warning for javascript and css file?

Hello everyone, I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. And I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net + javascript (jQuery). I met with the following security warning in browser (at the top of the page in IE) when browse a page -- "An add-on for this web site failed to run. Chec...

passing list item in javascript

Hi All, Can anyone please tell me how can I pass a list item from one page to another in javascript? Thanks ...

Detecting support for VML, help applying a previous post

I found the following in a previous post but need some help with it: // For VML detection, here's what google maps does (search for "function Xd"): function supportsVml() { if (typeof supportsVml.supported == "undefined") { var a = document.body.appendChild(document.createElement('div')); a.innerHTML = '<v:shape id="vml_fl...

Why doesn't my Twitter button work in Internet Explorer 7?

Go to this page for example: http://readme.readmedia.com/State-Treasurer-Fitzgerald-Reminds-Teachers-to-Register-for-Free-Pencils/1052815 Click the Twitter button to post it to Twitter. It works in every browser except Internet Explorer 7, including other versions of Internet Explorer. Any ideas on how to fix this? Or any alternative T...

Set Link as Active by Default

I have 3 links that represent the content for one iFrame in my page. When you click each link, it'll reload the contents of that iFrame without reloading the page. How do i set one link to be active/selected by default, cause what's happening now is the page loads, but still i have to click on the link before the content of the iFrame l...

postMessage to PDF in an iFrame

Here's my situation. I had a webpage with an embedded PDF form. We used a basic object tag (embed in FF) to load the PDF file like this: <object id="pdfForm" height="100%" width="100%" type="application/pdf" data="..url"></object> On this webpage was an Html Save button that would trigger some Javascript which used the postMessage A...

Opening a Link in a new window from a dynamic navigation link

I am working on a CMS site that uses dynamic navigation. There is one link on the site that I would like to be able to open in a new window. However, since this is a dynamic environment I can't add the standard, target="_blank" to the link. Resorting to Javascript I tried the following: <script type="text/javascript"> window.open ('htt...

How to profile JQuery/JQGrid

I am using JQGrid component for displaying ajax tree grid. With some quantity of data (tree with 200 branches, 2-3 items in each) - the grid begins to freeze in FireFox. Then I get a window asking whether to stop the script or continue. What is the prescription to debug and resolve this? I can debug my code, but I am not sure how to deb...

How can I call a codebehind function from JavaScript?

I have a JavaScript function which i call in the onchange handler of a dropdownlist. If the selected value of dropdownlist is "1" i want to call one function in codebehind. Following is the function in JavaScript: function GetAdmissionType() { InitComponents(); var type=""; type=document.getElementById(dlAd...

Improving long-polling Ajax performance

I'm writing a webapp (Firefox-compatible only) which uses long polling (via jQuery's ajax abilities) to send more-or-less constant updates from the server to the client. I'm concerned about the effects of leaving this running for long periods of time, say, all day or overnight. The basic code skeleton is this: function processResults(xm...

Firefox Mac alignment issue

I wrote a menu where the total width of the buttons should be always the same width of the menu bar. So i take the whitespace and devide it over the buttons. It works on: Windows: FF IE6 IE7 IE8 Mac: Safari Chrome But it doesnt work on Firefox on the Mac can does anyone have an idea? The example can be found: http://www.bobkarreman...

What gallery script is this?

Hi there. I really need to know what flash photo gallery is used on this site? http://www.shad0w.ru/impression.html Also do you know any similar javascript script? ...

Excel PMT function in JS

Hello! I found i little snipet on internet, about PMT calculate. function PMT(i, n, p) { return i * p * Math.pow((1 + i), n) / (1 - Math.pow((1 + i), n)); } function CalculatePMTFromForm(idLoanAmount, idAnnualInterestRate, idMonths, idResult) { var i = jQuery('#' + idAnnualInterestRate).val() / 1200; var n = jQuery('#' + idMonths).v...