javascript

Are Java Applets unable to communicate with javascript within Firefox on Mac OS ?

I have a java applet running in a browser that is calling some javascript functions and expecting a result from theses functions. This is working with the following configurations : Internet Explorer FireFox / Windows Safari / Mac BUT It's not working with Firefox on MAC OS The source of the problem seems to be the win.eval calls th...

JavaScript - SQL Reporting Services

Can We insert javascript in a report rendered by sql reporting services? eg:- when mouse over happens over a cell i would like to open a div as in case of ajax modal popup control usage. ...

How to create a jquery function to set max-height on every div?

I would like to do a jquery function that when window resize, it search div with css-class name "taskbox" and set the max-height to the parent div height - current offset for the taskbox to be able to be smaller than the available space but do not extend it. ...

.getElementById IE

Hi. I've got a JavaScript running 2 ".getElementById('').style" changes. Both work perfectly in FF, but the first one doesn't work in IE7. Appreciate all help :) First SourceCode: function ingen() { document.getElementById('merInfo1').style.display='none'; document.getElementById('merInfo2').style.display='none'; document....

Might be a quickie: Escape problems (I think) in an .innerHTML call

The setup: I have a suckerdiv menu with links that call a function. Said function looks like: function F(string) { var s = ''; var c = ''; var t = ''; if(string == 'cat') { s = "cat"; c = "animal"; t = "fluffy"; } // ... document.getElementById("title").innerHTML = t; document....

How the function myHandler works ?

Hello guys, Your favorite French is back^^ I have just a small question. In the YUI examples, this function allows to get information, I am not sure to understand what are reference done by myHandler : var myHandler = function(sType, aArgs){ myAC = aArgs[0]; // reference back to the AC instance elLI = aArgs[1]; // referenc...

Javascript can't find Div Element by Name

This code surprised me yesterday and I'm curious about what was going on. If I refer to a Div element that I know is on the page in a Form, even copy/pasting the exact name, using getElementsByName the following could would not find it. var coll = document.getElementsByName("txtState"); //coll will be null If I get all the Div tags o...

Can JScript.NET distinguish different .NET exception types

I'm using JScript.NET to write scripts in a C# WinForms application I wrote. It works really well, but I just tried putting some exception handling in a script, and I can't figure out how to tell what type of exception was thrown from my C# code. Here's some example JScript code that throws two different types of CLR exception, and then...

How to keep the bottom of an SWT Browser widget visible when appending to the HTML content?

I'm viewing HTML in an SWT Browser widget. I am appending logging messages to the end of the content and would like to keep the bottom visible all the time. Currently, whenever I append text to the content, I first set the new text: browser.setText(content); And then I scroll down the Browser widget via JavaScript: browser.execute("w...

What are some examples of the limitations of PHP with JavaScript?

I'm looking for problems I can generalize, recognize later (in design), and say "Hey, if I continue down this road I'm going to hit trouble. PHP + JS just weren't meant for this." If I'm using PHP+JS.. what can't I do? What shouldn't I attempt? What do you suggest instead? Thanks! ...

How to debug Javascript/jQuery event bindings with FireBug (or similar tool)

I need to debug a web application that uses jQuery to do some fairly complex and messy DOM manipulation. At one point, some of the events that were bound to particular elements, are not fired and simply stop working. If I had a capability to edit the application source, I would drill down and add a bunch of Firebug console.log() stateme...

JQuery Ajax form submitting

Not exactly sure why this is happening, but upon click of a button I call a JQuery Ajax control, after that I do not want to continue submitting the form, but before the page gets still submitted. <asp:ImageButton id="btnContinue" OnClick="btnContinue_Click" runat="server" OnClientClick="return false;" /> and the jQuery: ...

How to check with Javascript if a Firefox 3 Add-on / Extension is installed

Actually this question is based on a Blog Entry, which discusses the topic for FF2. But how does this work with FireFox 3? I know that there must be a workaround, because recently I visited a site saying: "Please disable AdBlock+ before entering this site" :( ...

ASP.NET MasterPage + Javascript Error

After converting an ASP.NET webform (v3.5) to use a master page, I started getting a strange Javascript error. The content page has a block of javascript. Here it is: <script type="text/javascript"> var attCount = 0; function CreateAttachmentControl() { var newAtt = document.createElement('span'); var newAttN...

How do I fade in/out a jQuery menu with sub menus?

Hi, I am trying to make a menu that has many links and each link has its own sublist, this is what i am using.. <body> <div id="menu"> <a href="#"><li>users <br /></a></li> <a href="#"><li>product <br /></a></li> <a href="#"><li>movies <br /></a></li> <a href="#"><li>clips <br /></a></li> <a href="#"><li>teaser <br /></a></li...

help building a section nav menu with jquery

Hello, I could really use some help with what I have a feeling will be some pretty basic jquery, but I'm stuck all the same. I have an unknown (dynamically generated) number of divs in my html each with a class of "page". What I want to do is add an id to each div.page, and then fill a ul with an id of menu with li for each div.page c...

Is there any way to stop Firefox from submitting a form on a Javascript error? Maybe in about:config?

Is there any way to stop Firefox from submitting a form on a Javascript error? I mean I know I can use an alert box or firebug to stop it from doing so, but...not all pages that people work on work with Firebug, and that alert box is just annoying... Maybe there's a setting in about:config? I could twiddle with? ...

port listening in javascript

I'm trying to write some simple chat client in javascript, but I need a way to update messages in real time. While I could use the xmlhttprequest function, I believe it uses up a TCP/IP port on the server and possibly more importantly, is not allowed on my current hosting package. It doesn't seem like an ideal solution anyway as it seems...

Need help login validation using java script

Hi all, I have problem with login validation using javascript. When the user doesn't provide any username or password the pop up message is showing please enter the username and password. I want that when user doesn't provide username the pop up message will come please enter the username, then if i press OK button cursor should go in t...

converting from prototype to jquery

I'm trying to do a simple ajax update of a div from a php file that gets data from a mysql database. One function populates the div, the other adds messages to the database and is called on click of a submit button. I was wondering if someone could give me their equivalents in jquery. Below are the prototype versions. <script> function...