Hi all,
I'm currently working on something like a tree, and I want to be able to fold/unfold children. I guess the most easy way to get this is by using nested lists, but I can't use them because I don't have access to the HTML code. This is the relevant simplified HTML code:
<table>
<tbody>
<tr rel="1"><td><a href="#" id="...
I want to capture user's activities on my textbox. Since a normal textbox won't give me enough information on what my user is doing currently with it, I want to start on a custom HTML text box.
For e.g.
If my user is typing
Hello world! (Say he made a typo...) I should be able to tell him that,
H e l l o w o r l e [bksp] d !
also if a...
Hi,
I'd like to do some fancy jQuery stuff when the user scrolled the page. But I have no idea how to tackle this problem, since there is online the scroll() method.
Any ideas?
...
Hi to all,
i need a code in Jquery for hide all images on all pages except the 'reCaptcha' thing.
The images of reCaptcha start with the link: 'google.com/recaptcha' or 'recaptcha.net' ...
My idea is to make the script that hide all images but not touch the images that contains the part 'recaptcha'.
Is possible to make in Jquery?
Thanks...
This works in firefox but not in IE7/8:
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$.get('page.php', function(data){
document.innerHTML = data;
});
}); //]]>
</script>
This also works in Firefox but not in IE7/8:
<script type="text/javascript">
//<![CDATA[
$(document).rea...
Is it possible to retrive selected text outside textbox?
I had seen solutions to get text from input forms and textareas, similar to this:
http://laboratorium.0xab.cd/jquery/fieldselection/0.2.3-test/test.html
but can this aplied on HTML text (inside div element)?
For example, I want user to be able to bold selected text which is not in...
Is it possible to add javascript reference dynamically from code behind aspx.cs?
Like this:
private void AddScriptReference(string path)
{
//Add reference to <head></head>
}
Should result in a script reference being added to the head of the page, like this:
<html>
<head>
<script type="text/javascript" src="path-to-script...
I have a function, say f(args), that is being called from many places in my code.
When args is undefined f() throws an exception.
I would like to identify who called f() with the undefined parameter.
What would be the easiest way to find the exact line (file name + line number) that called f() ?
Is that possible to see the caller in ...
I now use CLEditor, but I cannot style it like the rest of the page. So is there a jQuery UI WYSIWYG text editor? Or is there a way to style CLEditor with jQuery UI widget elements?
...
Hi All,
I am trying to set some client-side properties on a set of controls in the EditItemTemplate of an ASP.Net ListView.
For instance, if the EditItemTemplate contains something like this:
<tr id='phoneRow'>
<td>
<asp:Label ID="lblPhoneLabel" runat="server" Text="Phone Number: " />
</td>
<td>
<asp:Label ID="lblPhoneNu...
I'm trying to update the text of a div which has several input buttons. When an input button gets clicked, the value of the button should be passed to the div and replace the text in the div.
It's basically a drop down menu which gets closed when the user clicks on an option. For obvious reasons I'd like the name of the button to replac...
All my static media is on a subdomain static.domain.com while the rest of the code is on www.domain.com.
I am trying to apply the pngfix for IE and i noticed via fiddler that there are serveral requests to www.domain.com rather than static and these are all getting 404 and causing insane page load times. I swapped out the relative path ...
Hi,
I have a simple html file. Using javascript I am opening a https link as a child window.
However, if I try to get any data say
var handler = window.open('https://abc.com','newWindow');
var title = handler.window.document.title;
Then it throws an exception saying
Permission denied for http://localhost to get property Window.docum...
Given the following C# code:
public object CallJavaScriptFunction(string functionName, params object[] args)
{
object script = Document.Script;
var result = script.GetType().InvokeMember(functionName, BindingFlags.InvokeMethod, null, script, args);
return result;
}
And the following client-side Jav...
I am trying to replace strings in brackets in some html string. When I use a regular replace, its fast, when I try to create a pattern for global replace, it ends up throwing a stack overflow error. It seems like somewhere along the process path, it converts my single string to an array of characters.
Any ideas?
var o = { bob : 'is cool...
Say I have an object such as:
{
id: 345,
title: 'Some title',
body: 'Here be a lot of text',
author: {
id: 1
name: Bob
email: [email protected]
}
}
How would I reference the properties of the author in my template
e.g.,
var template = new Template('
<div class='blog_post'>
<...
Does Javascript have a built-in syntax for selecting multiple variables?
Say I'd like to set a group of variables to equal 0.
Is there some way to combine
x = 0
y = 0
n = 0
a = 0
and so on, into one command?
Or am I getting spoiled by jQuery and CSS-style object selection?
...
How do you copy javascript errors in IE to clipboard? CTRL + C doesn't work and I don't want to take screenshots. Are there any tools out there that lets you copy the text?
(ANSWER) EDIT: I finally found a machine which has IE8 on it and was able to copy the error message. It's a hassle, though.
...
I am using Raphael.js library for a specific work. I am creating circles and binding hover event that show/hide text. The problem is that only the text over last circle is shown/hidden, even i am hovering over other circles. plz chk this code
for(var i=0; i<feedData.length; i++){
var x = ((i+1)*diff);
...
Like the title say's, is it possible to send data to my flash movie after it has been loaded?
More specific: I have a flash-movie with an image in it, and from the outside I would like to be able to alter it by sending fe. '?color=FF00FF' to the movie.
Is there a way to catch this variable in flash?
...