Calling Javascript://nop/
Mar 30, 2005I ran into a script and trying to understand how it was created.
<a href =:javascript://nop/" onclick = showTab('tag1')">page 1</a>
I ran into a script and trying to understand how it was created.
<a href =:javascript://nop/" onclick = showTab('tag1')">page 1</a>
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:
View 4 Replies View RelatedIs there a way to change the button colors with css? I also need to do it for this.style.background on both mouseout and mouseover.
FYI - ignore the psx tags... they are for a CMS.
<xsl: output method="xml" omit-xml-declaration="yes" indent="yes" />
<html>
<head>
<title> psx-title </title>
<body>
<form name="psx-catformname" style="border=none;" >
<input type="button" onMouseOut="this.style.color='#000000'"
onMouseOver="this.style.color='#555555'"
style="borderStyle:none;border: none; "
onClick="changeurl(this.form)" name="psx-title" value="psx-displayname">
<input type="hidden" name="bottomurl" value="psx-catwsubnavlinkurl">
<input type="hidden" name="topurl" value="psx-cattopurl">
</form>
</body>
</html>
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.
View 1 Replies View RelatedCan you call a java class from within a javascript?
View 1 Replies View RelatedI 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.
This is my flash
Code HTML4Strict:
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.
I've been invoking a javasript method from an applet using the
netscape.javascript.JSObject class.
All was working fine till I upgraded my JRE from 1.4.0 to 1.5
Now the method JSobject.getWindow(this) is returning an exception:
netscape.javascript.JSException
I'm trying to call a specific function in an external javaScript file:
<script src="myCode.js" type="text/javascript"></script>
How do say I just want a certain function to run. I'm using this:
<script src="myCode.js:certainfunction()" type="text/javascript"></script>
but it's not working, any ideas?
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.
if(parent.document.cpmApplet){
parent.document.getElementById('cpmApplet').refreshCPMApplet();
}
if(parent.BottomIframe.document.resultApplet){
parent.BottomIframe.document.getElementById('resultApplet').refreshTableApplet ();
}
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.
<a name="xy1" href="javascript:doFormSubmit(this);">Q test</a>
Hence the script fails. Code:
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";
} else {
obj.style.display="block";
}
}
function Expand() {
divs=document.getElementsByTagName("DIV");
for (i=0;i<divs.length;i++) {
divs[i].style.display="block";
key=document.getElementById("x" + divs[i].id);
key.innerHTML="<img src='textfolder.gif' width=ï ' height=ཕ'
hspace=Ɔ' vspace=Ɔ' border=Ɔ'>";
}
}
function Collapse() {
divs=document.getElementsByTagName("DIV");
for (i=0;i<divs.length;i++) {
divs[i].style.display="none";
key=document.getElementById("x" + divs[i].id);
key.innerHTML="<img src='Button1_01_over.gif' width=ðC'
height=ཡ' hspace=Ɔ' vspace=Ɔ' border=Ɔ'>";
}
}
</script>
// C# code I inserted above the body tag on my aspx page:
function handler()
{
if(<%=!Page.IsPostBack%> )
{
Toggle('support');
}
}
//The body tag with handler being called:
<body onload="handler()">
FYI: The Toggle('suport); function is not being executed. If i put the
function in the <body onload tag.. it does run..
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.
For example, I need to call ....
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?
How can i call a javascript alert function from an if condition in PHP?
For instance:
if (A == B)
{
CALL alert();
}
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?
View 2 Replies View Relatedhow can i call function from regular HTML but not like this onclick="getData()"
because i want the user will not have to do nothing...
i do not want the user push buttons and not do not want using body onload...
what options it leaves me with?
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:
View 5 Replies View Relatedi 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.
this is the call to the function: Code: