I am trying to write a javascript function to get the current browser width.
I found this one:
javascript:alert(document.body.offsetWidth);
But its problem that it fail if the body has width 100%
There is any other better function or a work around?
...
I'm trying to move some javascript code from MicrosoftAjax to JQuery. I use the javascript equivalents in MicrosoftAjax of the popular .net methods, e.g. String.format(), String.startsWith() .. etc, are there equivalents to them in JQuery?
Thanks
...
I am building a form to accept a time value HH:MM, how can I filter the user input and show the colon in the text field? I guess I'm looking for some kind of filtered input box.
Thanks
...
I was thinking, would it be feasible to create a Cocoa app that is essentially just a an interface with a web view? Or is there some serious limitation when doing something like this?
If it is "feasible", would that also mean that you could do the same for Windows applications?
...
I am trying to get it so when the mouse moves over the div it fades the image inside
function clickimage($imageid){
$("#image_"+imageid).hover(function(){
$(this).fadeTo("slow", 1.0);
},function(){
$(this).fadeTo("slow", 0.6);
});
}
<div id='images_$imageid'>
<a href='?tg=photos&photo=$imageid' onmouseover=\"javascript:cl...
Here is my problem, I'm designing a website that allows you to select a certain item from a list by clicking on it using the onClick attribute. I would like to be able to deselect the item by clicking anywhere else on the page. I tried doing <body onClick="deselect()"> but then if I click anywhere on the page it deselect my item (even wh...
Hello,
I am creating my rows dynamically when the user clicks on "Ajouter".
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<scri...
Hello,
Wondering if its possible to communication from javascript to flash without the use of SWFobject or any other extra javascript file.
Currently I am using the following guide:
http://www.viget.com/inspire/bi-directional-actionscript-javascript-communication
Thank you for your time.
...
I've created a C# Desktop Application which depends on web crawler idea.
I made my application using web browser control to open a website and login progmatically and redirect to the specific page which have a gridview with all user's data that I want to collect...
But the issue here username in the gridview click fired by JavaScript ...
I have a hidden input element that I am using as a counter to use to name more input elements generated by JavaScript. To get the value of the counter i use
parseInt($('#counter').val());
However I use this code snippet several times in my code, so I thought it would be good to put it in a function
function getCounter(){
parseInt...
I want to add mouse over event on all elements on the page except which has class "no_inspect",
i want to add this event after loading all page elements, i tried to write it like that:
$('*:not(.no_inspect)').mouseover(MouseOverEvent);
but its not working, seams something missed.
UPDATE Not working means:
The event is attaching to...
I am using FCK editor, and allowing object tags to be entered... however, the only way to do this seems to be for the users to enter the tags in the SOURCE section... most users aren't so hot at techy stuff like that...
...
I've seen the related post on this, but it only covers using inline VBScript for onmouseover events, while calling a Javascript Function for the onClick.
Is there a way to call a VBScript Sub for the onClick event from a button that uses Javascript onmouseover and onmouseout events?
Currently when I try I get an error that the objec...
Hi Guys,
I am new to a project and have to learn it inside out. I see allot of files with the extension .ftl in them. Not sure what they are. I know they can be modified an the user sees changes in the front end
...
Here's my situation. I'm developing an ASP.NET (2.0) app for internal use. In it, I've got a number of pages with GridViews. I've included an option to export the data from the GridView to Excel (client-side using Javascript). The Excel workbook has 2 tabs - one tab is formatted like the GridView, the other tab contains the raw data. Eve...
I am working on a web page that uses dojo and has a number (6 in my test case, but variable in general) of project widgets on it. I'm invoking dojo.addOnLoad(init), and in my init() function I have these lines:
dojo.connect(dijit.byId("project" + 0).InputNode, "onChange", function() {makeMatch(0);});
dojo.connect(dijit.byId("project" ...
I am using JQuery 1.3.2-min in a project to handle JavaScript animations, ajax, etc. I have stored the file on the same server as the site instead of using Google. When I run the site locally on my development machine, everything works fine in FF, IE, Opera, and Safari (all the latest versions - I work from home and I only have 1 machine...
It should be a combination of CSS and Javascript,
The main jobs to do should be:
Make it on top of all other elements (which property to specity?)
Catch the event it is clicked (which event to listen to?)
Move the div as mouse moves.
but what are the details?
...
There's a search site whose search results are generated dynamically by javascript. So the user enters a query, and the site displays the content on the page, without refreshing.
I need to grab those search results programmatically (say from a Java program or a perl/python script).
So ideally, I can launch my program with 100 queries...
I want a shortcut notation for unbind('click'. I want .unclick to be unbind('click'.
...