i have used Div with in Div and tryed calling it from javascript, its workin fine with IE...but in firefox its not not..it says "document.getElementById has no properties for first case " n "frames has no properties for second case " in the javascript console within firefox... Code:
We have an applet that has to support the SUN VMs as well as the MS VM. The applet receives updates from a server (via tcp or http) and wraps them up as objects and passes them using the JSObject scripting context to a javascript function.
This function takes the object and reads the properties and updates a screen.
All seems simple stuff. The problem is that the MS JVM runs like a rocket, but the sun vm seems to max out our processor and also takes ages to process anything.
I have tried logging from the console using debug level 5, and it shows a lot of back and forth between the applet and the javascript when accessing methods on the object passed.
Seeing that as a possible problem, I now pass a delimited string to the front end, and then convert that into an update message purely in javascript so there is only one hit to the applet per message.
I am still seeing a massive difference between the sun and ms VMs.
Has anyone ever come across this, and is there anything I can do to help flatten out this performance?
I have simple function that I call from an alert box
alert(testScore);
It works fine. Unfortunately, I do not like the sound and Exclamation point icon that appears. I'd like a nice message box like VBA message box #64 to appear. I know hardly anything at all about VB or VBA. But, I do know you can call a VB function from Javascript. How? Is it possible to get my testScores to appear from the VB function? Is it hard? Where do I start looking?
I have a page with an iframe. The page defines some JavaScript functions in the head part. How can I access these functions from the iframe? In Firefox I can use parent.myFunction() but it doesn't work in IE.
I am designing a template for File Hosting site but the flash uploader is breaking the design
This is what it looks like
When the button (white box) is clicked it opens a file selecting box
How can i replace that box with image, i tried placing a image over it with help of wmode transparent but when clicked on image flash doesnt open up the file selection box
How this can be done?
Is there any way i can run the flash when clicked on image because this doesnt looks good.
Little detail as i am more a designer than a coder.
I have a problem. I need to call a javascript function within the include html of a scriptlet. How do I do that ? Example in Main.html contain the following object tag :
<object id="dynamsg" width="100%" style="position:absolute;top:0px;left:0px" height="350" data="scriplet.html" type="text/x-scriptlet"> In scriplet.html consist of a javascript function :
<script language=javascript> function Hello() { alert('Hello World'); } </script>
Now, how can I from Main.html call the Hello() function?
I have this: Code: <a href="javascript:employeeSearch();" class="textbutton">Lookup</a> and it doesn't seem to be working with firefox? does this look right? in IE it works fine.
The javascript fails to call an embeded applet's function. In the javascript console, it shows "Error XXXX is not a function". Following are some parts of my code.
Here parent.document.cpmApplet and parent.BottomIframe.document.resultApplet are valid since I loaded both the applets with the same name using <APPLET> tag for Netscape/Mozilla and OBJECT tag for Windows.
The issue is with Netscape and Mozilla on Unix platforms only. I would appreciate if anyone could help me to solve this.
I am developing an ASP.NET (C#) application and need some help. I wish to call a server-side function (in the code-behind "file.aspx.cs") upon a user clicking on the "X" to close the browser window. Is there a way to postback and call a server-side function when this happens? I am aware of the browser's native "onunload" event, but am not certain that what I'm looking for is actually possible.
I am looking for a generic javascript function to identify the form with in which a element exists, thus developer can avoid coding like document.forms[index].submit() - where they are sure, they want the form with in which this element exists is to be submitted. This way when forms are introduced at top level the code can remain unchanged, else every form introduce above in the DOM will result in increasing the index by one.
The code is given below. While doing so i am stuck with 2 problems P1: In the code, you can see i am giving a explicit 'break' in the code. If i don't do so the code seems to be looping. Obviously i am missing some basic.
P2: I am able to pass 'this' for anchor element by name="xy" <a href="#" name="xy"
in its onclick function by which, in the javascript function i move up the DOM.
While i am unable to do that on the anchor element given below since this function is now on the href attribute.
I have been trying to load a javascript function from the body onload html tag, but I only want the function to load the first time the page is loaded: I have investigated but haven't found anything that works.. I thought about cookies, but what if the user's disable them?
My code:
//I want to call the Toggle function below only on the 1st time the page is loaded:
<script language="javascript">
function Toggle(item) {
obj=document.getElementById(item); visible=(obj.style.display!="none") key=document.getElementById("x" + item); if (visible) { obj.style.display="none";
I have a form button with id="submit". When pressed, ClickGeocode(credentials) is called. This works fine and dandy with: $('submit").click(ClickGeocode) Despite there being no indication that the function takes an argument 'credentials'. So when I want to call the function at some point in my code, I should be able to do something like ClickGeocode(credentials) ... no? However, my issue is that credentials isn't once defined in my code - it is part of Bing Maps function... like so:
function ClickGeocode(credentials) { map.getCredentials(MakeGeocodeRequest); }
So why does it work using .click(), and how can I call the function without user interaction (simply somewhere in my code) even if 'credentials' is not defined?
Im supposed to write an activeX dll that will be called by javascript (with the OBJECT TAG) and was wondering if its supposed to have any special features or its a regular activeX dll.
Also I would like to know if it matters if its written in C++ or VB, and if someone has sample C++ code that does this i will be grateful to see!
When I click on the "Check All" checkbox, it correctly checks all of the boxes in my form, but I would like each checkbox to also call hideLayer2 function just as what would occur if the user checked the boxes individually. Is there a way to call the hideLayer2 function and pass the correct whichLayer and the_box parameters within the DoToAll function? Maybe there is an easier way? Code:
I have a perl script running on my server on a chosen port, and I want to be able to execute functions that this script provides from inside Javascript functions.
i do not know much javascript, but i am trying to call several different scripts from the same web page and it is not working. Is there something i can do or is this not a thing that is do-able?
Can I clean up the header section on some of my pages by putting all the javascript stuff in another page, and then using a server side script to assemble the header?
The page checks a database to see whether the user has a value in a field and if they do then a hidden variable in a form is set to this value. However, if they don't, the form displays a drop down box for them to accept a value. The problem arrises with a bit of form validation that is being run on the page. The button to submit the form is disabled unless the user selects an option from the drop down, once they've done this the button not only enables but also changes its value. When the user already has a value in the DB then the button must be enabled and its value changed. I've tried doing this by calling a function in the onLoad method but this isn't working. Code:
i am designing a function that will generate a menu to be used across several websites. the code i have developed goes through all of the motion i want it to, except for one quirk: while in the loop, instead of going through the loop and inserting choice1, choice2, et cetera i want it to insert, in this example, news, profile, et cetera.