Using DJ Native Swing it is possible to show a web page within a java application. When you do this it is also possible to communicate from the browser to the java runtime environment using the "command" protocol. The documentation has a code snippet which demonstrates it's usage:
function sendCommand( command ){
var s = 'command:/...
I am using the yui progress bar to display ratings for a list of items. I know the progress bar inherits the "on" method, but I'm not sure how to capture where in the progress bar the user is clicking. I'd like to get an int or double from that event. Is this possible?
...
Hey there!
I'm trying to get to learn som javascript/jQuery stuff, and I'm really struggling with this one. It's basically a question of structure – how to do things in the best possible way.
I've got this function that randomly picks out a list item from one of three unordered lists (where all list items have been hidden), and shows i...
I am using a CustomValidator in ASP.NET as follows:
<asp:CustomValidator ID="cvComment" ControlToValidate="txtComment" Display="None"
EnableClientScript="true" ClientValidationFunction="validateComment"
runat="server" ></asp:CustomValidator>
And this is the function that gets called:
function validateComment(source, args)...
Making an image draggable does some pretty wacky things when the image is larger than the container... Does anyone know a way around this?
Here's my code...
<script type='text/javascript' src="scripts/jquery-1.4.2.js"></script>
<script type="text/javascript" src="scripts/jquery-ui.js"></script>
<script type="text/javascript">
$(d...
Have been working non-stop for last 8 hours and so don't have enough energy to fix this IE6/7 only bug. Can some jQuery /CSS experts please help out?
Access this url using any browser other than IE6/7:
http://www.sumanasa.com/technews
On the topmost right hand corner, a) click on the Quick guide link to show a quick guide and b) clic...
Not sure why this isn't working. There is no js error, but it just doesn't set the display property to "block". If I remove the inner most if statement, the display property for the div control is changed when the last radio button is selected from the group.
.aspx file
<asp:RadioButtonList ID="rblMarital" RepeatDirection="Horizontal" ...
Hello,
Im using the Grid control from Telerik's RadControls. The grid is populated with thousands of records and lists 50 records per page. I have some filtering options appearing above and the solution is in ASP.NET 3.5 with NHibernate 2.1.
Everything works fine and dandy except for when i select one of the bottom rows and some weird ...
Hi guys, I have a question regarding the view.yml file in Symfony. Basically I would like to be able to include certain javascript SDKs in my layout with the help of the view.yml file like so:
first i would add an entry the the corresponding view file:
all:
load_facebook: true
load_twitter: true
stylesheets:
javascripts:
...
I'm having a mental block here, and algebra not really being my thing, can you tell me how to re-write the JavaScript code below to derive the variable, c, in terms of a and b?:
a = Math.pow(b, c);
c = ?
Thanks!
...
I'm an assistant in a course where the students implement a web app (It's a Q&A site similar to stackoverflow) with the help of the Play! framework. This is a Java-based framework that relies on the MVC Pattern. The Model and Controller are written in Java where the view is written in HTML / CSS and some extensions that the framework pro...
IS there any tool that does the following, given a url?
strip everything (all text) from the page, except the markup (all the html elements)
add a border to all the div, span, table, tr, td etc in the page
keep the original size of the div, span etc (even though they are empty now, in terms of the data in them)
...
I want to get the time difference between saved time and current time in javascript or jquery. My saved time looks like Sun Oct 24 15:55:56 GMT+05:30 2010.
The date format code in java looks like
String newDate = "2010/10/24 15:55:56";
DateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Date date = format.parse(newDate);
...
Is it standard practice to hold an entire project at a certain release of jQuery until I can fix one measly bug?
details:
I'm using an older version of qTip because that is what works with jQuery 1.4.2 (the current release when I started the project). It's important to note that the release candidate of qTip does not work with the curr...
Hi All.
I am new here, and I have looked at the other Ajax Help topics, however, I still can't see why mine isn't working.
Here it is:
$(document).ready(function(){
$.ajax({
type: "GET",
url: "localhost/val.php",
data: "val=RichieC",
success: function(msg){
alert("WOO");
}
}...
I want select every inputbox of type text and transform by a fixed amount, when checkbox is checked, so far I have this. However I wondered if there was a way to do this without iterating over every element ...
$("#myID").change(function(){
if($(this).is(':checked')){
//I can't do this :
$("input:text"...
We need to build quite a complicated form, which will allow creation / updating of multiple instances of entity A, where entity A can have multiple instances of entity B.
Both types of entities are quite complicated (lots of fields and dropdowns) but only a few of these fields need filling in on creation. The requirement is to be able t...
I have a ton of IP addresses that I need to visit to see if they are active. So my plan is to redirect the browser over and over again and then just use the back button to view each page. What is the best way to do this?
I will most likely have an array of IP addresses. like:
array(234.324, 2343.323432, 234.234, 234.4543)
Then I can u...
Windows 7 (64 bit), Acrobat Pro 9.4(32 bit), FF 3.6.11(32 bit)
In Firefox, I briefly see the JS console flash and then vanish... but it stays empty.
IE will show the JS console if it's already open, and displays a brief error message and then crashes Acrobat: "Exception in line 18 of function top_level, script Page:Open". I don't hav...
Hello,
I have an ASP .NET page with ASP validators (Required Field, Regular Expression,...) plus java script functions for additional validation (for example, to check if second date bigger than first date, among others).
I usually do:
<script type="text/javascript">
function validate() {
// ...
alert('Not valid!'...