In the lab I work in, we use Mozilla 1.7 for Sun Java™ Desktop System and Firefox 2.0.0.4. My goal is to modify an existing Java application (run via executable jar) to communicate with our web-based login system.
I am open to the idea of using both Java Applets and JavaScript to accomplish this task, but I have not found a way to inte...
I am learning jQuery and have a created several plug ins.
Unfortunately due to my company's coding practices they want all javascript code to be extract out to js files. This for me poses two challenges:
Can i extract the actual $(document).ready(..) call to a js file? So far with my limited knowledge I have not figured if this at all...
Hello,
I'm writing a toolbar for Firefox using Javascript connected to a Java XPCOM component. I want it to send a receive URLs from an external application that the java end is connected to. I can send the URL just fine, and I can load an incoming URL if I know one is there, but it's missing something crucial. There is no way for the u...
A:
<script type="text/javascript" src="b1.js"></script>
<script type="text/javascript" src="b2.js"></script>
<script type="text/javascript" src="b3.js"></script>
<script type="text/javascript" src="b4.js"></script>
B:
put all stuff in b1~b4 into another file t.js
<script type="text/javascript" src="t.js"></script>
Suppose b1~b4 eac...
I'm running IIS 5 on a Windows 2000 machine.
I have an application setup in my "scripts" directory in my website, because it runs some compiled DLL's. The application is set to run scripts and executables.
For some reason, when I try and access any .js files in that directory, I get "The system cannot find the file specified.". I trie...
1.
<div id="test"></div>
<script type="text/javascript">
//operate document.getElementById('test')
</script>
2.
<div id="test"></div>
<script type="text/javascript">
window.onload = function()
{
//operate document.getElementById('test')
};
</script>
Can we ensure that document.getElementById('test') exists just by putting javascr...
Hi, I am designing a menu bar combining effects with CSS and JavaScript. It is comprised of large icons with text underneath that appears when hovered over. It will be deployed on an intranet so it only has to run in IE 7, 8, and Firefox. Firefox of course seems to perform what I intuitively think the HTML should look like, showing la...
I'm trying to have a callback call a function inside $(document).ready(..)
How do I call a function from outside this?
Like for example:
$(document).ready( function(foo) {
var bar = function() { ... };
});
// How do I call bar() from here?
...
hi, i want to use jquery UI's datepicker to trigger a POST that would then load information from the date picked on the datepicker from my database.
so i guess this is a two-part question
is there a way i can make it so the datepicker date, when selected, just gets passed into a POST, so someone would click on jan 1 2010 and it would a...
Hi! I've got a text scrollbox made with JQuery. It works fine when on its own (nationalboston.com/temp) but when I hand it off to be wrapped into a Joomla page, the slider handle doesn't move (here). As far as I can tell, everything else works fine.
I've inspected the computed CSS in Chrome Inspector, and it seems that the handle is ...
Hello everyone,
I am using Extjs Ext.form.FormPanel to create a form that will contain some fields like name, company,...,etc. Among the fields will be zip code and phone number, let's take the zip code problem, the zip code could be 5 numbers or 5 numbers plus 4 characters, I don't want to create two separate fields for the zip code, i...
Simple as that, can we emulate the "protected" visibility in Javascript somehow?
...
Hello:
Is it possible to pass the contents of a textbox or Listbox into the URL portion of the javascript code window.open(URL)? I have an asp.net listbox control that displays URL values. When ever an end user clicks on another listbox, the URL listbox provides the specific URL. I am trying to pass this URL into the above javascript...
In the last couple of years I've been using JavaScript name spaces espoused by YUI as my default way of formatting JavaScript code.
All in all it works well in more complex environments where many web widgets may be stuck together at different times.
Until recently I've almost always used added event handlers in the HTML by calling the...
HTML markup:
<ul id="portfolio"><li class="web">
<span class="info">August 2007 <a href="http://awebsite.com" rel="external">visit</a></span>
<a href="/assets/image.jpg" class="fancybox" rel="web">
<img src="/assets/imagelarge.jpg" alt="Rising Star Ranch" />
<span class="title">Some Title</span> Some other text...
<...
I've got a currency input and need to return only significant digits. The input always has two decimal places, so:
4.00 -> 4
4.10 -> 4.1
4.01 -> 4.01
Here's how I'm currently doing it:
// chop off unnecessary decimals
if (val.charAt(val.length-1) == '0') { // xx.00
val = val.substr(0, val.length-1);
}
if (val.charAt(val.length...
I have an UpdatePanel which has a Repeater repeating LinkButtons. When I click a LinkButton, the page does a partial postback, then I get a javascript error: "Object required". I tried debugging the javascript, but couldn't get a call stack. If I remove the UpdatePanel, the LinkButtons do a full postback, and they disappear from the ...
I am working on a Windows desktop app (C++) that has an embedded Internet Explorer page. I'm working on the html page that is displayed in the There is not a back button control, so one of the requests is that links clicked on in the page should open the link in a browser window. It can open the link in the users default browser or in IE...
How can I remove all characters from a string that are not letters using a JavaScript RegEx?
...
i want to get the id from the url bar and insert it into the href
$("a[href='send_message.php?act=pm&id=$id']").colorbox({width:"500", height:"350", iframe:true});
...