Using C# .net I am parsing some data with some partial html/javascript inside it (i dont know who made that decision) and i need to pull a link. The link looks like this
http:\/\/fc0.site.net\/fs50\/i\/2009\/name.jpg
It came from this which i assume is javascript and looks like json
"name":{"id":"589","src":"http:\/\/fc0.site.net\/fs...
Hi,
I've set a RadGrid with Paging into a simple asp.net UpdatePanel,
and it caused a JavaScript exception.
Does anyone familiar with that problem ?
...
I am looking for an "Eyedropper" tool, that gives me the hex value of the pixel the mouse cursor is under, in Javascript for a CMS.
For Firefox, there is the excellent ColorZilla extension that does exactly that. However, it's FF only of course, and I would really like to deliver the tool along with the CMS.
A dutch developer has had t...
I don't understand why I get the error message when I run JSLint with a JavaScript file.
I get the message var os_map = {}; Problem at line 28 character 36: Use the array literal notation []. if I run this code in JSLint. The options for the JSLint as the following.
/*jslint onevar: true, browser: true, undef: true, nomen: true, eqeqeq...
Hello,
Im able to get the list of all spans having the attribute dir='somevalue', with the following jquery statement
$("span[dir='somevalue']")
I want the text of each span i.e. for example, <span dir='somevalue'> text </span>, i need the value 'text', and i want this for every span returned by the previous statement.
Any way to do ...
Can you pass key-value pairs to a JavaScript file like that:
<script type="text/javascript" src="http://www.example.com/script.js?key=value"></script>
...
i have a javascript file which has some code somewhat like this;
var Slide =
{
init: function()
{
var thumbs = new Array();
thumbs = Core.getElementsByClass("thumb-img");
var i;
for (i=0; i<thumbs.length; i++)
{
Core.addEventListener(thumbs[i], "click", (function( j){return function(){Sli...
Hello,
I want to be able to manipulate the html of a given url. Something like html scraping. I know this can be done using curl or some scraping library.But i would like to know if it is possible to use jquery to make a get request to the url using ajax and retrieve the html of the url, and run jquery code on the html returned ?
Thank...
So I have a couple of divs overlaid on eachother with differing z-index values.
The default behaviour for browsers seems to be the event bound to the top-most z-index div gets fired. Ie I have multiple onclicks one for each div but only the top one is fired when the area is clicked.
Is there a way to fire the events attached to all di...
i am trying to pass 2 values to a javascript xmlHttp request; THE values are being passed to the javascript function. i was successfully passing a single value to the javscript function, but now i need to pass 2 values. the bold values is a string name i want in the javascript.
echo "<a href='#' class='thumb'><img class='thumb-img' val...
I want to write a greasemonkey script/chrome user script that takes any images with a certain syntax and replace a section of the url and puts it back in the dom.
Namely I have a page full of thumbnails, e.g. www.example.com/small/randomstuff and I want to replace the imades with the equivilant www.example.com/large/randomstuff
How wou...
I want to make a logo using html css. Can we increase the angle of italic text using css or javascript?
...
how to compare two static functions in javascript equal or not equal?
...
Is there a way to detect when the mouse has stopped moving in jquery?
...
I've got two page:
Page 1 has a title, an empty ol and some jQuery that calls an AJAX function.
Page 2 has an ol filled with list items from which I plan on pulling specific ones.
The AJAX I'm using looks as follows:
$("#loader").load("ajax.html li:nth-child(1)");
It works great in pulling in that first li. However, if something is...
I'm trying to create a drop-down menu acting as the sub-menu of a main menu. The sub-menu is simply a div element containing items/links. When a main menu item is clicked, the sub-menu drops down and stays there. That's all easy, but I want the sub-menu to slide back up if the cursor leaves the sub-menu. In other words, a simple 'mouseou...
I am trying (and failing) to implement a drag&drop mechanism into an HTML textarea.
Drag&Drop mechanism is relatively easy with jQuery or Scriptaculous (we use both), so I am willing to accept an answer that uses either of these two.
Problem is, I cannot seem to find a way to read or set the insertion point.
What I ultimately want t...
here it goes;
echo "<a href='#' class='thumb'><img class='thumb-img' value = ".$row->aid." onclick='getVote(".$row->aid.", \"".$row->atitle."\")' src='images/roadies/th".$row->aid.".jpg' /> </a>";
the above function sends the "$row->aid" value to a javascript function through ajax.
in the javascript however, i want to make a function...
I am using the TinyMCE control in a MVC page, and now I want to save the content of the control (hopefully with ajax so the page is not rendered again)... I have some javascript that looks like this:
mysave = function() {
var ed = tinyMCE.get('content');
// Do you ajax call here, window.setTimeout fakes ajax call
ed.setPro...
I have a design that I'm currently slicing that features a lot of right angles (Example: http://grab.by/1jli ). I was wondering if a CSS or Javascript (jQuery) solution exists to pull this off? Otherwise I'm going to have a ton of sprites with these crappy things in them.
Just a heads up, I've already tried "Corners", the jQ plugin, and...