Hello friends,
I want to create torrent files using javascript.
Torrent file creator currently available in a desktop application.
May be it is possible in java as azurious, open source p2p client is written in java.
Can somebody please give me guidelines to achieve it using javascript.
Thanks very much for any help
...
I'm attempting to drag an object using dojo.dnd but want the avatar to be in the same position as the object was (relative to the mouse)
i.e. if a person clicks in the middle of the object then the mouse cursor will be in the middle of the avatar.
I've had all sorts of strange results.
if i connect a function to body.onmousemove the d...
Hi,
I want to validate url and want to display message. Below is my code.
$("#pageUrl").keydown(function(){
$(".status").show();
var url = $("#pageUrl").val();
if(isValidURL(url)){
$.ajax({
type: "POST",
url: "demo.php",
data: "pageUrl="+ url,
success: function(msg){
if(msg == 1 ){
...
How do I "lock" a textarea with jQuery so that no more characters can be entered? I don't want to necessarily disable it since I want to allow characters to be deleted.
update: oops..it just came to me:
if I am limiting the length to say 400 characters then i can use the following when the length is > 400:
this.value = this.value.subs...
First off here is the code!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="content/wmd.css" rel="stylesheet" type="text/css" />
<title>some title </title>
</head>
<body>
<div class="main">
...
Hi,
I am trying to insert an inline style tag into the editor content. When I call saveHTML it strips out the style block when I'm in rich editor view. I have tried changing the style property of invalidHTML to false, but it still seems to strip the style block out.
Any pointers to the API or suggestions would be helpful at this stage...
I have created a C# web service that retrieves a data table with 2 columns, that data table is serialized using JavaScriptSerializer.
Using FireBug, I see the following JSON which appears correct to me:
"{"d":"[{\"Text\":\"4 blah blah2\",\"Value\":\"16\"},{\"Text\":\"asdf\",\"Value\":\"15\"},{\"Text\":\"qwerty\",\"Value\":\"13\"}]"}"
...
How can I tell if a google bot is reading my javascript generated content?
I have an AJAX script that generates some text dynamically on a page... this content does not change by user, but simply by date/time.
I am not sure how I can tell if google sees it.
...
I have a page that grabs values from the query string using javascript window.location. This works fine when run from a webserver but if I run it locally using IE6 by putting this in the address bar
c:\mysite\index.htm
Any query strings the site creates get lost and window.location just contains the location upto .htm.
I realize the ...
Hi guys,
I have a datalist. I have datatable in javascript. I want to set datatable as datasource to datalist in javascript.
Is it possible? Can anybody help?
...
I have a -link element that has href link to page, but I have to use Ajax to load that content from href -url and not redirect user to that page. How can I modify my link to just load content from that link, so I can inject that content to current page?
<a class="bind-jquery-event-here-class" href="http://webpage.com">Link</a>
...
I want to make a constructor function that creates a documentElement object.
As an example, consider the new Audio() constructor - it creates a documentElement object, and if you pass it some variables it populates the new documentElement with attributes. It doesn't insert it into the DOM, it simply creates the object.
So, the questio...
I would like to at least display items from the email inbox.
(Similar to the new Yahoo homepage)
Is this possible without server-side? How does Yahoo do it?
Any client-side solutions would be helpful.
Thanks!
...
I'm trying to make a threaded comments system that behaves like Reddit's: I click "Reply" on a comment, a form shows up. This form has a "Cancel" button that removes the form, going back to the original state.
I'm trying to achieve that with one link_to_function that adds the form, and the form itself has a button_to_function to remove ...
I have a URL of a remote page from a different domain which I have to download, parse, and update DOM of the current page. I've found examples of doing this using new ActiveXObject("Msxml2.XMLHTTP"), but that's limited to IE, I guess, and using new java.net.URL, but I don't want to use Java. Are there any alternatives?
...
I'm expanding further on this question.
I currently have an asp.net hyperlink for Select All (NumberOfCheckBoxes) which works, but what I'm looking to do is add another link, possibly just a standard HTML hyperlink for Uncheck Selected (NumberOfCheckedBoxes) and update the value of NumberOfCheckedBoxes as checkboxes are ticked without r...
Some background:
On a recent project, I tried to write a streamlined jQuery plugin that would handle some Ajax calls made when various inputs were updated. I wrote the JavaScript function as a plugin so that I could just call it on various inputs, like so:
$("#email").updateChanges();
Then, from within the plugin, I collected the inp...
I am developing a web-based javascript/html application with a sister firefox-extension.
The application's page-javascript performs a few XHR calls immediately after page-load, in order to bring in and display all the content that the page requires.
Is there a way, without polling the DOM, that my extension can know that the page's in...
Hi all.
Below is description of my que:
I have added bookmarklet feature to my site. For this, I have provided one link called "my bookmark" in my site.. So, I will drag that link to bookmark and it will be added to bookmark. So, from now, when I m visiting other site say "yahoo.com" .. and I like any content of that site so I can se...
I have a set of links with #anchors pointing to a single webpage and I would like to smoothly move to a model with a separate webpage for each of those links. I want the old links to keep working using a redirect.
Old link style:
/all_products#A
/all_products#B
/all_products#C
New link style:
/products/A
/products/B
/products/C
I ...