I'm working on a web page that will have a google-reader type scrolling list of content, and I'd like to open that content when it's clicked on in a new window. The problem is that I'd really like to be able to update the scrolling list from one of the newly opened windows.
For example; I'm looking at a list of products for sale on m...
Instead of automatically following JavaScript redirects, can I force HtmlUnit to return the URL the JavaScript wants to redirect me to?
// context:
If there's 5 JavaScript redirects in a row, I can only see the URL of the page where it stopped - I can't view the 5 URLs it ran through.
Perhaps I can hook up the logger to a callback met...
Hi everyone (this is my first thread here)
I'm making an "imageslider" (but with div:s) with jquery.
The question is, How do i hide my scrolling elements outside of the div with the border?
(I'm new here so i cant do post with links so i deleted them)
The code:
<script type="text/javascript">
var pos = 1;
$(document).ready(func...
hi..
looked through the 'net, as well as other replies on here..
i've got something that looks like the following html:
var langId = '-1';
var demoKey = 'null';
var extraParams = 'null'; // only used for User Registration page
var multiSelect = false;
and
function onCampusSelect_USA() {
if($('campusUSAIdSelect').value == ''){cle...
Hey all, I need a XB (Cross Browser) method of detecting if an argument is a HTML Element.
Using the following code gives different results in different browsers:
Object.prototype.toString.call(element);
// returns in FF "[object HTMLDivElement]";
// returns in IE "[object Object]";
The other method I found was:
if(element.nodeType)...
The following is the part of a script, where i sent some values to a php-file:
var order2 = $(ui.item).attr(\'id\') + \'&action2=insertList&feuser='.$feuser.'\';
$.post("index.php?eID=moveitems", order2,
I know how to read f.e. the value of "action2" in the php, it s easy done with "$_POST['action2'];". but how to read out the valu...
I have the following code that works:
<script type="text/javascript">
$(document).ready(function() {
// Initialise the table
$('#table_1').tableDnD({
onDrop: function(table, row) {
$.tableDnD.serialize();
$.ajax({
type: "POST",
url: "test.php?"+$.tableDnD.serialize(),
data: "",
success: function(...
Hello, I have this table. I want to change the color of a cell, from black to red, when i move over that cell, I'm using the .hover method, and i'm having trouble figuring out how to make work accordingly to what i need.
<html>
<head>
<script type="text/javascript" src="jquery-1.4.js"></script>
<script>
$board = $('#bo...
Whenever I'm using Telerik's RadAjaxManager in Chrome, the events sent to any mouse events I'm using are passed as null.
For instance, the following:
<img id="Image1" src="image.gif" onclick="alert(event)" />
<rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
</AjaxSettings>
</rad:RadAjax...
I'm using this:
$('document').ready(function(){
$('textarea').attr('wrap', 'off');
});
(JQuery) (Firefox 3.5)
I'm checking with WebDeveloper that the wrap attribute indeed is set to off in the page when I'm loading it up, but the text still wraps. If I hard-code the invalid HTML of wrap="off" into the <textarea> in my HTML, it wo...
We provide the ability to submit images to a user's gallery.
While the normal method we have employed works just fine, some people will upload multiple files, which can take a long time, and is annoying in the selection process (one at a time).
I started writing an alternate method using Gears for those that have it. Primarily the goal...
I'd like to get all the children of an element, including text nodes. How can I do this in MooTools? The documentation at mootools.net explicitly says that getChildren() excludes text nodes.
...
i have an online form:
http://yoursdproperty.com/index.php?option=com_chronocontact&Itemid=56
i would like to have some faint grey text there so that when the user clicks on it, it disappears
exactly like in this stackoverflow form where in the title of the question it says "what's your programming question, be descriptive?"
what...
At the beginning of my script, I have:
jQuery(function() {
jQuery('img.thumbnail').hide().load( function() {
jQuery('img.thumbnail').fadeIn();
});
});
Which nicely fades in all the thumbnails on the page as they are loaded. However, when I access the page for a second time (when it is cached), or when I press the back button ...
i wonder if i could embed js and css files above the html document scope:
<script type="text/javascript" src="../../media/js/jquery.js"></script>
<script type="text/javascript" src="../../media/js/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="../../media/css/cupertino/jquery-ui.css" />
<html>
<head...
Ok, I'm making a login and registration panel with jquery and php. In short, if there are errors with the registration it sets a few form errors, redirects back to the registration page, the javascript detects there are errors with the use of a php variable and forces the slider to show itself.
The working code: Above the doc type $err...
I understand what the double not operator does in javascript. I'm curious about it's use though and whether or not a recent assertion that I made is correct.
I said that if (!!someVar) is never meaningful nor is (!!someVar && ... because both the if and the && will cause someVar to be evaluated as a boolean so the !! is superfluous.
In...
I have a view where ill have 3 divs:
Div 1: List of Brands with checkboxs.
Div 2: List of Categories with checkboxs.
Div 3: List of Items.
This last div will be refreshed with the all the items according to what is selected in the first two divs. At beginning it shows all the items, after we select some of the brands and/or categories...
I'm using Yahoo Small Business to host my website. I use an FTP client (FileZila) to upload my files. However at the end of every page is these few lines:
</html>
<!-- text below generated by server. PLEASE REMOVE -->
<!-- Counter/Statistics data collection code -->
<script language="JavaScript" src="http://us.js2.yimg.com/us.js.yimg.co...
i would like to make a site that is like this one:
http://www.online-stopwatch.com/
i know a vb.net and little bit of everything else and am wondering what is the best platform to use to make this and how i can start to make this stopwatch?
...