I am trying to add filmstrip to the picture gallery using GalleryView plug-in, version 2.0. I have a problem that the specified pictures in filmstrip (thumbnail pictures) are displayed in a panel instead of the specified picture in div (class="panel").
As is evident from examples and documentation, custom filmstrip can be added in the f...
I want to convert following javascript function to c#
can anyone help?
function parseCoordinate(coordinate,type,format,spaced) {
coordinate = coordinate.toString();
coordinate = coordinate.replace(/(^\s+|\s+$)/g,''); // remove white space
var neg = 0; if (coordinate.match(/(^-|[WS])/i)) { neg = 1; }
if (coordinate.match(...
what are adventages and disadventages of creating games in 'pure' DOM and using canvas?
...
I've been searching for a long time now for a fairly simple JavaScript based tooltip solution. It needs to be:
Open-Source and freely re-distributable, and allows my application to include it which would be distributable via free or commercial license.
'Sticky' i.e when opened it stays visible until the user clicks a little close butto...
Hay Guys, I'm using the Cycle plugin for a gallery. The plugin has a function that can be run after an image has been show
prevNextClick: function(isNext, zeroBasedSlideIndex, slideElement){
SlideIndex = zeroBasedSlideIndex + 1;
$(".count .c").empty().append(SlideIndex);
},
after: function(currSlideElement, nextSlideElement, opt...
hi
i want to create a multi-field chain search module in joomla using jquery like in this site left corner. If is there any tutorial please put the link here
Thanks
...
Hi all.
I inherited a legacy JavaScript library simply written as a list of functions as follow:
function checkSubtree(targetList, objId)
{
...
}
function checkRootSubtree(targetList, rootLength, rootInfo, level)
{
...
}
To test it with JsTestDriver do I have to 'clean' it to adhere to some JavaScript best practice or can I ...
Hi - I"m looking to add rich-text in-place editing to a project (so people can see the results of their editing rendered straight away), and so am on the hunt for a rich-text editor that has an inline mode, or a way to use a rich-text editor for inline edits.
I've come across the neat-looking http://inplacericheditor.box.re/demos, but i...
There is a noSuchMethod feature in some javascript implementations (Rhino, SpiderMonkey)
proxy = {
__noSuchMethod__: function(methodName, args){
return "The " + methodName + " method isn't implemented yet. HINT: I accept cash and beer bribes" ;
},
realMethod: function(){
return "implemented" ;
}
}
js> p...
I have a result string with the following structure
<items>
<item>
<id>
I must iterate through down to id and I have some other tags there also.
I really don't know how to do it in vbscript. And I would like to have all id:s returned in an array.
Is there not really a method like this:
Dim doc
Dim thumbArray
Set doc ...
I have a serious project with big JS file with many functions, and now I have some questions about it.
Of course, I will stick together all my js files and gzip it, but I have a question about functions initialisations. Now I have many, many simple functions, without any classes. I heard that it is better to separate my code into many ...
I have this object/array thing:
var states = {};
states["CA"] = new State("CA", "California");
states["AR"] = new State("AR", "Arizona");
....
How can I check if states["AL"] has been set or not? Will the following work (in all browsers)?
if (states["AL"] == undefined)
alert("Invalid state");
...
Hello,
I am trying to change the text of a table cell when only the <table> element has an ID, there are no IDs set on the cells, e.g.
<table id="test">
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</tbody>
</table>
So how do I change the text of the second cell (Cell 2) in Javascript without explicitly ...
Hi friends,
In IE8 I am facing an issue while calling a method through an object.
The following is the code snippet
gen.js
function getmystring()
{
}
function DispString()
{
var = this.getmystring(); // while executing this line, we are getting Unknown error
...
...
...
}
......
......
......
var mystring_Def = {
...
Can you call a servlet with a link (i.e. link text
And possibly pass parameters to the request object by adding them to the querystring.
If not, I have seen this kind of thing:
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(/MyServlet);
dispatcher.include(request,response);
But how would I trigger ...
I need to have a script on a page which dynamically changes the current week. I need to have the show "Week of February 15, 2010.
After next Sunday, I'd like the page to say "Week of February 22, 2010". I picked Monday for the display day but it could easily be Sunday.
Any suggestions are much appreciated!.
...
If I have a few checkboxes like the following:
<input type="checkbox" onchange="foo(bar);" /> Bar
Will the foo(bar); function only be called when the checkbox is checked on/off by a click or keypress (what I want) or if I progromatically check/uncheck a lot of checkboxes with a select/unselect alll button, will it then call the onchan...
Let me first outline my objective from a user's perspective and then the code I have to achieve that goal where its falling short.
I'd like the user to be able to click a button, which brings up a jQuery modal style dialog with a few fields on it and a submit + cancel button. When they successfully commit the record I'd like to have the...
Hey guys having a strange problem basically all is fine in good old ff however ie7 is crying like a little baby and throwing the above error - char: 3, 'Undefined' is null or not an object .
I am splitting a string into a format I need to compare with another string. Once I have split the string I split it further - example below :
...
I have this code
var myObjects = {}; //global variable
//Later on in the code:
for (i in myObjects)
{
var obj = myObjects[i];
process(obj);
}
function process(obj)
{
$.getJSON("example.com/process/", {id: obj.id}, function(result)
{
//Will the following change the permanent/global copy e.g
// myO...