I'm using the jQuery tablesorter plugin to sort a table, which assigns .click() handlers to the <th>s in the table. Since my table has alternating colors for each column, I've built a simple fix_table_colors(identifier) function that does as it should when I call it manually using Firebug. I would like, however, to have that automatica...
I am totally new to web services and cannot get mine to work.
My setup is on VS 2008 using IIS. I have one solution file with 3 projects in it: website, code, and services.
If I put my webservice into my website and call it locally then it will work fine (it's just a hello world web service). I want to put the service into a diff...
I have developed a simple web application using JSP. It has a login page which contains username, password fields and sumbit button. It has a logout page which contains a link to the login page. And there are some pages like page1, page2, page3, page4, etc.
Normal workflow is the following:
After login comes page1.
Then click some act...
How can we collect a query string value in javascript.
my script is like follows
http://192.168.10.5/study/gs.js?id=200
here i want to collect the id value in my gs.js script file.
For this i am using
function getQuerystring(key, default_)
{
if (default_==null) default_="";
key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
...
This is more a question of pros/cons between PHP and JAVA.
Iv been doing research, and iv narrowed it down to those two.
And in consideration, id like to go into mobile app dev...So thats +1 for Java.
Time taken to learn the language is not an issue...Just would like to know which is the most effective between the two languages mentio...
Hi,
i am using Webkit for rendering my HTML pages.Now,say i am browsing the page, i select some text while reading,i want to save/write down the selected text on my local file say /home/localfile.txt. Is any way to access(read/write) local file system using webkit?
In case of firefox, i can access localfile using XPCOM,nsiFile.can ...
java script to alert the mutile option selected ..in<select> HTMl tag. and tag .is not inside <form>tag body how will do it ....
thank you
...
Hello:
I'm trying to add via jQuery the share icon [1]. Unfortunately I can't seem to do this as jQuery appears to escape the script code and I can't seem to get it to work with .text() or .html().
Has anyone gotten this, or something similar, working?
The code I'm trying is:
var enc = $('<div/>')
.text('<script type="te...
I have a rather interesting issue with SVG animation.
I am animating along a circular path using Raphael
obj = canvas.circle(x, y, size);
path = canvas.circlePath(x, y, radius);
path = canvas.path(path); //generate path from path value string
obj.animateAlong(path, rate, false);
The circlePath method is one I have cre...
Hi guys:
I at times glanced the Ext term in some reference.
What's its feature?
Thanks
...
Suppose CSS as we know it had never been invented, and the closest we could get was to do this:
<script>
// this is the page's stylesheet
$(document).ready(function(){
$('.error').css({'color':'red'});
$('a[href]').css({'textDecoration':'none'});
...
});
</script>
If this was how we were forced to write code, would we put ...
Hi
I am calculating yhe number of days between
from and to date
if from date is 13/04/2010 and the To date is 15/04/2010
The result must be 2 how to get the result using javascript
...
I am usingtextarea to get some inputs. A label shows the updated chars left.
It works fine in IE, but in FF 3.0, after reaching the max limit, it doesn't allow to delete or backspace key.
I am using a javascript function on keypress event of the textarea.
the javascript code is
function checkLength()
{
var opinion = document.getEl...
I have a table row with 4 columns on my ecommerce site and I want to replace the content of 1st column if total amount in last column (TD class "total") is over 10 EUR.
How can I do this with javascript only, I guess somehow to enumerate through the table rows and look for a correct row (one with the last column class as total) and then...
I have this situation:
There are a login page with a login form (form action is $_SERVER['PHP_SELF']).
When user login, it will check what application the user can access and open all the application that available for that user in new tab. If user can access application (for example) 'Docs' and 'Sites', it will open 2 tabs.
I Open new...
I used the following function,
function datediff()
{
var dat1 = document.getElementById('date1').value;
alert(dat1);//i get 2010-04-01
var dat2 = document.getElementById('date2').value;
alert(dat2);// i get 2010-04-13
var oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds
var diffDays = Math.abs((dat1.getTime() - dat2.get...
Hello guys and gals...
I have a LI with some information, including some links. I would like jQuery to make the LI clickable, but also remain the links in the LI.
The Clickable part works. I just need the links within to work as well.
NOTE: They work if you right click and choose "Open in new tab".
HTML
<ul id="onskeliste">
<li u...
Hi
my data is dat1;
the split statement is
var splitstr = dat1.split("-");
I have splited the data from this format
2010 -02-02 to Element 0 = 2010
Element 1 = 05
Element 2 = 22
this format..Using split function,
i want to arrange that like 2010,02,02 how can i do that
...
I have a form where users can add input fields with jQuery.
<input type="text" id="task" name="task[]" />
After submitting the form I get an array in PHP.
I want to handle this with the $.ajax() but I have no idea how to turn my <input>s to an array in jQuery.
Thanks in advance.
...
I'm working with Dojo and using the "Module Pattern" as described in Mastering Dojo. So far as I can see this pattern is a general, and widely used, JavaScript pattern. My question is: How do we debug our modules?
So far I've not been able to persuade Firebug to show me the source of my module. Firebug seems to show only the dojo eval s...